JM-WechatMini/router/system/sys_base.go
2023-11-02 04:34:46 +08:00

19 lines
383 B
Go

package system
import (
"github.com/gin-gonic/gin"
v1 "miniapp/api/v1"
)
type BaseRouter struct{}
func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
baseRouter := Router.Group("base")
baseApi := v1.ApiGroupApp.SystemApiGroup.BaseApi
{
baseRouter.POST("login", baseApi.Login)
baseRouter.POST("captcha", baseApi.Captcha)
}
return baseRouter
}