算法版本列表接口调整

Former-commit-id: b0639ee26f2898e982b8b76ff153bc76fd49f795
This commit is contained in:
tzwang 2023-05-24 10:52:55 +08:00
parent 61a2453246
commit b7e7b8cd09
4 changed files with 1021 additions and 1010 deletions

View File

@ -20,7 +20,6 @@ type OctopusApi struct {
GetMydatasetList string GetMydatasetList string
CreateImage string CreateImage string
DeleteImage string DeleteImage string
CreateDataSet string CreateDataSet string
DeleteDataSet string DeleteDataSet string
GetAlgorithmApplyList string GetAlgorithmApplyList string

View File

@ -39,6 +39,7 @@ func (l *GetAlgorithmListLogic) GetAlgorithmList(in *octopus.GetAlgorithmListReq
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))).
SetPathParam("algorithmId", in.AlgorithmId).
SetResult(resp). SetResult(resp).
Get(reqUrl) Get(reqUrl)

File diff suppressed because it is too large Load Diff

View File

@ -97,8 +97,9 @@ message PayloadUploadAlgorithmConfirm{
message GetAlgorithmListReq{ message GetAlgorithmListReq{
string platform =1; string platform =1;
int32 pageIndex =2; string algorithmId = 2;
int32 pageSize =3; int32 pageIndex =3;
int32 pageSize =4;
} }
message GetAlgorithmListResp{ message GetAlgorithmListResp{