胡轶钦 6 years ago
parent
commit
ac7f9e4c3f
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      routers/common.go

+ 12
- 0
routers/common.go View File

9
 	"spaceofcheng/services/controllers/coupon"
9
 	"spaceofcheng/services/controllers/coupon"
10
 	"spaceofcheng/services/controllers/course"
10
 	"spaceofcheng/services/controllers/course"
11
 	"spaceofcheng/services/controllers/customer"
11
 	"spaceofcheng/services/controllers/customer"
12
+	"spaceofcheng/services/controllers/flashbuy"
12
 	"spaceofcheng/services/controllers/goods"
13
 	"spaceofcheng/services/controllers/goods"
13
 	"spaceofcheng/services/controllers/gymcard"
14
 	"spaceofcheng/services/controllers/gymcard"
14
 	"spaceofcheng/services/controllers/luckdraw"
15
 	"spaceofcheng/services/controllers/luckdraw"
316
 		beego.NSRouter("/statistics/cardcouponused/excel", &statistics.StatisticsController{}, "get:CardCouponUsedStatisticsExcel"),
317
 		beego.NSRouter("/statistics/cardcouponused/excel", &statistics.StatisticsController{}, "get:CardCouponUsedStatisticsExcel"),
317
 		beego.NSRouter("/statistics/cardcouponverify", &statistics.StatisticsController{}, "get:CardCouponVerifyStatistics"),
318
 		beego.NSRouter("/statistics/cardcouponverify", &statistics.StatisticsController{}, "get:CardCouponVerifyStatistics"),
318
 		beego.NSRouter("/statistics/cardcouponverify/excel", &statistics.StatisticsController{}, "get:CardCouponVerifyStatisticsExcel"),
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
 }