From e170c5fe4273a9635f27290028a5231500c3ace6 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 14 十二月 2023 15:53:43 +0800
Subject: [PATCH] 出入库明细添加业务类型
---
router/router.go | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/router/router.go b/router/router.go
index 4ac8ab8..e7565eb 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) //鑾峰彇浣嶇疆鍒楄〃鏍�
}
// 涓氬姟绫诲瀷
@@ -79,11 +81,18 @@
operationAPI := r.Group(urlPrefix + "/operation")
{
operationAPI.POST("list", operationController.List)
+ operationAPI.GET("getOperationInfo/:id", operationController.GetOperationInfo)
operationAPI.POST("operation", operationController.Add)
operationAPI.POST("update", operationController.Update)
operationAPI.DELETE("operation/:id", operationController.Delete)
operationAPI.PUT("finish/:id", operationController.Finish)
operationAPI.POST("listTransfer", operationController.ListTransfer)
+ operationAPI.GET("getLogisticCompanyList", operationController.GetLogisticCompanyList)
+ operationAPI.PUT("cancel/:id", operationController.Cancel)
+ operationAPI.PUT("outputOperation/:id", operationController.OutputOperation)
+ operationAPI.GET("getSupplierList", operationController.GetSupplierList)
+ operationAPI.GET("getClientList", operationController.GetClientList)
+ operationAPI.POST("listByCondition", operationController.ListByCondition)
}
@@ -109,6 +118,7 @@
productAPI.PUT("finishDisuse/:id", productController.FinishDisuse) //鎶ュ簾楠岃瘉
productAPI.POST("updateDisuse", productController.UpdateDisuse) //淇敼鎶ュ簾淇℃伅
productAPI.POST("listHistory", productController.ListHistory) //浜у搧浣嶇疆鍘嗗彶璁板綍
+ productAPI.PUT("cancelDisuse/:id", productController.CancelDisuse) //鍙栨秷鎶ュ簾
}
@@ -142,5 +152,29 @@
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) //涓婁紶鏂囦欢
+ }
+
+ codeApiController := new(controllers.CodeApi)
+ codeApi := r.Group(urlPrefix + "/code")
+ {
+ codeApi.GET("getCodeList", codeApiController.GetCodeList) //鑾峰彇缂栫爜鍒楄〃
+ codeApi.POST("getAutoCode", codeApiController.GetAutoCode) //鑾峰彇鑷姩缂栫爜
+ }
+
return r
}
--
Gitblit v1.8.0