goweb/handle/apis.go

15 lines
312 B
Go

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