From cd98d0917a49a144195581fb029a684647276714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Mon, 15 Aug 2022 21:21:44 +0800 Subject: [PATCH] =?UTF-8?q?enhance(controller):=E7=BB=9F=E4=B8=80=E5=B8=B8?= =?UTF-8?q?=E8=A7=81=E6=93=8D=E4=BD=9C=E8=BF=94=E5=9B=9E=E7=9A=84=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/charge.go | 4 ++-- controller/park.go | 2 +- controller/user.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/controller/charge.go b/controller/charge.go index a5666c8..9aee3f6 100644 --- a/controller/charge.go +++ b/controller/charge.go @@ -79,7 +79,7 @@ func recordNewCharge(c *gin.Context) { result.Error(http.StatusInternalServerError, err.Error()) return } - result.Success("指定用户的服务已延期。") + result.Created("指定用户的服务已延期。") } type _StateChangeFormData struct { @@ -101,5 +101,5 @@ func modifyChargeState(c *gin.Context) { result.Error(http.StatusInternalServerError, err.Error()) return } - result.Success("指定用户服务延期记录状态已经更新。") + result.Updated("指定用户服务延期记录状态已经更新。") } diff --git a/controller/park.go b/controller/park.go index 89d165f..08ca69e 100644 --- a/controller/park.go +++ b/controller/park.go @@ -103,7 +103,7 @@ func createNewPark(c *gin.Context) { result.Error(http.StatusInternalServerError, err.Error()) return } - result.Success("新园区完成创建。") + result.Created("新园区完成创建。") } func modifyPark(c *gin.Context) { diff --git a/controller/user.go b/controller/user.go index 5758d16..28e8e7a 100644 --- a/controller/user.go +++ b/controller/user.go @@ -141,7 +141,7 @@ func resetUserPassword(c *gin.Context) { return } if completed { - result.Success("用户凭据已更新。") + result.Updated("用户凭据已更新。") return } result.NotAccept("用户凭据未能成功更新。") @@ -199,7 +199,7 @@ func switchUserEnabling(c *gin.Context) { return } } - result.Success("用户状态已经更新。") + result.Updated("用户状态已经更新。") } type _OPSAccountCreationFormData struct { @@ -345,7 +345,7 @@ func modifyAccountDetail(c *gin.Context) { result.Error(http.StatusInternalServerError, err.Error()) return } - result.Success("指定用户的信息已经更新。") + result.Updated("指定用户的信息已经更新。") } func quickSearchEnterprise(c *gin.Context) {