group_cat.go 1.2 KB

12345678910111213141516171819202122
  1. package datamodels
  2. import "time"
  3. type GroupCat struct {
  4. OcId int64 `json:"-" xorm:"'oc_id' bigint pk comment('组织ID:公司或机构或单位ID')"`
  5. GroupCatId int64 `json:"groupCatId" xorm:"'group_cat_id' bigint pk comment('主键ID') "`
  6. GroupCatTitle string `json:"groupCatTitle" xorm:"'group_cat_title' varchar(50) comment('群组类型名称') "`
  7. GroupCatDesc string `json:"groupCatDesc" xorm:"'group_cat_desc' varchar(50) comment('描述') "`
  8. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  9. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  10. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  11. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  12. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  13. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  14. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  15. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  16. }
  17. func (t *GroupCat) TableName() string {
  18. return "s_group_cat"
  19. }