From 2bfc37cbc679ceb5cef3b714e93ce4ebf55f9512 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 08 十一月 2023 17:24:58 +0800
Subject: [PATCH] 修改缩略图尺寸 config文件覆盖修复

---
 router/router.go |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/router/router.go b/router/router.go
index a591cf7..27e49d9 100644
--- a/router/router.go
+++ b/router/router.go
@@ -20,6 +20,7 @@
 	r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
 
 	urlPrefix := "/api-wms/v1"
+	r.Use(middleware.JWTAuth())
 
 	// 缁勭粐绠$悊
 	departmentController := new(controllers.DepartmentController)
@@ -61,6 +62,7 @@
 		locationAPI.POST("updateLocation", locationController.UpdateLocation)            //淇敼浣嶇疆
 		locationAPI.GET("getLocationDetails/:id", locationController.GetLocationDetails) //鑾峰彇浣嶇疆璇︽儏
 		locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation)      //鍒犻櫎浣嶇疆
+		locationAPI.GET("getLocationTreeList", locationController.GetLocationTreeList)   //鑾峰彇浣嶇疆鍒楄〃鏍�
 	}
 
 	// 涓氬姟绫诲瀷
@@ -153,5 +155,11 @@
 		reorderRuleAPI.POST("orderAgain", reorderRuleController.OrderAgain)                         //鍐嶈涓�娆�
 	}
 
+	attachmentController := new(controllers.AttachmentController)
+	attachmentAPI := r.Group(urlPrefix + "/attachment")
+	{
+		attachmentAPI.POST("uploadFiles", attachmentController.UploadFiles) //涓婁紶鏂囦欢
+	}
+
 	return r
 }

--
Gitblit v1.8.0