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