app_permit.go 1.7 KB

123456789101112131415161718192021222324252627
  1. package datamodel
  2. import "time"
  3. type AppPermit struct {
  4. AppId int64 `json:"appId" xorm:"'app_id' bigint pk comment('APP ID') "`
  5. RoleId int64 `json:"roleId" xorm:"'role_id' bigint pk comment('Role ID') "`
  6. PermitId int64 `json:"permitId" xorm:"'permit_id' bigint pk comment('Permit ID') "`
  7. PermitTitle string `json:"permitTitle" xorm:"'permit_title' varchar(127) comment('标题') "`
  8. PermitCode string `json:"permitCode" xorm:"'permit_code' varchar(127) comment('CODE') "`
  9. PermitDesc string `json:"permitDesc" xorm:"'permit_desc' varchar(511) comment('描述') "`
  10. PermitType int64 `json:"permitType" xorm:"'permit_type' bigint comment('Type') "`
  11. RootId int64 `json:"rootId" xorm:"'root_id' bigint comment('Root Id') "`
  12. ParentId int64 `json:"parentId" xorm:"'parent_id' bigint comment('Parent Id') "`
  13. SortNo int64 `json:"sortNo" xorm:"'sort_no' bigint comment('Sort No') "`
  14. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  15. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  16. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  17. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  18. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  19. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  20. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  21. }
  22. func (t *AppPermit) TableName() string {
  23. return "app_permit"
  24. }