From 1a85671a2d6334568fa22698162900068e47233f Mon Sep 17 00:00:00 2001 From: devad Date: Thu, 26 Oct 2023 15:06:16 +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 Signed-off-by: devad Former-commit-id: 0c40e5f84cfe050d3ecb8a640c3cdd11a4ec5f42 --- api/internal/types/types.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/api/internal/types/types.go b/api/internal/types/types.go index 87465b78..b9d3fc45 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -3344,9 +3344,9 @@ type UploadLinkImageReq struct { } type UploadLinkImageResp struct { - Success bool `json:"success"` - Image ImageSl `json:"image"` - ErrorMsg string `json:"errorMsg"` + Success bool `json:"success"` + Image *ImageSl `json:"image"` + ErrorMsg string `json:"errorMsg"` } type ImageSl struct { @@ -3360,9 +3360,9 @@ type GetLinkImageListReq struct { } type GetLinkImageListResp struct { - Success bool `json:"success"` - Images []ImageSl `json:"images"` - ErrorMsg string `json:"errorMsg"` + Success bool `json:"success"` + Images []*ImageSl `json:"images"` + ErrorMsg string `json:"errorMsg"` } type DeleteLinkImageReq struct { @@ -3376,11 +3376,11 @@ type DeleteLinkImageResp struct { } type SubmitLinkTaskReq struct { - PartId int64 `json:"partId"` - ImageId string `json:"imageId"` - Cmd string `json:"cmd"` - Params []ParamSl `json:"params"` - ResourceId string `json:"resourceId"` + PartId int64 `json:"partId"` + ImageId string `json:"imageId"` + Cmd string `json:"cmd"` + Params []*ParamSl `json:"params"` + ResourceId string `json:"resourceId"` } type ParamSl struct { @@ -3400,9 +3400,9 @@ type GetLinkTaskReq struct { } type GetLinkTaskResp struct { - Success bool `json:"success"` - Task TaskSl `json:"task"` - ErrorMsg string `json:"errorMsg"` + Success bool `json:"success"` + Task *TaskSl `json:"task"` + ErrorMsg string `json:"errorMsg"` } type DeleteLinkTaskReq struct { @@ -3427,8 +3427,8 @@ type GetParticipantsReq struct { } type GetParticipantsResp struct { - Success bool `json:"success"` - Participants []ParticipantSl `json:"participant"` + Success bool `json:"success"` + Participants []*ParticipantSl `json:"participant"` } type GetResourceSpecsReq struct { @@ -3436,8 +3436,8 @@ type GetResourceSpecsReq struct { } type GetResourceSpecsResp struct { - Success bool `json:"success"` - ResourceSpecs []ResourceSpecSl `json:"resourceSpecs"` + Success bool `json:"success"` + ResourceSpecs []*ResourceSpecSl `json:"resourceSpecs"` } type ResourceSpecSl struct {