fix
wangpengfei
2023-07-19 ce97cd7f69c5022013cb6d5b63afcfc4bae53fbc
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)