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.

29 lines
1.0 KiB

6 months ago
package router
import (
"github.com/gin-gonic/gin"
"shop-api/api"
"shop-api/api/customer"
"shop-api/api/sys"
)
func InitBaseRouter(Router *gin.RouterGroup) {
InOtherRouter := Router.Group("base")
{
InOtherRouter.POST("sendMessage", customer.SendMessage) //发送短信验证码
InOtherRouter.POST("sendEmail", customer.SendEmail) //发送邮箱验证码
InOtherRouter.POST("login", api.Login) //登录
InOtherRouter.POST("register", api.Register) //注册
InOtherRouter.GET("provider", api.GetProviderList) //获取第三方登录列表
InOtherRouter.GET("authUrl", api.GetProviderAuthUrl) //获取第三方登录信息
InOtherRouter.POST("authorized", api.Authorized) //授权登录
InOtherRouter.GET("brochure", sys.GetSysBrochure) //隐私协议单页
InOtherRouter.GET("chain", api.GetChainInfo) // 获取区块链信息
InOtherRouter.GET("test", sys.Test2)
}
//go func() {
// time.Sleep(3 * time.Second)
// service.AppProviderInit()
//}()
}