zhangqian
2023-08-29 d3a78e4c791821b298075b700e9fc14030d12ec2
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
}