From 6b96a3ecbe8ffe304ae2472cbdf467c7c9451ad1 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 10 Jul 2023 17:54:43 +0800 Subject: [PATCH] fix --- server/product/internal/types/types.go | 9 ++++++++- server_api/product.api | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index 3dc5d9ff..46541b55 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -9,7 +9,7 @@ type GetProductListReq struct { Cid int64 `form:"cid"` Size uint32 `form:"size"` Page uint32 `form:"page"` - IsDemo uint32 `form:"is_demo" , options=0|1"` + IsDemo uint32 `form:"is_demo,optional"` } type GetProductListRsp struct { @@ -230,6 +230,13 @@ type Auth struct { RefreshAfter int64 `json:"refreshAfter"` } +type File struct { + Filename string `fsfile:"filename"` + Header map[string][]string `fsfile:"header"` + Size int64 `fsfile:"size"` + Data []byte `fsfile:"data"` +} + type Meta struct { TotalCount int64 `json:"totalCount"` PageCount int64 `json:"pageCount"` diff --git a/server_api/product.api b/server_api/product.api index 4cb3c80a..9662c112 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -38,7 +38,7 @@ type GetProductListReq { Cid int64 `form:"cid"` Size uint32 `form:"size"` Page uint32 `form:"page"` - IsDemo uint32 `form:"is_demo" , options=0|1"` + IsDemo uint32 `form:"is_demo,optional"` } type GetProductListRsp { Ob Ob `json:"ob"`