This commit is contained in:
laodaming 2023-07-11 11:36:01 +08:00
parent 9bcb1d9377
commit dea09094b7
3 changed files with 8 additions and 8 deletions

View File

@ -48,7 +48,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Handler: SaveDesignHandler(serverCtx), Handler: SaveDesignHandler(serverCtx),
}, },
{ {
Method: http.MethodPost, Method: http.MethodGet,
Path: "/product/other-list", Path: "/product/other-list",
Handler: OtherProductListHandler(serverCtx), Handler: OtherProductListHandler(serverCtx),
}, },

View File

@ -216,9 +216,9 @@ type ColorFill struct {
} }
type OtherProductListReq struct { type OtherProductListReq struct {
Cid int64 `json:"cid"` Cid int64 `form:"cid"`
Num int64 `json:"num"` Num int64 `form:"num"`
Size uint32 `json:"size"` Size uint32 `form:"size"`
} }
type OtherProductListRsp struct { type OtherProductListRsp struct {

View File

@ -33,7 +33,7 @@ service product {
post /product/save-design(SaveDesignReq) returns (response); post /product/save-design(SaveDesignReq) returns (response);
//其他产品推荐列表 //其他产品推荐列表
@handler OtherProductListHandler @handler OtherProductListHandler
post /product/other-list (OtherProductListReq) returns (response); get /product/other-list (OtherProductListReq) returns (response);
} }
//获取产品列表 //获取产品列表
@ -228,9 +228,9 @@ type ColorFill {
} }
//其他产品推荐列表 //其他产品推荐列表
type OtherProductListReq { type OtherProductListReq {
Cid int64 `json:"cid"` Cid int64 `form:"cid"`
Num int64 `json:"num"` Num int64 `form:"num"`
Size uint32 `json:"size"` Size uint32 `form:"size"`
} }
type OtherProductListRsp { type OtherProductListRsp {
Title string `json:"title"` Title string `json:"title"`