From e430bfca38cdae9dd230f951e108a75caebccb61 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 24 四月 2024 10:56:47 +0800
Subject: [PATCH] 完善代码

---
 pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/user/UserCtrl.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/user/UserCtrl.java b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/user/UserCtrl.java
index 603ad0d..5cc283c 100644
--- a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/user/UserCtrl.java
+++ b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/user/UserCtrl.java
@@ -6,7 +6,7 @@
 import com.dy.common.webUtil.BaseResponse;
 import com.dy.common.webUtil.BaseResponseUtils;
 import com.dy.common.webUtil.QueryResultVo;
-import com.dy.pmsGlobal.aop.OperationDescription;
+import com.dy.pmsGlobal.aop.Log;
 import com.dy.pmsGlobal.pojoBa.BaUser;
 import com.dy.pmsGlobal.util.Constant;
 import com.mysql.cj.util.StringUtils;
@@ -45,7 +45,7 @@
      * @return 榛樿瀵嗙爜
      */
     @GetMapping(path = "defaultPassword")
-    @OperationDescription("瀹㈡埛绔姹傚緱鍒伴粯璁ゅ瘑鐮�")
+    @Log("瀹㈡埛绔姹傚緱鍒伴粯璁ゅ瘑鐮�")
     public BaseResponse<String> defaultPassword(){
         if(defaultTrueRandomFalsePassword){
             return BaseResponseUtils.buildSuccess(defaultPassword) ;
@@ -62,7 +62,7 @@
     @PostMapping(path = "some", consumes = MediaType.APPLICATION_JSON_VALUE)
     //@SsoAop() //鍙湁鐧诲綍楠岃瘉锛屾病鏈夋潈闄愰獙璇�
     @SsoPowerAop(power = "10100010") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
-    @OperationDescription("鍒嗛〉鏌ヨ鐢ㄦ埛")
+    @Log("鍒嗛〉鏌ヨ鐢ㄦ埛")
     public BaseResponse<QueryResultVo<List<BaUser>>> some(@RequestBody QueryVo vo) {
         try {
             QueryResultVo<List<BaUser>> res = this.sv.selectSome(vo);
@@ -81,7 +81,7 @@
     @GetMapping(path = "one")
     //@SsoAop() //鍙湁鐧诲綍楠岃瘉锛屾病鏈夋潈闄愰獙璇�
     @SsoPowerAop(power = "10100010") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
-    @OperationDescription("鏌ヨ鍗曚釜鐢ㄦ埛")
+    @Log("鏌ヨ鍗曚釜鐢ㄦ埛")
     public BaseResponse<BaUser> one(String id) {
         try {
             return BaseResponseUtils.buildSuccess(this.sv.selectById(Long.parseLong(id)));
@@ -100,7 +100,7 @@
     @PostMapping(path = "save", consumes = MediaType.APPLICATION_JSON_VALUE)
     //@SsoAop() //鍙湁鐧诲綍楠岃瘉锛屾病鏈夋潈闄愰獙璇�
     @SsoPowerAop(power = "10100011") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
-    @OperationDescription("淇濆瓨鐢ㄦ埛淇℃伅")
+    @Log("淇濆瓨鐢ㄦ埛淇℃伅")
     public BaseResponse<Boolean> save(@RequestBody @Valid BaUser po, BindingResult bindingResult) {
         if (bindingResult != null && bindingResult.hasErrors()) {
             return BaseResponseUtils.buildFail(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage());
@@ -141,7 +141,7 @@
     @PostMapping(path = "update", consumes = MediaType.APPLICATION_JSON_VALUE)
     //@SsoAop() //鍙湁鐧诲綍楠岃瘉锛屾病鏈夋潈闄愰獙璇�
     @SsoPowerAop(power = "10100011") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
-    @OperationDescription("鏇存柊鐢ㄦ埛淇℃伅")
+    @Log("鏇存柊鐢ㄦ埛淇℃伅")
     public BaseResponse<Boolean> update(@RequestBody @Validated BaUser po, BindingResult bindingResult) {
         int count;
         try {
@@ -174,7 +174,7 @@
     //@GetMapping(path = "changePassword", consumes = MediaType.TEXT_PLAIN_VALUE)
     @GetMapping(path = "changePassword")
     @SsoAop()
-    @OperationDescription("淇敼瀵嗙爜")
+    @Log("淇敼瀵嗙爜")
     public BaseResponse<Boolean> changePassword(String id, String oldPassword, String newPassword) {
         int count;
         try {
@@ -227,7 +227,7 @@
     @PostMapping(path = "resetPassword", consumes = MediaType.APPLICATION_JSON_VALUE)
     //@SsoAop() //鍙湁鐧诲綍楠岃瘉锛屾病鏈夋潈闄愰獙璇�
     @SsoPowerAop(power = "10100011") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
-    @OperationDescription("閲嶇疆瀵嗙爜")
+    @Log("閲嶇疆瀵嗙爜")
     public BaseResponse<Boolean> resetPassword(@RequestBody @Validated ResetPasswordVo vo, BindingResult bindingResult) {
         int count;
         try {

--
Gitblit v1.8.0