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) Genre() 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) Name() string
- func (me *Entity) Names() []string
- func (me Entity) New() entity.Interface
- func (me *Entity) SetGenre(v string)
- func (me *Entity) SetName(v string)
- func (me *Entity) SetString(field, value string) error
- func (me *Entity) SetUsable(v string)
- func (me *Entity) Table() schema.Table
- func (me *Entity) Type(column string) (entity.Type, bool)
- func (me *Entity) Usable() string
- 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_blacklist", "BLACKLIST") ENTITY_ID = ENTITY.PRIMARY("id", "ID") 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_NAME = ENTITY.COLUMN("name", "NAME") ENTITY_GENRE = ENTITY.COLUMN("genre", "GENRE") ENTITY_USABLE = ENTITY.COLUMN("usable", "USABLE") )
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.JSONController
}
type Entities ¶
type Entities struct {
// contains filtered or unexported fields
}
func NewEntities ¶
type Entity ¶
BLACKLIST Entity. @entity(module:"blacklist" project:"sys")
func (*Entity) ExcelColumns ¶
Click to show internal directories.
Click to hide internal directories.