From ce97cd7f69c5022013cb6d5b63afcfc4bae53fbc Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期三, 19 七月 2023 18:07:29 +0800
Subject: [PATCH] fix

---
 api/v1/client.go |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/api/v1/client.go b/api/v1/client.go
index 2e3d7ee..22dcaf3 100644
--- a/api/v1/client.go
+++ b/api/v1/client.go
@@ -168,7 +168,7 @@
 //	@Produce	application/json
 //	@Param		object	body		request.UpdateClient	true	"鏌ヨ鍙傛暟"
 //	@Success	200		{object}	contextx.Response{}
-//	@Router		/api/client/update [post]
+//	@Router		/api/client/update [put]
 func (cli *ClientApi) Update(c *gin.Context) {
 	var params request.UpdateClient
 	ctx, ok := contextx.NewContext(c, &params)
@@ -188,6 +188,8 @@
 		return
 	}
 
+	client.Id = params.Id
+
 	errCode = clientService.UpdateClient(client)
 	if errCode != ecode.OK {
 		ctx.Fail(errCode)

--
Gitblit v1.8.0