Browse Source

适配云脑镜像列表接口修改

tags/v1.21.12.1
yuyuanshifu 4 years ago
parent
commit
98bf5483c9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/cloudbrain/resty.go

+ 2
- 1
modules/cloudbrain/resty.go View File

@@ -130,6 +130,7 @@ sendjob:
res, err := client.R().
SetHeader("Content-Type", "application/json").
SetAuthToken(TOKEN).
SetBody(map[string]interface{}{"pageIndex": 1, "pageSize": 100}).
SetResult(&getImagesResult).
Get(HOST + "/rest-server/api/v1/image/list/")

@@ -161,7 +162,7 @@ sendjob:
res, err := client.R().
SetHeader("Content-Type", "application/json").
SetAuthToken(TOKEN).
SetBody(map[string]interface{}{"pageIndex": 1, "pageSize": 50}).
SetBody(map[string]interface{}{"pageIndex": 1, "pageSize": 100}).
SetResult(&getImagesResult).
Get(HOST + "/rest-server/api/v1/image/public/list/")



Loading…
Cancel
Save