SysRole_gen.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package models
  2. import (
  3. "time"
  4. )
  5. type SysRole struct {
  6. //主键
  7. Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
  8. //名称
  9. Name string `xorm:"'name' varchar(36) notnull "json:"name"`
  10. //编码
  11. Code string `xorm:"'code' varchar(36) notnull "json:"code"`
  12. //备注
  13. Remark string `xorm:"'remark' varchar(100) notnull "json:"remark"`
  14. //状态 0:禁用 1:正常
  15. Status int32 `xorm:"'status' notnull "json:"status"`
  16. //域
  17. Domain string `xorm:"'domain' varchar(50) notnull "json:"domain"`
  18. //创建人
  19. CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
  20. //创建时间
  21. CreateTime time.Time `xorm:"'create_time' notnull "json:"create_time"`
  22. //最后更新人
  23. LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
  24. //最后更新时间
  25. LastUpdateDate time.Time `xorm:"'last_update_date' notnull "json:"last_update_date"`
  26. //是否删除 0:删除 1:正常
  27. DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
  28. }
  29. func (t *SysRole) TableName() string {
  30. return "sys_role"
  31. }