存算联动api修改
Former-commit-id: 3506b3ba895b1e03bc6e0664c4b9d3de40c18da2
This commit is contained in:
parent
6abe1381e7
commit
225720a518
|
@ -296,7 +296,7 @@ service pcm {
|
||||||
|
|
||||||
service pcm {
|
service pcm {
|
||||||
@handler UploadLinkImageHandler
|
@handler UploadLinkImageHandler
|
||||||
post /storelink/uploadImage (UploadLinkImageReq) returns (UploadLinkImageImageResp)
|
post /storelink/uploadImage (UploadLinkImageReq) returns (UploadLinkImageResp)
|
||||||
|
|
||||||
@handler GetLinkImageListHandler
|
@handler GetLinkImageListHandler
|
||||||
get /storelink/getImageList (GetLinkImageListReq) returns (GetLinkImageListResp)
|
get /storelink/getImageList (GetLinkImageListReq) returns (GetLinkImageListResp)
|
||||||
|
|
|
@ -13,8 +13,16 @@ type (
|
||||||
FilePath string `json:"filePath"`
|
FilePath string `json:"filePath"`
|
||||||
}
|
}
|
||||||
|
|
||||||
UploadLinkImageImageResp {
|
UploadLinkImageResp {
|
||||||
|
Success bool `json:"success"`
|
||||||
|
Image Image `json:"image"`
|
||||||
|
ErrorMsg string `json:"errorMsg"`
|
||||||
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
ImageId string `json:"imageId"`
|
||||||
|
ImageName string `json:"imageName"`
|
||||||
|
ImageStatus string `json:"imageStatus"`
|
||||||
}
|
}
|
||||||
|
|
||||||
GetLinkImageListReq {
|
GetLinkImageListReq {
|
||||||
|
@ -22,36 +30,67 @@ type (
|
||||||
}
|
}
|
||||||
|
|
||||||
GetLinkImageListResp {
|
GetLinkImageListResp {
|
||||||
ImageIds []int64 `json:"imageIds"`
|
Success bool `json:"success"`
|
||||||
|
Images []Image `json:"images"`
|
||||||
|
ErrorMsg string `json:"errorMsg"`
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteLinkImageReq {
|
DeleteLinkImageReq {
|
||||||
|
PartId int64 `json:"partId"`
|
||||||
|
ImageId string `json:"imageId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteLinkImageResp {
|
DeleteLinkImageResp {
|
||||||
|
Success bool `json:"success"`
|
||||||
|
Image Image `json:"image"`
|
||||||
|
ErrorMsg string `json:"errorMsg"`
|
||||||
}
|
}
|
||||||
|
|
||||||
SubmitLinkTaskReq {
|
SubmitLinkTaskReq {
|
||||||
|
PartId int64 `json:"partId"`
|
||||||
|
ImageId string `json:"imageId"`
|
||||||
|
Cmd string `json:"cmd"`
|
||||||
|
Envs []Env `json:"envs"`
|
||||||
|
}
|
||||||
|
|
||||||
|
Env {
|
||||||
|
Key string `json:"key"`
|
||||||
|
Val string `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
SubmitLinkTaskResp {
|
SubmitLinkTaskResp {
|
||||||
|
Success bool `json:"success"`
|
||||||
|
TaskId string `json:"taskId"`
|
||||||
|
ErrorMsg string `json:"errorMsg"`
|
||||||
}
|
}
|
||||||
|
|
||||||
GetLinkTaskReq {
|
GetLinkTaskReq {
|
||||||
|
PartId int64 `json:"partId"`
|
||||||
|
TaskId string `json:"taskId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
GetLinkTaskResp {
|
GetLinkTaskResp {
|
||||||
|
Success bool `json:"success"`
|
||||||
|
Task Task `json:"task"`
|
||||||
|
ErrorMsg string `json:"errorMsg"`
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteLinkTaskReq {
|
DeleteLinkTaskReq {
|
||||||
|
PartId int64 `json:"partId"`
|
||||||
|
TaskId string `json:"taskId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteLinkTaskResp {}
|
DeleteLinkTaskResp {
|
||||||
|
Success bool `json:"success"`
|
||||||
|
TaskId string `json:"taskId"`
|
||||||
|
ErrorMsg string `json:"errorMsg"`
|
||||||
|
}
|
||||||
|
|
||||||
|
Task {
|
||||||
|
TaskId string `json:"taskId"`
|
||||||
|
TaskName string `json:"taskName"`
|
||||||
|
TaskStatus string `json:"taskStatus"`
|
||||||
|
StartedAt int64 `json:"startedAt"`
|
||||||
|
CompletedAt int64 `json:"completedAt"`
|
||||||
|
}
|
||||||
)
|
)
|
Loading…
Reference in New Issue