| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package models
- import (
- "time"
- )
- type SysOrg struct {
- //主键
- Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
- //上级组织
- Parent string `xorm:"'parent' varchar(36) null "json:"parent"`
- //继承关系
- Inheritance string `xorm:"'inheritance' varchar(500) null "json:"inheritance"`
- //名称
- Name string `xorm:"'name' varchar(36) notnull "json:"name"`
- //全名
- FullName string `xorm:"'full_name' varchar(36) notnull "json:"full_name"`
- //领导人
- Leader string `xorm:"'leader' varchar(36) notnull "json:"leader"`
- //组织类型
- Type int32 `xorm:"'type' notnull "json:"type"`
- //排序
- Order int32 `xorm:"'order' notnull "json:"order"`
- //状态 0:禁用 1:正常
- Status int32 `xorm:"'status' notnull "json:"status"`
- //域
- Domain string `xorm:"'domain' varchar(36) notnull "json:"domain"`
- //创建人
- CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
- //创建时间
- CreateTime time.Time `xorm:"'create_time' notnull "json:"create_time"`
- //最后更新人
- LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
- //最后更新时间
- LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
- //是否删除 1:删除 0:正常
- DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
- }
- func (t *SysOrg) TableName() string {
- return "sys_org"
- }
- func init() {
- AddTableName("sys_org")
- RegisterModel(new(SysOrg))
- }
|