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),
},
{
Method: http.MethodPost,
Method: http.MethodGet,
Path: "/product/other-list",
Handler: OtherProductListHandler(serverCtx),
},

View File

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

View File

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