From 4bd778ba3a0a513a42ea8572ea492832af9348ae Mon Sep 17 00:00:00 2001 From: tzwang Date: Wed, 31 Jul 2024 10:17:17 +0800 Subject: [PATCH] updated DeployTask apis Former-commit-id: a02581d9d1139cc2aff4c15e6edc6b6c4e3a342c --- desc/pcm.api | 4 +-- pkg/models/aiinferdeployinstancemodel_gen.go | 29 ++++++++++---------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/desc/pcm.api b/desc/pcm.api index e657459a..ec03e8a8 100644 --- a/desc/pcm.api +++ b/desc/pcm.api @@ -961,10 +961,10 @@ service pcm { get /inference/taskStat (InferenceTaskStatReq) returns (InferenceTaskStatResp) @handler StartAllByDeployTaskId - post /inference/startAllById (StartAllByDeployTaskIdReq) returns (StartAllByDeployTaskIdResp) + post /inference/startAll (StartAllByDeployTaskIdReq) returns (StartAllByDeployTaskIdResp) @handler StopAllByDeployTaskId - post /inference/stopAllById (StopAllByDeployTaskIdReq) returns (StopAllByDeployTaskIdResp) + post /inference/stopAll (StopAllByDeployTaskIdReq) returns (StopAllByDeployTaskIdResp) @handler GetDeployTasks get /inference/getDeployTasks (GetDeployTasksReq) returns (GetDeployTasksResp) diff --git a/pkg/models/aiinferdeployinstancemodel_gen.go b/pkg/models/aiinferdeployinstancemodel_gen.go index ed8ccf49..d908e4b7 100644 --- a/pkg/models/aiinferdeployinstancemodel_gen.go +++ b/pkg/models/aiinferdeployinstancemodel_gen.go @@ -35,20 +35,21 @@ type ( } AiInferDeployInstance struct { - Id int64 `db:"id" json:"id,string"` - InstanceId string `db:"instance_id" json:"instanceId"` - InstanceName string `db:"instance_name" json:"instanceName"` - AdapterId int64 `db:"adapter_id" json:"adapterId,string"` - AdapterName string `db:"adapter_name" json:"adapterName" ` - ClusterId int64 `db:"cluster_id" json:"clusterId,string"` - ClusterName string `db:"cluster_name" json:"clusterName"` - ModelName string `db:"model_name" json:"modelName"` - ModelType string `db:"model_type" json:"modelType"` - InferCard string `db:"infer_card" json:"inferCard"` - Status string `db:"status" json:"status"` - CreateTime string `db:"create_time" json:"createTime"` - UpdateTime string `db:"update_time" json:"updateTime"` - ClusterType string `db:"cluster_type" json:"clusterType"` + Id int64 `db:"id" json:"id,string"` + DeployInstanceTaskId int64 `db:"deploy_instance_task_id" json:"deployTaskId,string"` + InstanceId string `db:"instance_id" json:"instanceId"` + InstanceName string `db:"instance_name" json:"instanceName"` + AdapterId int64 `db:"adapter_id" json:"adapterId,string"` + AdapterName string `db:"adapter_name" json:"adapterName" ` + ClusterId int64 `db:"cluster_id" json:"clusterId,string"` + ClusterName string `db:"cluster_name" json:"clusterName"` + ModelName string `db:"model_name" json:"modelName"` + ModelType string `db:"model_type" json:"modelType"` + InferCard string `db:"infer_card" json:"inferCard"` + Status string `db:"status" json:"status"` + CreateTime string `db:"create_time" json:"createTime"` + UpdateTime string `db:"update_time" json:"updateTime"` + ClusterType string `db:"cluster_type" json:"clusterType"` } )