新增提交任务接口增加非必填

This commit is contained in:
zhangwei 2023-12-06 21:27:41 +08:00
parent 2e52eb0850
commit afa3fa42e1
2 changed files with 4 additions and 4 deletions

View File

@ -177,8 +177,8 @@ type deleteTaskReq {
type commitTaskReq{
Name string `json:"name"`
NsID string `json:"nsID"`
Replicas int64 `json:"replicas"`
MatchLabels map[string]string `json:"matchLabels"`
Replicas int64 `json:"replicas,optional"`
MatchLabels map[string]string `json:"matchLabels,optional"`
YamlList []string `json:"yamlList"`
}

View File

@ -159,8 +159,8 @@ type DeleteTaskReq struct {
type CommitTaskReq struct {
Name string `json:"name"`
NsID string `json:"nsID"`
Replicas int64 `json:"replicas"`
MatchLabels map[string]string `json:"matchLabels"`
Replicas int64 `json:"replicas,optional"`
MatchLabels map[string]string `json:"matchLabels,optional"`
YamlList []string `json:"yamlList"`
}