Browse Source

生成api代码

Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 0b06b3b508
pull/9/head
devad 2 years ago
parent
commit
c5b4098177
4 changed files with 13 additions and 6 deletions
  1. +9
    -2
      api/internal/types/types.go
  2. +1
    -1
      go.mod
  3. +2
    -2
      go.sum
  4. +1
    -1
      rpc/internal/logic/pcmcore/infolistlogic.go

+ 9
- 2
api/internal/types/types.go View File

@@ -3388,9 +3388,15 @@ type SubmitLinkTaskReq struct {
ImageId string `json:"imageId"`
Cmd string `json:"cmd"`
Params []*ParamSl `json:"params"`
Envs []*EnvSl `json:"params"`
ResourceId string `json:"resourceId"`
}

type EnvSl struct {
Key string `json:"key"`
Val string `json:"value"`
}

type ParamSl struct {
Key string `json:"key"`
Val string `json:"value"`
@@ -3446,10 +3452,11 @@ type GetResourceSpecsReq struct {
type GetResourceSpecsResp struct {
Success bool `json:"success"`
ResourceSpecs []*ResourceSpecSl `json:"resourceSpecs"`
ErrorMsg string `json:"errorMsg"`
}

type ResourceSpecSl struct {
ParticipantId string `json:"participantId"`
ParticipantId int64 `json:"participantId"`
ParticipantName string `json:"participantName"`
SpecName string `json:"specName"`
SpecId string `json:"specId"`
@@ -3457,7 +3464,7 @@ type ResourceSpecSl struct {
}

type ParticipantSl struct {
ParticipantId string `json:"id"`
ParticipantId int64 `json:"id"`
ParticipantName string `json:"name"`
ParticipantType string `json:"type"`
}

+ 1
- 1
go.mod View File

@@ -26,7 +26,7 @@ require (
gitlink.org.cn/jcce-pcm/pcm-participant-ac v0.0.0-20231027084000-16876da5aa31
gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835
gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231024115530-f6fd0505d2a1
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231101085149-724c7c4cc090
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9
gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4


+ 2
- 2
go.sum View File

@@ -1039,8 +1039,8 @@ gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835
gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835/go.mod h1:r/KLzUpupCV5jdxSfgDhc2pVjP0fBi3VhAWRttsBn30=
gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a h1:12PKPeDecCY7IfPp9JZmdMEIoJn6fF1oT4WW4ZKEUFM=
gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a/go.mod h1:xtSfvDUd+jJhqHBBibZ1d9/ud3oN9nxaNYYHwz+CDgY=
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231024115530-f6fd0505d2a1 h1:4Ibzcl4waYiHO3tdbqvcLUWEoV51ZaJhZBi7T518AA8=
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231024115530-f6fd0505d2a1/go.mod h1:pisJKAI8FRFFUcBaH3Gob+ENXWRM97rpuYmv9s1raag=
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231101085149-724c7c4cc090 h1:jztlHo72bcWM1jUwvG3Hfk2K+AJL0RvlsdIqlktH/MI=
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231101085149-724c7c4cc090/go.mod h1:pisJKAI8FRFFUcBaH3Gob+ENXWRM97rpuYmv9s1raag=
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd h1:9GIKpN6nel4U5jD91HL/vjzwo+EHTpE13SkT7WKyXtQ=
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd/go.mod h1:uyvpVqG1jHDXX+ubXI0RBwnWXzVykD/mliqGQIDvRoo=
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9 h1:r352e/Vrnity+BgrWyWCgn8uT2xPg6O86g+H4aIOdX8=


+ 1
- 1
rpc/internal/logic/pcmcore/infolistlogic.go View File

@@ -5,7 +5,7 @@ import (
"github.com/zeromicro/go-zero/core/logx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/utils"
pcmcore "gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/pcmCore"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/pcmcore"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/internal/svc"
"gorm.io/gorm"
)


Loading…
Cancel
Save