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
427 B

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