存算联动api代码生成
Former-commit-id: 1cc0303d2ddf28ff386779caf3f3fd9775367ec9
This commit is contained in:
parent
55bba7a290
commit
622b366f92
|
@ -300,4 +300,4 @@ service pcm {
|
|||
|
||||
@handler GetLinkImageListHandler
|
||||
get /storelink/getImageList (GetLinkImageListReq) returns (GetLinkImageListResp)
|
||||
}
|
||||
}
|
|
@ -10,6 +10,7 @@ import (
|
|||
hpc "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/hpc"
|
||||
image "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/image"
|
||||
storage "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/storage"
|
||||
storelink "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/storelink"
|
||||
vm "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/vm"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
|
||||
|
||||
|
@ -458,4 +459,20 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|||
},
|
||||
rest.WithPrefix("/pcm/v1"),
|
||||
)
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/storelink/uploadImage",
|
||||
Handler: storelink.UploadLinkImageHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/storelink/getImageList",
|
||||
Handler: storelink.GetLinkImageListHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
rest.WithPrefix("/pcm/v1"),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -79,6 +79,10 @@ func (cs *cloudScheduler) UnMarshalK8sStruct(yamlString string, taskId int64) mo
|
|||
Namespace: unstructureObj.GetNamespace(),
|
||||
Status: "Saved",
|
||||
}
|
||||
// 命名空间为空 设置默认值
|
||||
if len(unstructureObj.GetNamespace()) == 0 {
|
||||
cloud.Namespace = "default"
|
||||
}
|
||||
}
|
||||
return cloud
|
||||
}
|
||||
|
|
|
@ -2719,3 +2719,17 @@ type Cloud struct {
|
|||
CreatedTime string `json:"createdTime"` // 创建时间
|
||||
Result string `json:"result"`
|
||||
}
|
||||
|
||||
type UploadLinkImageReq struct {
|
||||
}
|
||||
|
||||
type UploadLinkImageImageResp struct {
|
||||
}
|
||||
|
||||
type GetLinkImageListReq struct {
|
||||
PartId int64 `json:"partId"`
|
||||
}
|
||||
|
||||
type GetLinkImageListResp struct {
|
||||
ImageIds []int64 `json:"imageIds"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue