fix
This commit is contained in:
@@ -10,12 +10,6 @@ info (
|
||||
import "basic.api"
|
||||
|
||||
service product {
|
||||
//获取产品列表
|
||||
@handler GetProductListHandler
|
||||
get /api/product/list(GetProductListReq) returns (response);
|
||||
//获取支付成功后推荐产品
|
||||
@handler GetSuccessRecommandHandler
|
||||
get /api/product/success-recommand(GetSuccessRecommandReq) returns (response);
|
||||
//获取分类下的产品以及尺寸
|
||||
@handler GetSizeByProductHandler
|
||||
get /api/product/get-size-by-product(request) returns (response);
|
||||
@@ -83,51 +77,6 @@ service product {
|
||||
//*********************推荐产品接口结束××××××××××××××××××××××××××
|
||||
}
|
||||
|
||||
//获取产品列表
|
||||
type GetProductListReq {
|
||||
Cid int64 `form:"cid"`
|
||||
Size uint32 `form:"size"`
|
||||
Page uint32 `form:"page,optional"`
|
||||
IsDemo uint32 `form:"is_demo,optional"`
|
||||
}
|
||||
type GetProductListRsp {
|
||||
Ob Ob `json:"ob"`
|
||||
TypeName string `json:"typeName"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
type Ob {
|
||||
Items []Items `json:"items"`
|
||||
Meta Meta `json:"_meta"`
|
||||
}
|
||||
type Items {
|
||||
Id int64 `json:"id"`
|
||||
Sn string `json:"sn"`
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
Intro string `json:"intro"`
|
||||
CoverImg string `json:"cover_img"`
|
||||
IsEnv int64 `json:"isEnv"`
|
||||
IsMicro int64 `json:"isMicro"`
|
||||
SizeNum uint32 `json:"sizeNum"`
|
||||
MinPrice int64 `json:"minPrice"`
|
||||
CoverDefault string `json:"coverDefault"`
|
||||
}
|
||||
//获取支付成功后推荐产品
|
||||
type GetSuccessRecommandReq {
|
||||
Num uint32 `form:"num"`
|
||||
Size uint32 `form:"size"`
|
||||
Sn string `form:"sn"`
|
||||
}
|
||||
type GetSuccessRecommandRsp {
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
CoverImg string `json:"coverImg"`
|
||||
Sn string `json:"sn"`
|
||||
Id int64 `json:"id"`
|
||||
SkuId int64 `json:"skuId"`
|
||||
CoverDefault string `json:"coverDefault"`
|
||||
}
|
||||
|
||||
//获取分类下的产品以及尺寸
|
||||
type GetSizeByProductRsp {
|
||||
Id int64 `json:"id"`
|
||||
|
||||
Reference in New Issue
Block a user