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 | 43 ++++++++++++++++++++++++++++++++++++++----- 1 files changed, 38 insertions(+), 5 deletions(-) diff --git a/router/router.go b/router/router.go index f18f617..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) //鑾峰彇浣嶇疆鍒楄〃鏍� } // 涓氬姟绫诲瀷 @@ -68,6 +70,7 @@ operationTypeAPI := r.Group(urlPrefix + "/operationType") { operationTypeAPI.GET("operationType", operationTypeController.List) // 鑾峰彇浣滀笟绫诲瀷鍒楄〃 + operationTypeAPI.GET("listTransfer", operationTypeController.ListTransfer) // 鑾峰彇浣滀笟绫诲瀷鍒楄〃 operationTypeAPI.POST("operationType", operationTypeController.Add) // 鏂板浣滀笟绫诲瀷 operationTypeAPI.PUT("operationType/:id", operationTypeController.Update) // 淇敼浣滀笟绫诲瀷 operationTypeAPI.DELETE("operationType/:id", operationTypeController.Delete) // 鍒犻櫎浣滀笟绫诲瀷 @@ -82,7 +85,7 @@ operationAPI.POST("update", operationController.Update) operationAPI.DELETE("operation/:id", operationController.Delete) operationAPI.PUT("finish/:id", operationController.Finish) - operationAPI.POST("listAll", operationController.ListAll) + operationAPI.POST("listTransfer", operationController.ListTransfer) } @@ -107,16 +110,29 @@ productAPI.POST("listDisuse", productController.ListDisuse) //鏌ョ湅浜у搧鐨勫巻鍙插嚭鍏ュ簱淇℃伅 productAPI.PUT("finishDisuse/:id", productController.FinishDisuse) //鎶ュ簾楠岃瘉 productAPI.POST("updateDisuse", productController.UpdateDisuse) //淇敼鎶ュ簾淇℃伅 + productAPI.POST("listHistory", productController.ListHistory) //浜у搧浣嶇疆鍘嗗彶璁板綍 + } // 涓婃灦瑙勫垯 locationProductController := new(controllers.LocationProductController) locationProductAPI := r.Group(urlPrefix + "/locationProduct") { - locationProductAPI.GET("operationType", locationProductController.List) // 鑾峰彇涓婃灦瑙勫垯鍒楄〃 - locationProductAPI.POST("operationType", locationProductController.Add) // 鏂板涓婃灦瑙勫垯 - locationProductAPI.PUT("operationType/:id", locationProductController.Update) // 淇敼涓婃灦瑙勫垯 - locationProductAPI.DELETE("operationType/:id", locationProductController.Delete) // 鍒犻櫎涓婃灦瑙勫垯 + locationProductAPI.POST("list", locationProductController.List) // 鑾峰彇涓婃灦瑙勫垯鍒楄〃 + locationProductAPI.POST("add", locationProductController.Add) // 鏂板涓婃灦瑙勫垯 + locationProductAPI.POST("update", locationProductController.Update) // 淇敼涓婃灦瑙勫垯 + locationProductAPI.DELETE("delete/:id", locationProductController.Delete) // 鍒犻櫎涓婃灦瑙勫垯 + } + + //搴撳瓨鐩樼偣 + locationProductAmountController := new(controllers.LocationProductAmountController) + locationProductAmountAPI := r.Group(urlPrefix + "/locationProductAmount") + { + locationProductAmountAPI.POST("add", locationProductAmountController.Add) //娣诲姞搴撳瓨鐩樼偣淇℃伅 + locationProductAmountAPI.POST("list", locationProductAmountController.List) //鏌ョ湅搴撳瓨鐩樼偣鍒楄〃 + locationProductAmountAPI.POST("update", locationProductAmountController.Update) //淇敼搴撳瓨鐩樼偣淇℃伅 + locationProductAmountAPI.POST("finish", locationProductAmountController.Finish) //搴旂敤銆侀獙璇佸簱瀛樼洏鐐逛俊鎭� + locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList) //鑾峰彇涓婃灦瑙勫垯 } //鎶ヨ〃 @@ -128,5 +144,22 @@ reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms) //鑾峰彇浣嶇疆鎶ヨ〃 } + //閲嶈璐ц鍒� + reorderRuleController := new(controllers.ReorderRuleController) + reorderRuleAPI := r.Group(urlPrefix + "/reorderRule") + { + reorderRuleAPI.POST("addReorderRule", reorderRuleController.AddReorderRule) //娣诲姞閲嶈璐ц鍒� + reorderRuleAPI.POST("getReorderRuleList", reorderRuleController.GetReorderRuleList) //鑾峰彇閲嶈璐ц鍒欏垪琛� + reorderRuleAPI.POST("getAmountAndPrediction", reorderRuleController.GetAmountAndPrediction) //鑾峰彇鍦ㄥ簱涓庨娴嬫暟閲� + reorderRuleAPI.POST("updateReorderRule", reorderRuleController.UpdateReorderRule) //鏇存柊閲嶈璐ц鍒� + 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