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