123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- package shanghu
- import (
- "github.com/gin-gonic/gin"
- )
- func InitShangHuRouter(engine *gin.RouterGroup) {
- v1 := engine.Group("v1")
- {
- v1.POST("/merchant/user/set", OpenIdSet)
- v1.POST("/client/user/set", ClientOpenIdSet)
- v1.POST("/client/user/info", ClientGetUserInfo)
- v1.POST("/merchant/user/info", GetUserInfo)
- v1.POST("/merchant/card/create", CreateMerchantCard)
- v1.POST("/merchant/card/get", GetMerchantCard)
- v1.POST("/merchant/card/list", MerchantCardList)
- v1.POST("/merchant/card/update", UpdateMerchantCard)
- v1.POST("/merchant/cart/project/create", CreateMerchantCardProject)
- v1.POST("/merchant/card/project/get", GetMerchantCardProject)
- v1.POST("/merchant/card/project/list", MerchantCardProjectList)
- v1.POST("/merchant/card/project/update", UpdateMerchantCardProject)
- v1.POST("/merchant/create", CreateMerchant)
- v1.POST("/merchant/get", GetMerchant)
- v1.POST("/merchant/list", MerchantList)
- v1.POST("/merchant/update", UpdateMerchant)
- v1.POST("/client/card/list", ClientCardList)
- v1.POST("/client/card/info", GetClientCard)
- v1.POST("/client/qr/get", GetClientCardQR)
- v1.POST("/client/unified/order", UnifiedOrder)
- v1.POST("/client/pay/callback", PayCallBack)
- v1.POST("/client/merchant/card/list", MerchantClientCardList)
- v1.POST("/merchant/card.canvas/get", GetMerchantCanvasCard)
- v1.POST("/upload/picture", UploadPicture)
- v1.POST("/client/pay/list", GetPayTransList)
- v1.POST("/verification/code", GetVerificationCode)
- v1.POST("/merchant/sale/list", GetMerchantPayTransList)
- v1.POST("/merchant/cancel", CancelNumber)
- v1.POST("/merchant/update/whxy", UpdateMerchantCardWXYZ)
- v1.POST("/merchant/user/code", MerchantUserCode)
- v1.POST("/account/amount", GetAccountAmount)
- v1.POST("/cash/out", PayCashOut)
- v1.POST("/cash.out/list", CashOutList)
- v1.POST("/client/sale/list", GetClientPayTransList)
- v1.POST("/merchant/pay.info/create", CreateMerchantPayInfo)
- v1.POST("/merchant/pay.info/update", UpdateMerchantPayInfo)
- v1.POST("/merchant/pay.info/get", GetMerchantPayInfo)
- v1.POST("/merchant/recharge.url/get", GetRechargeUrl)
- }
- v2 := engine.Group("v2")
- {
- v2.POST("/merchant/cancel/info", GetMerchantCancelInfo)
- v2.POST("/merchant/cancel", CancelNumberV2)
- }
- recharge := engine.Group("v1/recharge")
- {
- recharge.POST("/config", CreateMerchantRechargeConfig)
- recharge.POST("/del", DelMerchantRechargeConfig)
- recharge.POST("/list", MerchantRechargeConfigList)
- recharge.POST("/project/create", CreateMerchantRechargeProject)
- recharge.POST("/project/del", DelMerchantRechargeProject)
- recharge.POST("/project/list", MerchantRechargeProjectList)
- recharge.POST("/merchant/recharge", MerchantRecharge)
- recharge.POST("/client/account/list", GetMerchantRechargeClientAccountList)
- recharge.POST("/client/ticket/list", GetMerchantRechargeList)
- recharge.POST("/client/recharge/list", GetMerchantClientTicketAccountLog)
- recharge.POST("/verification/code", GetRechargeVerificationCode)
- recharge.POST("/merchant/cancel/info", GetChargeMerchantCancelInfo)
- recharge.POST("/merchant/cancel", RechargeCancel)
- recharge.POST("/merchant/cancel/log", GetMerchantRechargeLog)
- recharge.POST("/client/cancel/log", GetClientRechargeLog)
- }
- activeV1 := engine.Group("activeV1")
- {
- activeV1.POST("/active/draw/product/create", DrawProductCreate)
- activeV1.POST("/active/group/buy/create", GroupBuyCreate)
- activeV1.POST("/active/config/create", ActiveConfigCreate)
- activeV1.POST("/active/config/list", ActiveConfigList)
- activeV1.POST("/active/config/info", ActiveConfigInfo)
- activeV1.POST("/active/draw/product/list", DrawProductList)
- activeV1.POST("/active/group/buy/list", GroupBuyList)
- activeV1.POST("/active/draw", Draw)
- activeV1.POST("/active/draw/list", DrawLog)
- activeV1.POST("/draw/verification/code", DrawLogVerificationCode)
- activeV1.POST("/draw/cancel", DrawCancel)
- activeV1.POST("/draw/info", DrawCancelInfo)
- activeV1.POST("/active/config/whxy", UpdateActiveConfigWHXY)
- activeV1.POST("/active/qr", GetClientActiveQR)
- activeV1.POST("/active/unified/order", GroupByUnifiedOrder)
- activeV1.POST("/active/pay/callback", ActivePayCallBack)
- activeV1.POST("/active/draw/num", InvitedDrawNum)
- activeV1.POST("/client/user/set", ActiveOpenIdSet)
- activeV1.POST("/active/pending.cancel/amount", PendingCancelAmount)
- activeV1.POST("/active/group.buy/cancel", GroupBuyCancel)
- activeV1.POST("/active/group.buy.cancel/info", GroupBuyCancelInfo)
- activeV1.POST("/active/group.buy/code", GroupBuyPayCode)
- activeV1.POST("/active/group.buy/pay", GetGroupBuyPayList)
- activeV1.POST("/active/draw/count", ActiveDrawCount)
- activeV1.POST("/client/user/info", GetActiveUserInfo)
- activeV1.POST("/active/cash/out", ActiveCashOut)
- activeV1.POST("/active/client/amount", GetActiveAmount)
- }
- }
|