admin_menu.gen.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. const TableNameAdminMenu = "admin_menu"
  6. // AdminMenu mapped from table <admin_menu>
  7. type AdminMenu struct {
  8. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  9. SystemID int32 `gorm:"column:system_id;not null" json:"system_id"`
  10. Path string `gorm:"column:path" json:"path"`
  11. Name string `gorm:"column:name" json:"name"`
  12. Component string `gorm:"column:component" json:"component"`
  13. Redirect string `gorm:"column:redirect" json:"redirect"`
  14. Icon string `gorm:"column:icon" json:"icon"`
  15. Title string `gorm:"column:title" json:"title"`
  16. Sort int32 `gorm:"column:sort" json:"sort"`
  17. IsRoot int32 `gorm:"column:is_root;not null;comment:1 true" json:"is_root"` // 1 true
  18. ActiveMenu string `gorm:"column:active_menu;not null" json:"active_menu"`
  19. Hidden int32 `gorm:"column:hidden;not null;comment:1隐藏" json:"hidden"` // 1隐藏
  20. ParentID int32 `gorm:"column:parent_id" json:"parent_id"`
  21. Disable int32 `gorm:"column:disable;not null" json:"disable"`
  22. IsSuper int32 `gorm:"column:is_super;not null;comment:1只有管理员有查看权限" json:"is_super"` // 1只有管理员有查看权限
  23. LocalShow int32 `gorm:"column:local_show;not null;comment:1只在本地展示" json:"local_show"` // 1只在本地展示
  24. CreateAt int32 `gorm:"column:create_at" json:"create_at"`
  25. UpdateAt int32 `gorm:"column:update_at" json:"update_at"`
  26. }
  27. // TableName AdminMenu's table name
  28. func (*AdminMenu) TableName() string {
  29. return TableNameAdminMenu
  30. }