You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
466 B
Go

11 months ago
package app
import (
"github.com/gin-gonic/gin"
v1 "miniapp/api/v1"
)
type LoginRouter struct{}
func (s *LoginRouter) InitLoginRouter(Router *gin.RouterGroup) {
loginRouter := Router.Group("login")
baseApi := v1.ApiGroupApp.AppApiGroup.LoginApi
{
loginRouter.GET("wechat/token", baseApi.GetWeChatToken)
loginRouter.POST("token", baseApi.Login)
loginRouter.POST("token/refresh", baseApi.Refresh)
loginRouter.POST("token/logout", baseApi.Logout)
}
}