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) JSON() string
- func (me *Entity) Name() string
- func (me *Entity) Names() []string
- func (me Entity) New() entity.Interface
- func (me *Entity) Num() int
- func (me *Entity) Price() float64
- func (me *Entity) SetName(v string)
- func (me *Entity) SetNum(v int)
- func (me *Entity) SetPrice(v float64)
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ENTITY = schema.TABLE("eg_product", "产品信息") ENTITY_ID = ENTITY.PRIMARY("id", "标识") ENTITY_MEMO = ENTITY.COLUMN("memo", "备注") ENTITY_CREATES = ENTITY.COLUMN("creates", "创建机构") ENTITY_CREATER = ENTITY.CREATER("creater", "创建人员") ENTITY_CREATED = ENTITY.CREATED("created", "创建时间") ENTITY_MODIFIER = ENTITY.MODIFIER("modifier", "更新人员") ENTITY_MODIFIED = ENTITY.MODIFIED("modified", "更新时间") ENTITY_VERSION = ENTITY.VERSION("version", "乐观锁") ENTITY_DELETION = ENTITY.DELETION("deletion", "删除标志") ENTITY_ARTIFICAL = ENTITY.COLUMN("artifical", "人造数据") ENTITY_HISTORY = ENTITY.COLUMN("history", "历史数据") ENTITY_NAME = ENTITY.COLUMN("name", "名称") ENTITY_NUM = ENTITY.COLUMN("num", "库存数") ENTITY_PRICE = ENTITY.COLUMN("price", "价格") )
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 ¶
Click to show internal directories.
Click to hide internal directories.