一键打包生成oem项目exe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
820 B

package initFunc
import (
"github.com/gogf/gf/util/gconv"
)
//请求api接口将,获取oem的配置信息
func RequestOemSettingInfo(wailsConfig map[string]interface{}) map[string]interface{} {
if wailsConfig == nil {
return nil
}
mapData := gconv.Map(wailsConfig["ext_oem"])
if mapData == nil {
return nil
}
return mapData
// url := "http://172.16.20.7:8199/api/oem/infoById?id="+gconv.String(mapData["id"])
// //请求api接口))
// resp, err := http.Get(url)
// if err != nil {
// return nil
// }
// defer resp.Body.Close()
// //返回数据的转换
// var data map[string]interface{}
// decoder := json.NewDecoder(resp.Body)
// err = decoder.Decode(&data)
// if err != nil {
// return nil
// }
// //提取data数据
// settingData := gconv.Map(data["data"])
// return settingData
}