k.zhang 1 рік тому
батько
коміт
78d8c5dae7
2 змінених файлів з 2 додано та 0 видалено
  1. 1 0
      apis/shanghu/merchant.card.go
  2. 1 0
      apis/shanghu/models/card.go

+ 1 - 0
apis/shanghu/merchant.card.go

@@ -73,6 +73,7 @@ func CreateMerchantCard(c *gin.Context) {
 	}
 	sqlData.UseRule = inData.UseRule
 	sqlData.MerchantCardName = inData.MerchantCardName
+	sqlData.CancelNumber = inData.CancelNumber
 
 	_, err = sqlData.Create()
 	if err != nil {

+ 1 - 0
apis/shanghu/models/card.go

@@ -18,6 +18,7 @@ type CreateMerchantCardRequest struct {
 	UseRule           string  `json:"use_rule"`            // 使用规则
 	Picture           string  `json:"picture"`             // 图片
 	RebateRate        string  `json:"rebate_rate"`         // 佣金比例
+	CancelNumber      int     `json:"cancel_number"`       //核销次数
 }
 
 type GetMerchantCardRequest struct {