胡轶钦 vor 6 Jahren
Ursprung
Commit
ac7f9e4c3f
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12
    0
      routers/common.go

+ 12
- 0
routers/common.go Datei anzeigen

@@ -9,6 +9,7 @@ import (
9 9
 	"spaceofcheng/services/controllers/coupon"
10 10
 	"spaceofcheng/services/controllers/course"
11 11
 	"spaceofcheng/services/controllers/customer"
12
+	"spaceofcheng/services/controllers/flashbuy"
12 13
 	"spaceofcheng/services/controllers/goods"
13 14
 	"spaceofcheng/services/controllers/gymcard"
14 15
 	"spaceofcheng/services/controllers/luckdraw"
@@ -316,5 +317,16 @@ func getCommonRoutes(prefix string) beego.LinkNamespace {
316 317
 		beego.NSRouter("/statistics/cardcouponused/excel", &statistics.StatisticsController{}, "get:CardCouponUsedStatisticsExcel"),
317 318
 		beego.NSRouter("/statistics/cardcouponverify", &statistics.StatisticsController{}, "get:CardCouponVerifyStatistics"),
318 319
 		beego.NSRouter("/statistics/cardcouponverify/excel", &statistics.StatisticsController{}, "get:CardCouponVerifyStatisticsExcel"),
320
+
321
+		// flashbuy 抢购
322
+		beego.NSRouter("/flashbuy", &flashbuy.FlashBuyController{}, "get:GetFlashBuyList"),
323
+		beego.NSRouter("/flashbuy/customer/:flashBuyId", &flashbuy.FlashBuyController{}, "get:GetCustomerFlashBuyList"),
324
+		beego.NSRouter("/flashbuy/:flashBuyId", &flashbuy.FlashBuyController{}, "get:GetFlashBuyById"),
325
+		beego.NSRouter("/flashbuy", &flashbuy.FlashBuyController{}, "post:SaveFlashBuy"),
326
+		beego.NSRouter("/flashbuy", &flashbuy.FlashBuyController{}, "put:SaveFlashBuy"),
327
+		beego.NSRouter("/flashbuy/:channelId", &flashbuy.FlashBuyController{}, "delete:DeleteFlashBuy"),
328
+		beego.NSRouter("/flashbuy/:flashBuyId/:flashBuyStatus", &flashbuy.FlashBuyController{}, "put:UpdateFlashBuy"),
329
+		beego.NSRouter("/flashbuy/:qrcode", &flashbuy.FlashBuyController{}, "get:VerifyCustomerFlashBuyList"),
330
+		beego.NSRouter("/flashbuy/:customerFlashBuyId", &flashbuy.FlashBuyController{}, "put:Verify"),
319 331
 	)
320 332
 }