✨ init project
This commit is contained in:
16
router/system/sys_base.go
Normal file
16
router/system/sys_base.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type BaseRouter struct{}
|
||||
|
||||
func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
|
||||
baseRouter := Router.Group("base")
|
||||
{
|
||||
baseRouter.POST("login", baseApi.Login)
|
||||
baseRouter.POST("captcha", baseApi.Captcha)
|
||||
}
|
||||
return baseRouter
|
||||
}
|
||||
Reference in New Issue
Block a user