算法版本列表接口调整
Former-commit-id: b0639ee26f2898e982b8b76ff153bc76fd49f795
This commit is contained in:
parent
61a2453246
commit
b7e7b8cd09
|
@ -14,13 +14,12 @@ type OctopusConfig struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type OctopusApi struct {
|
type OctopusApi struct {
|
||||||
GetUserImageList string
|
GetUserImageList string
|
||||||
GetMyAlgorithmList string
|
GetMyAlgorithmList string
|
||||||
GetNotebookList string
|
GetNotebookList string
|
||||||
GetMydatasetList string
|
GetMydatasetList string
|
||||||
CreateImage string
|
CreateImage string
|
||||||
DeleteImage string
|
DeleteImage string
|
||||||
|
|
||||||
CreateDataSet string
|
CreateDataSet string
|
||||||
DeleteDataSet string
|
DeleteDataSet string
|
||||||
GetAlgorithmApplyList string
|
GetAlgorithmApplyList string
|
||||||
|
|
|
@ -37,8 +37,9 @@ func (l *GetAlgorithmListLogic) GetAlgorithmList(in *octopus.GetAlgorithmListReq
|
||||||
req := tool.GetACHttpRequest()
|
req := tool.GetACHttpRequest()
|
||||||
_, err := req.
|
_, err := req.
|
||||||
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
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue