From c2d8e537bb18c0892c0df6686ee5f5b5023f5bbb Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期一, 25 九月 2023 17:58:41 +0800 Subject: [PATCH] 1.修改业务类型列表接口,增加已就绪和已完成数量的统计 --- router/router.go | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/router/router.go b/router/router.go index e727dce..e912304 100644 --- a/router/router.go +++ b/router/router.go @@ -63,7 +63,7 @@ locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation) //鍒犻櫎浣嶇疆 } - // 浣滀笟绫诲瀷 + // 涓氬姟绫诲瀷 operationTypeController := new(controllers.OperationTypeController) operationTypeAPI := r.Group(urlPrefix + "/operationType") { @@ -77,10 +77,13 @@ operationController := new(controllers.OperationController) operationAPI := r.Group(urlPrefix + "/operation") { - operationAPI.GET("operation", operationController.List) + operationAPI.POST("list", operationController.List) operationAPI.POST("operation", operationController.Add) - operationAPI.PUT("operation/:id", operationController.Update) + operationAPI.POST("update", operationController.Update) operationAPI.DELETE("operation/:id", operationController.Delete) + operationAPI.PUT("finish/:id", operationController.Finish) + operationAPI.POST("listAll", operationController.ListAll) + } //浜у搧 @@ -98,6 +101,13 @@ productAPI.GET("getProductCategoryDetails/:id", productController.GetProductCategoryDetails) //鑾峰彇浜у搧绫诲瀷璇︽儏 productAPI.POST("updateProductCategory", productController.UpdateProductCategory) //淇敼浜у搧绫诲瀷 productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory) //鍒犻櫎浜у搧绫诲瀷 + + productAPI.POST("listOperaton", productController.ListOperation) //鏌ョ湅浜у搧鐨勫巻鍙插嚭鍏ュ簱淇℃伅 + productAPI.POST("addDisuse", productController.AddDisuse) //娣诲姞鎶ュ簾淇℃伅 + productAPI.POST("listDisuse", productController.ListDisuse) //鏌ョ湅浜у搧鐨勫巻鍙插嚭鍏ュ簱淇℃伅 + productAPI.PUT("finishDisuse/:id", productController.FinishDisuse) //鎶ュ簾楠岃瘉 + productAPI.POST("updateDisuse", productController.UpdateDisuse) //淇敼鎶ュ簾淇℃伅 + } return r -- Gitblit v1.8.0