edb_config.go 414 B

1234567891011121314151617
  1. package data_manage
  2. import (
  3. "eta_gn/eta_api/global"
  4. )
  5. type EdbConfig struct {
  6. ConfigValue string `description:"详情"`
  7. }
  8. // GetConfigDetailByCode 根据配置编码获取配置的值
  9. func GetConfigDetailByCode(configCode string) (item *EdbConfig, err error) {
  10. sql := ` SELECT config_value FROM edb_config WHERE config_code=? `
  11. err = global.DmSQL["data"].Raw(sql, configCode).First(&item).Error
  12. return
  13. }