From a31b79c33c4378367334a34909d60ea017b275f8 Mon Sep 17 00:00:00 2001 From: tzwang Date: Sat, 13 May 2023 11:42:14 +0800 Subject: [PATCH] =?UTF-8?q?modelarts=20create=20notebook=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adaptor/PCM-CORE/api/desc/ai/pcm-ai.api | 8 ++++---- adaptor/PCM-CORE/api/internal/types/types.go | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api b/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api index a30a8228..f977b6cb 100644 --- a/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api +++ b/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api @@ -1047,10 +1047,10 @@ type ( Param ListNotebookParam `json:"param,optional" copier:"Param"` } ListNotebookResp { - Current int32 `json:"current" copier:"Current"` + Current int32 `json:"current,omitempty" copier:"Current"` Data []NotebookResp `json:"data" copier:"Data"` - Pages int32 `json:"pages" copier:"Pages"` - Size int32 `json:"size" copier:"Size"` + Pages int32 `json:"pages,omitempty" copier:"Pages"` + Size int32 `json:"size,omitempty" copier:"Size"` Total int64 `json:"total" copier:"Total"` Code int32 `json:"code,omitempty"` Msg string `json:"msg,omitempty"` @@ -1073,7 +1073,7 @@ type ( Param CreateNotebookParam `json:"param" copier:"Param"` } CreateNotebookResp { - NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"` + NotebookResp *NotebookResp `json:"notebookResp,omitempty" copier:"NotebookResp"` Code int32 `json:"code,omitempty"` Msg string `json:"msg,omitempty"` ErrorMsg string `json:"error_msg,omitempty"` diff --git a/adaptor/PCM-CORE/api/internal/types/types.go b/adaptor/PCM-CORE/api/internal/types/types.go index c3194461..4f0162da 100644 --- a/adaptor/PCM-CORE/api/internal/types/types.go +++ b/adaptor/PCM-CORE/api/internal/types/types.go @@ -1432,10 +1432,10 @@ type ListNotebookReq struct { } type ListNotebookResp struct { - Current int32 `json:"current" copier:"Current"` + Current int32 `json:"current,omitempty" copier:"Current"` Data []NotebookResp `json:"data" copier:"Data"` - Pages int32 `json:"pages" copier:"Pages"` - Size int32 `json:"size" copier:"Size"` + Pages int32 `json:"pages,omitempty" copier:"Pages"` + Size int32 `json:"size,omitempty" copier:"Size"` Total int64 `json:"total" copier:"Total"` Code int32 `json:"code,omitempty"` Msg string `json:"msg,omitempty"` @@ -1461,10 +1461,10 @@ type CreateNotebookReq struct { } type CreateNotebookResp struct { - NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"` - Code int32 `json:"code,omitempty"` - Msg string `json:"msg,omitempty"` - ErrorMsg string `json:"error_msg,omitempty"` + NotebookResp *NotebookResp `json:"notebookResp,omitempty" copier:"NotebookResp"` + Code int32 `json:"code,omitempty"` + Msg string `json:"msg,omitempty"` + ErrorMsg string `json:"error_msg,omitempty"` } type CreateNotebookParam struct {