存算联动api修改

Former-commit-id: 3506b3ba895b1e03bc6e0664c4b9d3de40c18da2
This commit is contained in:
tzwang 2023-09-13 17:07:21 +08:00
parent 6abe1381e7
commit 225720a518
2 changed files with 49 additions and 10 deletions

View File

@ -296,7 +296,7 @@ service pcm {
service pcm {
@handler UploadLinkImageHandler
post /storelink/uploadImage (UploadLinkImageReq) returns (UploadLinkImageImageResp)
post /storelink/uploadImage (UploadLinkImageReq) returns (UploadLinkImageResp)
@handler GetLinkImageListHandler
get /storelink/getImageList (GetLinkImageListReq) returns (GetLinkImageListResp)

View File

@ -13,8 +13,16 @@ type (
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 {
@ -22,36 +30,67 @@ type (
}
GetLinkImageListResp {
ImageIds []int64 `json:"imageIds"`
Success bool `json:"success"`
Images []Image `json:"images"`
ErrorMsg string `json:"errorMsg"`
}
DeleteLinkImageReq {
PartId int64 `json:"partId"`
ImageId string `json:"imageId"`
}
DeleteLinkImageResp {
Success bool `json:"success"`
Image Image `json:"image"`
ErrorMsg string `json:"errorMsg"`
}
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 {
Success bool `json:"success"`
TaskId string `json:"taskId"`
ErrorMsg string `json:"errorMsg"`
}
GetLinkTaskReq {
PartId int64 `json:"partId"`
TaskId string `json:"taskId"`
}
GetLinkTaskResp {
Success bool `json:"success"`
Task Task `json:"task"`
ErrorMsg string `json:"errorMsg"`
}
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"`
}
)