1
This commit is contained in:
1 parent
754c24615c
commit
ae00a5c1af
12 files changed
+210
-32
No files matched your search
@@ -0,0 +1,34 @@
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user