sys_config.go 790 B

123456789101112131415161718192021222324252627282930
  1. package models
  2. import (
  3. "go-admin/common/models"
  4. )
  5. type SysConfig struct {
  6. models.Model
  7. ConfigName string `json:"configName" gorm:"size:128;comment:ConfigName"` //
  8. ConfigKey string `json:"configKey" gorm:"size:128;comment:ConfigKey"` //
  9. ConfigValue string `json:"configValue" gorm:"size:255;comment:ConfigValue"` //
  10. ConfigType string `json:"configType" gorm:"size:64;comment:ConfigType"`
  11. IsFrontend string `json:"isFrontend" gorm:"size:64;comment:是否前台"` //
  12. Remark string `json:"remark" gorm:"size:128;comment:Remark"` //
  13. models.ControlBy
  14. models.ModelTime
  15. }
  16. func (SysConfig) TableName() string {
  17. return "sys_config"
  18. }
  19. func (e *SysConfig) Generate() models.ActiveRecord {
  20. o := *e
  21. return &o
  22. }
  23. func (e *SysConfig) GetId() interface{} {
  24. return e.Id
  25. }