From eaa4218d45fade3a9ac2cfb7ff81cbfceeb650cd Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 11 一月 2024 10:36:23 +0800 Subject: [PATCH] 问题修改 --- router/router.go | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/router/router.go b/router/router.go index fedd7c4..3e6ce21 100644 --- a/router/router.go +++ b/router/router.go @@ -81,12 +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) } @@ -112,6 +118,8 @@ productAPI.PUT("finishDisuse/:id", productController.FinishDisuse) //鎶ュ簾楠岃瘉 productAPI.POST("updateDisuse", productController.UpdateDisuse) //淇敼鎶ュ簾淇℃伅 productAPI.POST("listHistory", productController.ListHistory) //浜у搧浣嶇疆鍘嗗彶璁板綍 + productAPI.PUT("cancelDisuse/:id", productController.CancelDisuse) //鍙栨秷鎶ュ簾 + productAPI.GET("getUserInfo", productController.GetUserInfo) //鑾峰彇鐧诲綍鐢ㄦ埛淇℃伅 } @@ -162,5 +170,12 @@ 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