|
|
@@ -1208,6 +1208,7 @@ func QueryMyCoupons(c *gin.Context) {
|
|
|
// QueryMyCouponHoldsReq 我的优惠卷持仓查询请求参数
|
|
|
type QueryMyCouponHoldsReq struct {
|
|
|
AccountIDs string `form:"accountIDs" binding:"required"`
|
|
|
+ HoldStatus string `form:"holdStatus"`
|
|
|
}
|
|
|
|
|
|
// QueryMyCouponHolds 我的优惠卷持仓查询
|
|
|
@@ -1215,6 +1216,7 @@ type QueryMyCouponHoldsReq struct {
|
|
|
// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
|
|
|
+// @Param holdStatus query string false "持仓状态 - 1:未生效 2:已生效 3:已使用 4:已过期,格式:1,2,3"
|
|
|
// @Success 200 {object} models.MyCouponHold
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /HSBY/QueryMyCouponHolds [get]
|
|
|
@@ -1231,7 +1233,7 @@ func QueryMyCouponHolds(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// 获取数据
|
|
|
- myCoupons, err := models.GetMyCouponHolds(req.AccountIDs)
|
|
|
+ myCoupons, err := models.GetMyCouponHolds(req.AccountIDs, req.HoldStatus)
|
|
|
if err != nil {
|
|
|
// 查询失败
|
|
|
logger.GetLogger().Errorf("QueryMyCouponHolds failed: %s", err.Error())
|