| New file |
| | |
| | | <?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> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <project version="4">
|
| | | <component name="JavaScriptSettings">
|
| | | <option name="languageLevel" value="ES6" />
|
| | | </component>
|
| | | </project> |
| New file |
| | |
| | | <?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> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <project version="4">
|
| | | <component name="VcsDirectoryMappings">
|
| | | <mapping directory="$PROJECT_DIR$" vcs="Git" />
|
| | | </component>
|
| | | </project> |
| | |
| | | |
| | | //获取所有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) |
| | |
| | | } |
| | | |
| | | 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 { |
| | |
| | | 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 |