Commit a4cb4ded by lixian7

添加解密注解

parent ae5601ce
...@@ -50,6 +50,7 @@ public class BindInfoControlller extends BaseController { ...@@ -50,6 +50,7 @@ public class BindInfoControlller extends BaseController {
* @date: 2020/6/19 10:27 * @date: 2020/6/19 10:27
*/ */
@PostMapping("bind") @PostMapping("bind")
@BodyDecryptAnnotation
@ResponseEncryptAnnotation @ResponseEncryptAnnotation
public Response<String> bindInfo(@RequestBody BindInfo info) { public Response<String> bindInfo(@RequestBody BindInfo info) {
if (info == null) { if (info == null) {
...@@ -68,6 +69,8 @@ public class BindInfoControlller extends BaseController { ...@@ -68,6 +69,8 @@ public class BindInfoControlller extends BaseController {
* @date: 2020/6/19 10:27 * @date: 2020/6/19 10:27
*/ */
@PostMapping("unbind") @PostMapping("unbind")
@BodyDecryptAnnotation
@ResponseEncryptAnnotation
public Response unbindInfo(@RequestBody @Validated UnBindReq req) { public Response unbindInfo(@RequestBody @Validated UnBindReq req) {
return service.unbindInfo(req) ? ResponseGenerator.success() : ResponseGenerator.fail("解绑失败"); return service.unbindInfo(req) ? ResponseGenerator.success() : ResponseGenerator.fail("解绑失败");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment