You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
477 B
19 lines
477 B
package router
|
|
|
|
import (
|
|
v1 "pure-admin/api/admin"
|
|
"pure-admin/api/sys"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
|
|
BaseRouter := Router.Group("base")
|
|
{
|
|
BaseRouter.POST("login", sys.Login)
|
|
BaseRouter.POST("captcha", sys.Captcha)
|
|
BaseRouter.GET("chain", v1.GetChainInfo) // 获取区块链信息
|
|
BaseRouter.POST("payment/payback", v1.PaymentPayback) // 支付结果回调接口
|
|
}
|
|
return BaseRouter
|
|
}
|
|
|