| .idea/dbapi.iml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| .idea/misc.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| .idea/modules.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| .idea/vcs.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| soApi.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| soApi_test.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
.idea/dbapi.iml
New file @@ -0,0 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager"> <content url="file://$MODULE_DIR$" /> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> </component> </module> .idea/misc.xml
New file @@ -0,0 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="JavaScriptSettings"> <option name="languageLevel" value="ES6" /> </component> </project> .idea/modules.xml
New file @@ -0,0 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ProjectModuleManager"> <modules> <module fileurl="file://$PROJECT_DIR$/.idea/dbapi.iml" filepath="$PROJECT_DIR$/.idea/dbapi.iml" /> </modules> </component> </project> .idea/vcs.xml
New file @@ -0,0 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="VcsDirectoryMappings"> <mapping directory="$PROJECT_DIR$" vcs="Git" /> </component> </project> soApi.go
@@ -10,7 +10,7 @@ //获取所有sdkId与soName映射信息 func (api SoApi) FindAll() (soInfos []protomsg.SoInfo) { url := BASIC_URL + DATA_URL_PREFIX + "/soInfo/findAll" url := BASIC_URL + DATA_URL_PREFIX + "/so/findAll" client := NewClient() respBody, err := client.DoGetRequest(url, nil, nil) @@ -28,7 +28,7 @@ } func (api SoApi) Add(paramBody map[string]interface{}) (bool,interface{}) { url := BASIC_URL + DATA_URL_PREFIX + "/soInfo/addSo" url := BASIC_URL + DATA_URL_PREFIX + "/so/addSo" client := NewClient() respBody, err := client.DoPostRequest(url, CONTENT_TYPE_JSON, paramBody, nil, nil) if err != nil { @@ -37,22 +37,6 @@ var res Result if err = json.Unmarshal(respBody, &res); err != nil { fmt.Println(err) return false,nil } return res.Success,res.Data } func (api SoApi) Delete(taskId string) (bool,interface{}){ url := BASIC_URL + DATA_URL_PREFIX + "/task/delete" client := NewClient() paramQuery :=make(map[string]string,0) paramQuery["taskId"] = taskId respBody, err := client.DoGetRequest(url, paramQuery, nil) if err != nil { return false,nil } var res Result if err = json.Unmarshal(respBody, &res); err != nil { return false,nil } return res.Success,res.Data soApi_test.go
New file @@ -0,0 +1 @@ package dbapi