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
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) JSON() string
- func (me *Entity) MenuIds() string
- func (me *Entity) Names() []string
- func (me Entity) New() entity.Interface
- func (me *Entity) SetMenuIds(v string)
- func (me *Entity) SetString(field, value string) error
- func (me *Entity) Table() schema.Table
- func (me *Entity) Type(column string) (entity.Type, bool)
- func (me *Entity) Validate() error
- func (me *Entity) Value() *Entity
- type Manager
- type MenuController
- type MenuEntities
- func (me *MenuEntities) Append(v entity.Interface)
- func (me *MenuEntities) Cap() int
- func (me *MenuEntities) Index(v int) entity.Interface
- func (me *MenuEntities) JSON() string
- func (me *MenuEntities) Len() int
- func (me *MenuEntities) Make(cap int)
- func (me *MenuEntities) New() entity.Interface
- func (me *MenuEntities) Slice() interface{}
- func (me *MenuEntities) Value(v int) *MenuEntity
- func (me *MenuEntities) Values() []*MenuEntity
- type MenuEntity
- func (me *MenuEntity) Column(field string) (schema.Column, bool)
- func (me *MenuEntity) Columns() []schema.Column
- func (me *MenuEntity) ExcelColumns() []string
- func (me *MenuEntity) Get(column string) interface{}
- func (me *MenuEntity) GetPtr(column string) interface{}
- func (me *MenuEntity) GetString(field string) string
- func (me *MenuEntity) JSON() string
- func (me *MenuEntity) MenuId() string
- func (me *MenuEntity) Names() []string
- func (me MenuEntity) New() entity.Interface
- func (me *MenuEntity) PostId() string
- func (me *MenuEntity) SetMenuId(v string)
- func (me *MenuEntity) SetPostId(v string)
- func (me *MenuEntity) SetString(field, value string) error
- func (me *MenuEntity) Table() schema.Table
- func (me *MenuEntity) Type(column string) (entity.Type, bool)
- func (me *MenuEntity) Validate() error
- func (me *MenuEntity) Value() *MenuEntity
- type MenuManager
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MENU_ENTITY = schema.TABLE("sys_post_menu", "POST MENU") MENU_ENTITY_ID = MENU_ENTITY.PRIMARY("id", "ID") MENU_ENTITY_MEMO = MENU_ENTITY.COLUMN("memo", "MEMO") MENU_ENTITY_CREATES = MENU_ENTITY.COLUMN("creates", "CREATES") MENU_ENTITY_CREATER = MENU_ENTITY.CREATER("creater", "CREATER") MENU_ENTITY_CREATED = MENU_ENTITY.CREATED("created", "CREATED") MENU_ENTITY_MODIFIER = MENU_ENTITY.MODIFIER("modifier", "MODIFIER") MENU_ENTITY_MODIFIED = MENU_ENTITY.MODIFIED("modified", "MODIFIED") MENU_ENTITY_VERSION = MENU_ENTITY.VERSION("version", "VERSION") MENU_ENTITY_DELETION = MENU_ENTITY.DELETION("deletion", "DELETION") MENU_ENTITY_ARTIFICAL = MENU_ENTITY.COLUMN("artifical", "ARTIFICAL") MENU_ENTITY_HISTORY = MENU_ENTITY.COLUMN("history", "HISTORY") MENU_ENTITY_POST_ID = MENU_ENTITY.COLUMN("post_id", "POST_ID") MENU_ENTITY_MENU_ID = MENU_ENTITY.COLUMN("menu_id", "MENU_ID") )
View Source
var ( ENTITY = schema.TABLE("sys_post", "POST") 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_MENU_IDS = ENTITY.TRANSIENT("menu_ids", "MENU IDS") )
View Source
var MenuMgr = &MenuManager{ Manager: service.Manager{ Entity: func() entity.Interface { return NewMenuEntity() }, Entities: func() entity.Interfaces { return NewMenuEntities(10) }, }, }
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 ¶
POST Entity. @entity(module:"post" project:"sys")
func (*Entity) ExcelColumns ¶
func (*Entity) SetMenuIds ¶
type MenuController ¶
type MenuController struct {
controller.JSONController
}
type MenuEntities ¶
type MenuEntities struct {
// contains filtered or unexported fields
}
func NewMenuEntities ¶
func NewMenuEntities(v int) *MenuEntities
func (*MenuEntities) Append ¶
func (me *MenuEntities) Append(v entity.Interface)
func (*MenuEntities) Cap ¶
func (me *MenuEntities) Cap() int
func (*MenuEntities) JSON ¶
func (me *MenuEntities) JSON() string
func (*MenuEntities) Len ¶
func (me *MenuEntities) Len() int
func (*MenuEntities) Make ¶
func (me *MenuEntities) Make(cap int)
func (*MenuEntities) New ¶
func (me *MenuEntities) New() entity.Interface
func (*MenuEntities) Slice ¶
func (me *MenuEntities) Slice() interface{}
func (*MenuEntities) Value ¶
func (me *MenuEntities) Value(v int) *MenuEntity
func (*MenuEntities) Values ¶
func (me *MenuEntities) Values() []*MenuEntity
type MenuEntity ¶
POST MENU Entity. @entity(module:"post_menu" project:"sys" relationship:"slave")
func NewMenuEntity ¶
func NewMenuEntity() *MenuEntity
func (*MenuEntity) Columns ¶
func (me *MenuEntity) Columns() []schema.Column
func (*MenuEntity) ExcelColumns ¶
func (me *MenuEntity) ExcelColumns() []string
func (*MenuEntity) Get ¶
func (me *MenuEntity) Get(column string) interface{}
func (*MenuEntity) GetPtr ¶
func (me *MenuEntity) GetPtr(column string) interface{}
func (*MenuEntity) GetString ¶
func (me *MenuEntity) GetString(field string) string
func (*MenuEntity) JSON ¶
func (me *MenuEntity) JSON() string
func (*MenuEntity) MenuId ¶
func (me *MenuEntity) MenuId() string
func (*MenuEntity) Names ¶
func (me *MenuEntity) Names() []string
func (MenuEntity) New ¶
func (me MenuEntity) New() entity.Interface
func (*MenuEntity) PostId ¶
func (me *MenuEntity) PostId() string
func (*MenuEntity) SetMenuId ¶
func (me *MenuEntity) SetMenuId(v string)
func (*MenuEntity) SetPostId ¶
func (me *MenuEntity) SetPostId(v string)
func (*MenuEntity) SetString ¶
func (me *MenuEntity) SetString(field, value string) error
func (*MenuEntity) Table ¶
func (me *MenuEntity) Table() schema.Table
func (*MenuEntity) Validate ¶
func (me *MenuEntity) Validate() error
func (*MenuEntity) Value ¶
func (me *MenuEntity) Value() *MenuEntity
type MenuManager ¶
Source Files
¶
- log_xgen.go
- menu_controller.go
- menu_controller_xgen.go
- menu_entities_xgen.go
- menu_entity.go
- menu_entity_xgen.go
- menu_manager.go
- menu_manager_xgen.go
- menu_sql.go
- post_const.go
- post_controller.go
- post_controller_xgen.go
- post_entities_xgen.go
- post_entity.go
- post_entity_xgen.go
- post_manager.go
- post_manager_xgen.go
- post_sql.go
- post_util.go
Click to show internal directories.
Click to hide internal directories.