面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

adm_role.go 836 B

9 kuukautta sitten
12345678910111213141516
  1. package model
  2. import (
  3. "time"
  4. )
  5. type AdmRole struct {
  6. RoleId int `json:"role_id" xorm:"not null pk comment('角色ID') INT(10)"`
  7. RoleName string `json:"role_name" xorm:"not null default '' comment('角色名称') VARCHAR(64)"`
  8. Perms string `json:"perms" xorm:"comment('权限列表') TEXT"`
  9. IsSuper int `json:"is_super" xorm:"not null default 0 comment('是否超管') TINYINT(1)"`
  10. State int `json:"state" xorm:"not null default 1 comment('0禁用,1启用') TINYINT(1)"`
  11. Memo string `json:"memo" xorm:"not null default '' comment('备注') VARCHAR(500)"`
  12. CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') TIMESTAMP"`
  13. UpdateAt time.Time `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP comment('更新时间') TIMESTAMP"`
  14. }