接口调整

This commit is contained in:
李子铭 2025-03-12 18:25:24 +08:00
parent 072c8c9fee
commit 084635fa6a
2 changed files with 8 additions and 0 deletions

View File

@ -120,6 +120,11 @@ message CmbQueryProductReply {
string availableStock = 17 [json_name = "availableStock"]; string availableStock = 17 [json_name = "availableStock"];
// //
string detail = 18 [json_name = "detail"]; string detail = 18 [json_name = "detail"];
// yyyy-mm-dd hh:mm:ss.sss
string saleStartTime = 19 [json_name = "saleStartTime"];
// yyyy-mm-dd hh:mm:ss.sss
string saleEndTime = 20 [json_name = "saleEndTime"];
} }

View File

@ -121,6 +121,9 @@ func (v *VoucherBiz) CmbProductQuery(ctx context.Context, productNo string) (rep
EndTime: *wechatResp.AvailableEndTime, EndTime: *wechatResp.AvailableEndTime,
AvailableStock: "", AvailableStock: "",
Detail: *wechatResp.Description, Detail: *wechatResp.Description,
SaleStartTime: *wechatResp.StartTime,
SaleEndTime: *wechatResp.StopTime,
} }
reps.Amount = fmt.Sprintf("%d", *wechatResp.StockUseRule.FixedNormalCoupon.CouponAmount) reps.Amount = fmt.Sprintf("%d", *wechatResp.StockUseRule.FixedNormalCoupon.CouponAmount)