app_permit_info.go 1.2 KB

123456789101112131415161718
  1. package viewmodels
  2. type AppPermitInfo struct {
  3. AppId int64 `json:"appId" xorm:"'app_id' bigint pk comment('APP ID') "`
  4. RoleId int64 `json:"roleId" xorm:"'role_id' bigint pk comment('Role ID') "`
  5. PermitId int64 `json:"permitId" xorm:"'permit_id' bigint pk comment('Permit ID') "`
  6. PermitTitle string `json:"permitTitle" xorm:"'permit_title' varchar(127) comment('标题') "`
  7. PermitCode string `json:"permitCode" xorm:"'permit_code' varchar(127) comment('CODE') "`
  8. PermitDesc string `json:"permitDesc" xorm:"'permit_desc' varchar(511) comment('描述') "`
  9. PermitType int64 `json:"permitType" xorm:"'permit_type' int comment('Type') "`
  10. RootId int64 `json:"rootId" xorm:"'root_id' int comment('Root Id') "`
  11. ParentId int64 `json:"parentId" xorm:"'parent_id' int comment('Parent Id') "`
  12. SortNo int64 `json:"sortNo" xorm:"'sort_no' int comment('Sort No') "`
  13. }
  14. func (t *AppPermitInfo) TableName() string {
  15. return "app_permit"
  16. }