From 8a99562dae017bd1ab958a7a8ce649294d608982 Mon Sep 17 00:00:00 2001 From: zhangwei <894646498@qq.com> Date: Tue, 10 Oct 2023 17:24:28 +0800 Subject: [PATCH] =?UTF-8?q?api=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: ede86dbb7b13b5b72dd27a8bbea6c0a3450f2cd5 --- api/internal/types/types.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/internal/types/types.go b/api/internal/types/types.go index e3455f24..def4b14f 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -2815,10 +2815,27 @@ type GetParticipantsReq struct { } type GetParticipantsResp struct { + Success bool `json:"success"` + Participants []ParticipantSl `json:"participant"` } type GetResourceSpecsReq struct { } type GetResourceSpecsResp struct { + Success bool `json:"success"` + ResourceSpecs []ResourceSpecSl `json:"resourceSpecs"` +} + +type ResourceSpecSl struct { + ParticipantId string `json:"participantId"` + ParticipantName string `json:"participantName"` + SpecName string `json:"resourceSpecName"` + SpecId string `json:"resourceSpecId"` +} + +type ParticipantSl struct { + ParticipantId string `json:"id"` + ParticipantName string `json:"name"` + ParticipantType string `json:"type"` }