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() //}() }