SysRoleMenu_gen.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package models
  2. import (
  3. "time"
  4. //__import_packages__
  5. )
  6. type SysRoleMenu struct {
  7. //主键
  8. Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
  9. //用户ID
  10. RoleId string `xorm:"'role_id' varchar(36) notnull "json:"role_id"`
  11. //角色ID
  12. MenuId string `xorm:"'menu_id' varchar(36) notnull "json:"menu_id"`
  13. //域
  14. Domain string `xorm:"'domain' notnull "json:"domain"`
  15. //创建人
  16. CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
  17. //创建时间
  18. CreateTime time.Time `xorm:"'create_time' notnull "json:"create_time"`
  19. //最后更新人
  20. LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
  21. //最后更新时间
  22. LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
  23. //是否删除 1:删除 0:正常
  24. DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
  25. }
  26. func (t *SysRoleMenu) TableName() string {
  27. return "sys_role_menu"
  28. }
  29. func init() {
  30. AddTableName("sys_role_menu")
  31. RegisterModel(new(SysRoleMenu))
  32. }