Documentation ¶
Overview ¶
generated by xgen -- DO NOT EDIT
generated by xgen -- DO NOT EDIT
generated by xgen -- DO NOT EDIT
generated by xgen -- DO NOT EDIT
Index ¶
- Variables
- func SetPriority(value int)
- type Controller
- type Entities
- func (me *Entities) Append(v entity.Interface)
- func (me *Entities) Cap() int
- func (me *Entities) Index(v int) entity.Interface
- func (me *Entities) JSON() string
- func (me *Entities) Len() int
- func (me *Entities) Make(cap int)
- func (me *Entities) New() entity.Interface
- func (me *Entities) Slice() interface{}
- func (me *Entities) Value(v int) *Entity
- func (me *Entities) Values() []*Entity
- type Entity
- func (me *Entity) Column(field string) (schema.Column, bool)
- func (me *Entity) Columns() []schema.Column
- func (me *Entity) ExcelColumns() []string
- func (me *Entity) Get(column string) interface{}
- func (me *Entity) GetPtr(column string) interface{}
- func (me *Entity) GetString(field string) string
- func (me *Entity) Hidden() string
- func (me *Entity) Href() string
- func (me *Entity) Icon() string
- func (me *Entity) JSON() string
- func (me *Entity) Names() []string
- func (me Entity) New() entity.Interface
- func (me *Entity) Permission() string
- func (me *Entity) SetHidden(v string)
- func (me *Entity) SetHref(v string)
- func (me *Entity) SetIcon(v string)
- func (me *Entity) SetPermission(v string)
- func (me *Entity) SetString(field, value string) error
- func (me *Entity) SetTarget(v string)
- func (me *Entity) Table() schema.Table
- func (me *Entity) Target() string
- func (me *Entity) Type(column string) (entity.Type, bool)
- func (me *Entity) Validate() error
- func (me *Entity) Value() *Entity
- type Manager
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ENTITY = schema.TABLE("sys_menu", "MENU") ENTITY_ID = ENTITY.PRIMARY("id", "ID") ENTITY_CODE = ENTITY.COLUMN("code", "CODE") ENTITY_NAME = ENTITY.COLUMN("name", "NAME") ENTITY_FULLNAME = ENTITY.COLUMN("fullname", "FULLNAME") ENTITY_GENRE = ENTITY.COLUMN("genre", "GENRE") ENTITY_LEAF = ENTITY.COLUMN("leaf", "LEAF") ENTITY_GRADE = ENTITY.COLUMN("grade", "GRADE") ENTITY_ORDINAL = ENTITY.COLUMN("ordinal", "ORDINAL") ENTITY_PARENT_ID = ENTITY.COLUMN("parent_id", "PARENT_ID") ENTITY_PARENT_IDS = ENTITY.COLUMN("parent_ids", "PARENT_IDS") ENTITY_PARENT_CODES = ENTITY.COLUMN("parent_codes", "PARENT_CODES") ENTITY_PARENT_NAMES = ENTITY.COLUMN("parent_names", "PARENT_NAMES") ENTITY_MEMO = ENTITY.COLUMN("memo", "MEMO") ENTITY_CREATES = ENTITY.COLUMN("creates", "CREATES") ENTITY_CREATER = ENTITY.CREATER("creater", "CREATER") ENTITY_CREATED = ENTITY.CREATED("created", "CREATED") ENTITY_MODIFIER = ENTITY.MODIFIER("modifier", "MODIFIER") ENTITY_MODIFIED = ENTITY.MODIFIED("modified", "MODIFIED") ENTITY_VERSION = ENTITY.VERSION("version", "VERSION") ENTITY_DELETION = ENTITY.DELETION("deletion", "DELETION") ENTITY_ARTIFICAL = ENTITY.COLUMN("artifical", "ARTIFICAL") ENTITY_HISTORY = ENTITY.COLUMN("history", "HISTORY") ENTITY_HREF = ENTITY.COLUMN("href", "HREF") ENTITY_TARGET = ENTITY.COLUMN("target", "TARGET") ENTITY_ICON = ENTITY.COLUMN("icon", "ICON") ENTITY_HIDDEN = ENTITY.COLUMN("hidden", "HIDDEN") ENTITY_PERMISSION = ENTITY.COLUMN("permission", "PERMISSION") )
View Source
var Mgr = &Manager{ Manager: service.Manager{ Entity: func() entity.Interface { return NewEntity() }, Entities: func() entity.Interfaces { return NewEntities(10) }, }, }
Functions ¶
func SetPriority ¶
func SetPriority(value int)
Types ¶
type Controller ¶
type Controller struct {
controller.JSONTreeController
}
type Entities ¶
type Entities struct {
// contains filtered or unexported fields
}
func NewEntities ¶
type Entity ¶
MENU Entity. @entity(module:"menu" project:"sys")
func (*Entity) ExcelColumns ¶
func (*Entity) Permission ¶
func (*Entity) SetPermission ¶
Click to show internal directories.
Click to hide internal directories.