goweb/handle/apis.go
2021-08-22 00:13:00 +08:00

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)
}