Files
Go-Web-Template/server/router/app/public_auth.go
2026-04-23 15:29:07 +08:00

21 lines
560 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package app
import (
api "git.echol.cn/loser/Go-Web-Template/server/api/v1"
"github.com/gin-gonic/gin"
)
var publicAuthApi = api.ApiGroupApp.AppApiGroup.PublicAuthApi
type PublicAuthRouter struct{}
// InitPublicAuthRouter 玩家端注册/登录public不鉴权
func (s *PublicAuthRouter) InitPublicAuthRouter(PublicRouter *gin.RouterGroup) {
group := PublicRouter.Group("public/app")
{
group.GET("register/status", publicAuthApi.RegisterStatus)
group.POST("register", publicAuthApi.Register)
group.POST("login", publicAuthApi.Login)
}
}