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