sk_gm_server/app/model/role_menu/role_menu.go

19 lines
323 B
Go

package role_menu
import "github.com/gogf/gf/util/gconv"
// Fill with you ideas below.
func (r *Entity) PkVal() int {
return gconv.Int(r.Id)
}
func (r *Entity) TableName() string {
return Table
}
func (m *arModel) Columns() string {
sqlColumns := "t.id,t.role_id as roleId,t.menu_id as menuId"
return sqlColumns
}