Browse Source

inventory

k.zhang 1 year ago
parent
commit
1c5b7efaf6
2 changed files with 2 additions and 0 deletions
  1. 1 0
      apis/shanghu/merchant.card.go
  2. 1 0
      apis/shanghu/models/card.go

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

@@ -170,6 +170,7 @@ func GetMerchantCanvasCard(c *gin.Context) {
 	//	return
 	//}
 
+	outData.Inventory = merchantCard.Inventory
 	outData.SwiperList = swiperList
 
 	rightButton.ImageURL = "/images/资源 24.png"

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

@@ -51,6 +51,7 @@ type GetMerchantCanvasCardReply struct {
 	FenxiangShow           bool            `json:"fenxiangShow"`
 	MerchantAmount         decimal.Decimal `json:"merchantAmount"`
 	MerchantOriginalAmount decimal.Decimal `json:"merchantOriginalAmount"`
+	Inventory              int64           `json:"inventory"`
 }
 type Static struct {
 	Background string `json:"background"`