modules.go 1.7 KB

1234567891011121314151617181920212223242526272829303132
  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 entity
  5. import (
  6. "time"
  7. )
  8. const TableNameModule = "modules"
  9. // Module mapped from table <modules>
  10. type Module struct {
  11. ModelID int64 `gorm:"column:model_id;type:int;primaryKey;autoIncrement:true" json:"model_id"`
  12. ModelName string `gorm:"column:model_name;type:varchar(100);not null" json:"model_name"` // 模块名
  13. ModelGroup string `gorm:"column:model_group;type:varchar(100);not null" json:"model_group"` // 模块分组
  14. Menu string `gorm:"column:menu;type:varchar(20);not null" json:"menu"` // 菜单项
  15. ModelURL string `gorm:"column:model_url;type:varchar(255);not null" json:"model_url"` // 模块连接
  16. ModelIndex int64 `gorm:"column:model_index;type:int;not null" json:"model_index"` // 模块序号
  17. Visible int64 `gorm:"column:visible;type:tinyint;not null;default:1" json:"visible"` // 是否显示
  18. ModelStatus int64 `gorm:"column:model_status;type:tinyint;not null;default:1" json:"model_status"` // 模块状态
  19. OperatorUID int64 `gorm:"column:operator_uid;type:bigint;not null" json:"operator_uid"` // 操作人
  20. CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"` // 添加时间
  21. UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"` // 更新时间
  22. }
  23. // TableName Module's table name
  24. func (*Module) TableName() string {
  25. return TableNameModule
  26. }