package handle import ( "github.com/gin-gonic/gin" "go_api_tmpl/global" "go_api_tmpl/repository" ) // SaveAllRoute 保存入库所有接口路由信息 func SaveAllRoute(routes gin.RoutesInfo) { global.Log.Debugf("待入库路由数量: %v", len(routes)) ar := repository.NewApisRepository() ar.SaveAllApi(routes) }