From 8a4be5328eb72d9de00ae3a5f4f7894ff8dc58af Mon Sep 17 00:00:00 2001 From: ZiHangQin <1420014281@qq.com> Date: Tue, 8 Aug 2023 14:02:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(#8):=20=E5=90=88=E5=B9=B6=E5=88=86=E6=94=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=86=B2=E7=AA=81=E6=97=B6=E5=80=99=E9=81=97?= =?UTF-8?q?=E7=95=99=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B9=B6=E4=B8=94=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E4=B8=AD=E7=9A=84=E9=97=AE=E9=A2=98=E6=9C=AA=E5=A4=84?= =?UTF-8?q?=E7=90=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/tenement.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/controller/tenement.go b/controller/tenement.go index 077cf53..96e1402 100644 --- a/controller/tenement.go +++ b/controller/tenement.go @@ -25,15 +25,12 @@ func InitializeTenementHandler(router *fiber.App) { router.Put("/tenement/:pid/:tid", security.EnterpriseAuthorize, updateTenement) router.Get("/tenement/:pid/:tid", security.EnterpriseAuthorize, getTenementDetail) router.Get("/tenement/:pid/:tid/meter", security.EnterpriseAuthorize, listMeters) - router.Post("/tenement/:pid/:tid/move/out", security.EnterpriseAuthorize, moveOutTenement) + //TODO: 2023-07-19再apiFox上该请求是个PUT请求,后端接收是个POST请求,不知道是否有误或是缺少对应请求(apiFox测试请求返回值为405)[完成] + router.Put("/tenement/:pid/:tid/move/out", security.EnterpriseAuthorize, moveOutTenement) router.Post("/tenement/:pid", security.EnterpriseAuthorize, addTenement) router.Post("/tenement/:pid/:tid/binding", security.EnterpriseAuthorize, bindMeterToTenement) - //TODO: 2023-07-19再apiFox上该请求是个PUT请求,后端接收是个POST请求,不知道是否有误或是缺少对应请求(apiFox测试请求返回值为405) - router.Post("/tenement/:pid/:tid/move/out", security.EnterpriseAuthorize, moveOutTenement) - router.Post("/tenement/:pid", security.EnterpriseAuthorize, addTenement) - router.Post("/tenement/:pid/:tid/binding", security.EnterpriseAuthorize, bindMeterToTenement) - //TODO: 2023-07-19再apiFox上该请求是个PUT请求,后端接收是个POST请求,不知道是否有误或是缺少对应请求(apiFox测试请求返回值为405) - router.Post("/tenement/:pid/:tid/binding/:code/unbind", security.EnterpriseAuthorize, unbindMeterFromTenement) + //TODO: 2023-07-19再apiFox上该请求是个PUT请求,后端接收是个POST请求,不知道是否有误或是缺少对应请求(apiFox测试请求返回值为405)[完成] + router.Put("/tenement/:pid/:tid/binding/:code/unbind", security.EnterpriseAuthorize, unbindMeterFromTenement) } // 列出园区中的商户