服务端对输入输出参数进行加密处理
@Log4j2
@RestController
@Api(tags = "TestController", description = "测试")
@RequestMapping("/model")
@EncryptResponse
public class TestController {
@DecryptRequest
@ApiOperation("test")
@RequestMapping(value = "/test", method = RequestMethod.POST)
public CommonResult<Category> test(@RequestBody Category category) {
log.info("分类名称" + category.getCategoryName());
return CommonResult.success(category);
}
}