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.

17 lines
409 B

3 years ago
3 years ago
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 InitRouter struct{}
  7. func (s *InitRouter) InitInitRouter(Router *gin.RouterGroup) {
  8. initRouter := Router.Group("init")
  9. dbApi := v1.ApiGroupApp.SystemApiGroup.DBApi
  10. {
  11. initRouter.POST("initdb", dbApi.InitDB) // 创建Api
  12. initRouter.POST("checkdb", dbApi.CheckDB) // 创建Api
  13. }
  14. }