diff --git a/pkg/router/router.go b/pkg/router/router.go index c2fdb14..27d8f69 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -1,10 +1,11 @@ package router import ( + "net/http" + "github.com/exhibition-main/internal/middleware" "github.com/exhibition-main/pkg/service" "github.com/exhibition-main/pkg/service/common" - "net/http" "github.com/gin-contrib/gzip" "github.com/gin-contrib/pprof" @@ -39,6 +40,7 @@ func NewRouter() *gin.Engine { registerAuth.POST("save_register_info", service.SaveRegister) //保存 registerAuth.POST("export_register", service.ExportRegister) //导出 registerAuth.POST("scan_id_card", service.OcrBase64) //扫描身份证图片获取信息 + registerAuth.POST("import", service.ImportRecordByExcel) } //静态文件