fix
This commit is contained in:
@@ -16,9 +16,6 @@ service product {
|
||||
//获取产品模型信息
|
||||
@handler GetModelByPidHandler
|
||||
get /api/product/get_model_by_pid(GetModelByPidReq) returns (response);
|
||||
//获取产品阶梯价格列表(即将废弃)
|
||||
@handler GetPriceByPidHandler
|
||||
get /api/product/get_price_by_pid(GetPriceByPidReq) returns (response);
|
||||
//获取产品阶梯价格信息
|
||||
@handler GetProductStepPriceHandler
|
||||
get /api/product/get_product_step_price(GetProductStepPriceReq) returns (response);
|
||||
@@ -116,26 +113,6 @@ type CoverDefaultItem {
|
||||
type GetModelByPidReq {
|
||||
Pid string `form:"pid"` //实际上是产品sn
|
||||
}
|
||||
//获取产品阶梯价格
|
||||
type GetPriceByPidReq {
|
||||
Pid string `form:"pid"`
|
||||
}
|
||||
type GetPriceByPidRsp {
|
||||
Items []PriceItem `json:"items"`
|
||||
MinPrice float64 `json:"min_price"`
|
||||
MaxPrice float64 `json:"max_price"`
|
||||
StepRange []StepRange `json:"step_range"`
|
||||
}
|
||||
type StepRange {
|
||||
Begin int64 `json:"begin"`
|
||||
End int64 `json:"end"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
type PriceItem {
|
||||
Num int64 `json:"num"`
|
||||
TotalNum int64 `json:"total_num"`
|
||||
Price int64 `json:"price"`
|
||||
}
|
||||
//获取产品阶梯价格信息
|
||||
type GetProductStepPriceReq {
|
||||
ProductId int64 `form:"product_id"`
|
||||
|
||||
Reference in New Issue
Block a user