sys_config.go 798 B

1234567891011121314151617181920212223242526272829
  1. package model
  2. import (
  3. model2 "Medical_OAuth/common/model"
  4. )
  5. type SysConfig struct {
  6. model2.Model
  7. ConfigName string `json:"configName" gorm:"size:128;comment:ConfigName"` // 配置名称
  8. ConfigKey string `json:"configKey" gorm:"size:128;comment:ConfigKey"` // 配置Key
  9. ConfigValue string `json:"configValue" gorm:"size:255;comment:ConfigValue"` // 配置值
  10. IsFrontend string `json:"isFrontend" gorm:"size:64;comment:是否前台"` //是否前台展示
  11. Remark string `json:"remark" gorm:"size:128;comment:Remark"` //
  12. model2.ControlBy
  13. model2.ModelTime
  14. }
  15. func (SysConfig) TableName() string {
  16. return "sys_config"
  17. }
  18. func (e *SysConfig) Generate() model2.ActiveRecord {
  19. o := *e
  20. return &o
  21. }
  22. func (e *SysConfig) GetId() interface{} {
  23. return e.Id
  24. }