|
|
@@ -4,36 +4,35 @@ import "time"
|
|
|
|
|
|
// Group Account Data Model
|
|
|
type Group struct {
|
|
|
- OcId int64 `json:"ocId" xorm:"'oc_id' bigint not null pk comment('公司组织ID') " `
|
|
|
- GroupId int64 `json:"groupId" xorm:"'group_id' bigint not null pk comment('群组ID') " `
|
|
|
- GroupName string `json:"groupName" xorm:"'group_name' varchar(127) not null comment('群组名称') " `
|
|
|
- GroupCatId int64 `json:"groupCatId" xorm:"'group_cat_id' bigint not null comment('群组类型ID') " `
|
|
|
- GroupCatTitle string `json:"groupCatTitle" xorm:"'group_cat_title' varchar(127) not null comment('群组类型名称') " `
|
|
|
+ OcId int64 `json:"ocId" xorm:"'oc_id' bigint not null pk comment('公司组织ID') " `
|
|
|
+ GroupId int64 `json:"groupId" xorm:"'group_id' bigint not null pk comment('群组ID') " `
|
|
|
+ GroupName string `json:"groupName" xorm:"'group_name' varchar(127) not null comment('群组名称') " `
|
|
|
+ GroupCatId int64 `json:"groupCatId" xorm:"'group_cat_id' bigint not null comment('群组类型ID') " `
|
|
|
+ GroupCatTitle string `json:"groupCatTitle" xorm:"'group_cat_title' varchar(127) not null comment('群组类型名称') " `
|
|
|
|
|
|
- GroupPath string `json:"groupPath" xorm:"'group_path' varchar(255) not null comment('群组PATH') " `
|
|
|
- GroupDesc string `json:"groupDesc" xorm:"'group_desc' varchar(255) not null comment('群组DESC') " `
|
|
|
- GroupCode string `json:"groupCode" xorm:"'group_code' varchar(127) not null comment('群组CODE') " `
|
|
|
- GroupSelect string `json:"groupSelect" xorm:"'group_select' varchar(255) not null comment('群组PATH') " `
|
|
|
+ GroupPath string `json:"groupPath" xorm:"'group_path' varchar(255) not null comment('群组PATH') " `
|
|
|
+ GroupDesc string `json:"groupDesc" xorm:"'group_desc' varchar(255) not null comment('群组DESC') " `
|
|
|
+ GroupCode string `json:"groupCode" xorm:"'group_code' varchar(127) not null comment('群组CODE') " `
|
|
|
+ GroupSelect string `json:"groupSelect" xorm:"'group_select' varchar(255) not null comment('群组PATH') " `
|
|
|
|
|
|
- RootId int64 `json:"rootId" xorm:"'root_id' bigint not null comment('Order') " `
|
|
|
- ParentId int64 `json:"parentId" xorm:"'parent_id' bigint not null comment('父群组ID') " `
|
|
|
- NodeLeft int64 `json:"nodeLeft" xorm:"'node_left' bigint not null comment('群组LEFT') " `
|
|
|
- NodeRight int64 `json:"nodeRight" xorm:"'node_right' bigint not null comment('群组RIGHT') " `
|
|
|
- NodeLevel int64 `json:"nodeLevel" xorm:"'node_level' bigint not null comment('群组LEVEL') " `
|
|
|
+ RootId int64 `json:"rootId" xorm:"'root_id' bigint not null comment('Order') " `
|
|
|
+ ParentId int64 `json:"parentId" xorm:"'parent_id' bigint not null comment('父群组ID') " `
|
|
|
+ NodeLeft int64 `json:"nodeLeft" xorm:"'node_left' bigint not null comment('群组LEFT') " `
|
|
|
+ NodeRight int64 `json:"nodeRight" xorm:"'node_right' bigint not null comment('群组RIGHT') " `
|
|
|
+ NodeLevel int64 `json:"nodeLevel" xorm:"'node_level' bigint not null comment('群组LEVEL') " `
|
|
|
|
|
|
- IsLeaf int64 `json:"isLeaf" xorm:"'is_leaf' bigint not null comment('LEAF群组') " `
|
|
|
- IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint not null comment('群组STATUS') " `
|
|
|
+ IsLeaf int64 `json:"isLeaf" xorm:"'is_leaf' bigint not null comment('LEAF群组') " `
|
|
|
+ IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint not null comment('群组STATUS') " `
|
|
|
|
|
|
- CreatedBy int64 `json:"createdBy" xorm:"'created_by' " `
|
|
|
- CreatedAt time.Time `json:"createdAt" xorm:"'created_at' " `
|
|
|
- UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by' " `
|
|
|
- UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at' " `
|
|
|
- DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'" `
|
|
|
- DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by' " `
|
|
|
- DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at' " `
|
|
|
+ CreatedBy int64 `json:"createdBy" xorm:"'created_by' " `
|
|
|
+ CreatedAt time.Time `json:"createdAt" xorm:"'created_at' " `
|
|
|
+ UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by' " `
|
|
|
+ UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at' " `
|
|
|
+ DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'" `
|
|
|
+ DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by' " `
|
|
|
+ DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at' " `
|
|
|
}
|
|
|
|
|
|
-// TableName table name
|
|
|
func (t *Group) TableName() string {
|
|
|
return "s_group"
|
|
|
}
|