sys_initdb.go 414 B

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