Преглед изворни кода

Bank App增加查看签章功能

sakuya пре 3 година
родитељ
комит
fb4aef0ff8

+ 11 - 4
eladmin-system/src/main/java/me/zhengjie/application/bank/controller/BankUserController.java

@@ -7,10 +7,7 @@ import me.zhengjie.application.bank.controller.vo.BankUserPwdVO;
 import me.zhengjie.application.bank.service.BankUserService;
 import me.zhengjie.base.ResponseDTO;
 import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @Validated
 @RestController
@@ -31,4 +28,14 @@ public class BankUserController extends BaseController {
         bankUserService.updatePwd(userPwdVO, getCurrentUser().getUsername());
         return ResponseDTO.success();
     }
+
+    /**
+     * 签章图片连接
+     *
+     * @return
+     */
+    @GetMapping("/seal-url")
+    public ResponseDTO<String> sealUrl() {
+        return ResponseDTO.success(bankUserService.getSealUrl(getCurrentUser().getSignImgId()));
+    }
 }