Implement download/getUrl

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-04-10 11:03:06 +08:00
parent fd95e54756
commit 8f1aa59e67
4 changed files with 87 additions and 5 deletions
+18
View File
@@ -64,6 +64,24 @@ type UpdateResp struct {
StatusCode int `json:"status_code"`
}
type UrlReq struct {
Module string `json:"module"`
Os string `json:"os"`
Mgd int `json:"mgd"`
PathList []string `json:"path_list"`
Action string `json:"action"`
}
type UrlResult struct {
UrlList []string `json:"url_list"`
}
type UrlResp struct {
ResponseData UrlResult `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
type EventResp struct {
ResponseData []interface{} `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`