@@ -0,0 +1,47 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/app/api/txnactctr"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func txnactRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/mine")
|
||||
{
|
||||
txnactGroup := group.Group("/txnact")
|
||||
txnactGroup.DELETE("/del", txnactctr.DelTxAccount)
|
||||
{
|
||||
bank := txnactGroup.Group("/bank")
|
||||
{
|
||||
//银行卡绑定
|
||||
bank.GET("/get", txnactctr.GetBanks)
|
||||
bank.POST("/add", txnactctr.AddBank)
|
||||
bank.POST("/update", txnactctr.EditTransactionAct)
|
||||
}
|
||||
alipay := txnactGroup.Group("/alipay")
|
||||
{
|
||||
//支付宝
|
||||
alipay.GET("/get", txnactctr.GetAlipays)
|
||||
alipay.POST("/add", txnactctr.AddAliPay)
|
||||
alipay.POST("/update", txnactctr.EditTransactionAct)
|
||||
}
|
||||
zfb := txnactGroup.Group("/zfb")
|
||||
{
|
||||
//支付宝
|
||||
zfb.GET("/get", txnactctr.GetAlipays)
|
||||
zfb.POST("/add", txnactctr.AddAliPay)
|
||||
zfb.POST("/update", txnactctr.EditTransactionAct)
|
||||
|
||||
}
|
||||
yh := txnactGroup.Group("/yh")
|
||||
{
|
||||
//银行卡绑定
|
||||
yh.GET("/get", txnactctr.GetBanks)
|
||||
yh.POST("/add", txnactctr.AddBank)
|
||||
yh.POST("/update", txnactctr.EditTransactionAct)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user