sys_base.go 373 B

123456789101112131415161718
  1. package system
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "lcfns/api/v1"
  5. )
  6. type BaseRouter struct{}
  7. func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
  8. baseRouter := Router.Group("base")
  9. baseApi := v1.ApiGroupApp.SystemApiGroup
  10. {
  11. baseRouter.POST("login", baseApi.Login)
  12. baseRouter.POST("captcha", baseApi.Captcha)
  13. }
  14. return baseRouter
  15. }