octopus 返回参数调整

This commit is contained in:
tzwang 2023-05-12 09:30:32 +08:00
parent 830fc3ec65
commit 5d7a6e2700
6 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ func (l *CreateImageLogic) CreateImage(in *octopus.CreateImageReq) (*octopus.Cre
_, err := req. _, err := req.
SetHeader("Authorization", "Bearer "+token). SetHeader("Authorization", "Bearer "+token).
SetBody(in.CreateImage). SetBody(in.CreateImage).
SetResult(&resp). SetResult(resp).
Post(reqUrl) Post(reqUrl)
if err != nil { if err != nil {

View File

@ -37,7 +37,7 @@ func (l *DeleteImageLogic) DeleteImage(in *octopus.DeleteImageReq) (*octopus.Del
_, err := req. _, err := req.
SetHeader("Authorization", "Bearer "+token). SetHeader("Authorization", "Bearer "+token).
SetPathParam("imageId", in.ImageId). SetPathParam("imageId", in.ImageId).
SetResult(&resp). SetResult(resp).
Delete(reqUrl) Delete(reqUrl)
if err != nil { if err != nil {

View File

@ -40,7 +40,7 @@ func (l *GetMyAlgorithmListLogic) GetMyAlgorithmList(in *octopus.GetMyAlgorithmL
SetHeader("Authorization", "Bearer "+token). SetHeader("Authorization", "Bearer "+token).
SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))). SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))).
SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))). SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))).
SetResult(&resp). SetResult(resp).
Get(reqUrl) Get(reqUrl)
if err != nil { if err != nil {

View File

@ -40,7 +40,7 @@ func (l *GetMyDatasetListLogic) GetMyDatasetList(in *octopus.GetMyDatasetListReq
SetHeader("Authorization", "Bearer "+token). SetHeader("Authorization", "Bearer "+token).
SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))). SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))).
SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))). SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))).
SetResult(&resp). SetResult(resp).
Get(reqUrl) Get(reqUrl)
if err != nil { if err != nil {

View File

@ -40,7 +40,7 @@ func (l *GetNotebookListLogic) GetNotebookList(in *octopus.GetNotebookListReq) (
SetHeader("Authorization", "Bearer "+token). SetHeader("Authorization", "Bearer "+token).
SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))). SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))).
SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))). SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))).
SetResult(&resp). SetResult(resp).
Get(reqUrl) Get(reqUrl)
if err != nil { if err != nil {

View File

@ -39,7 +39,7 @@ func (l *GetUserImageListLogic) GetUserImageList(in *octopus.GetUserImageListReq
SetHeader("Authorization", "Bearer "+token). SetHeader("Authorization", "Bearer "+token).
SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))). SetQueryString("pageIndex=" + strconv.Itoa(int(in.PageIndex))).
SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))). SetQueryString("pageSize=" + strconv.Itoa(int(in.PageSize))).
SetResult(&resp). SetResult(resp).
Get(reqUrl) Get(reqUrl)
if err != nil { if err != nil {