fix
This commit is contained in:
parent
9bcb1d9377
commit
dea09094b7
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user