edb_config.go 352 B

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