cm_permission.go 583 B

123456789101112
  1. package models
  2. type CmPermission struct {
  3. Id int `xorm:"not null pk autoincr INT(11)"`
  4. Name string `xorm:"not null comment('权限名称') VARCHAR(32)"`
  5. Controller string `xorm:"comment('控制器名称') VARCHAR(32)"`
  6. Action string `xorm:"comment('action名称') VARCHAR(32)"`
  7. Pid int `xorm:"not null comment('父ID') INT(11)"`
  8. IconClass string `xorm:"comment('图标类名') VARCHAR(32)"`
  9. CreateTime int `xorm:"comment('创建时间') INT(11)"`
  10. Isshow int `xorm:"not null default 1 comment('是否展示该权限') TINYINT(4)"`
  11. }