You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
391 B
19 lines
391 B
package system
|
|
|
|
import (
|
|
"gin-vue-admin/api/v1"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type BaseRouter struct {
|
|
}
|
|
|
|
func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
|
|
baseRouter := Router.Group("base")
|
|
var baseApi = v1.ApiGroupApp.SystemApiGroup.BaseApi
|
|
{
|
|
baseRouter.POST("login", baseApi.Login)
|
|
baseRouter.POST("captcha", baseApi.Captcha)
|
|
}
|
|
return baseRouter
|
|
}
|