Browse Source

调整创建package代码

pull/52/head
JeshuaRen 7 months ago
parent
commit
7cb79231ae
2 changed files with 16 additions and 14 deletions
  1. +7
    -6
      sdks/hpc/job.go
  2. +9
    -8
      sdks/scheduler/models.go

+ 7
- 6
sdks/hpc/job.go View File

@@ -10,12 +10,13 @@ import (
) )


type CreateHPCJobReq struct { type CreateHPCJobReq struct {
Name string `json:"name"`
Description string `json:"description"`
ClusterID schsdk.ClusterID `json:"clusterId"`
Backend string `json:"backend"`
App string `json:"app"`
OperateType string `json:"operateType"`
Name string `json:"name"`
Description string `json:"description"`
ClusterID schsdk.ClusterID `json:"clusterId"`
Backend string `json:"backend"`
App string `json:"app"`
OperateType string `json:"operateType"`
ScriptContent string `json:"scriptContent"`
//Parameters HPCParameter `json:"parameters"` //Parameters HPCParameter `json:"parameters"`
Parameters map[string]string `json:"parameters"` Parameters map[string]string `json:"parameters"`
} }


+ 9
- 8
sdks/scheduler/models.go View File

@@ -164,14 +164,15 @@ type ModelBinding struct {
type HPCJobInfo struct { type HPCJobInfo struct {
serder.Metadata `union:"HPC"` serder.Metadata `union:"HPC"`
JobInfoBase JobInfoBase
Type string `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
ClusterID ClusterID `json:"clusterID"`
Backend string `json:"backend"`
App string `json:"app"`
OperateType string `json:"operateType"`
Parameters HPCParameter `json:"parameters"`
Type string `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
ClusterID ClusterID `json:"clusterID"`
Backend string `json:"backend"`
App string `json:"app"`
OperateType string `json:"operateType"`
ScriptContent string `json:"scriptContent"`
Parameters HPCParameter `json:"parameters"`
} }


type HPCParameter struct { type HPCParameter struct {


Loading…
Cancel
Save