wangpengfei
2023-08-25 25c573d55986e02cf5f70cc3868e2b94a4be98e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package system
 
import (
    "github.com/gin-gonic/gin"
    v1 "srm/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
}