admin_menu.gen.go 1.5 KB

123456789101112131415161718192021222324252627282930313233
  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. Path string `gorm:"column:path" json:"path"`
  10. Name string `gorm:"column:name" json:"name"`
  11. Component string `gorm:"column:component" json:"component"`
  12. Redirect string `gorm:"column:redirect" json:"redirect"`
  13. Icon string `gorm:"column:icon" json:"icon"`
  14. Title string `gorm:"column:title" json:"title"`
  15. Sort int32 `gorm:"column:sort" json:"sort"`
  16. ActiveMenu string `gorm:"column:active_menu" json:"active_menu"`
  17. IsRoot int32 `gorm:"column:is_root" json:"is_root"`
  18. ParentID int32 `gorm:"column:parent_id" json:"parent_id"`
  19. Hidden int32 `gorm:"column:hidden" json:"hidden"`
  20. Disable int32 `gorm:"column:disable;not null" json:"disable"`
  21. IsSuper int32 `gorm:"column:is_super;not null;comment:1只有管理员有查看权限" json:"is_super"` // 1只有管理员有查看权限
  22. LocalShow int32 `gorm:"column:local_show;not null;comment:1只在本地展示" json:"local_show"` // 1只在本地展示
  23. CreateAt int32 `gorm:"column:create_at" json:"create_at"`
  24. UpdateAt int32 `gorm:"column:update_at" json:"update_at"`
  25. }
  26. // TableName AdminMenu's table name
  27. func (*AdminMenu) TableName() string {
  28. return TableNameAdminMenu
  29. }