feat(encrypt-api): 支持全局请求报文加密

BREAKING CHANGE: 文档和用法完全和之前不一样,不需要耦合代码
This commit is contained in:
冷冷 committed 2025-03-09 21:41:37 +08:00
1 parent 1665598520
commit ec9eb5a69e
38 files changed
+678 -965

No files matched your search

@@ -20,6 +20,7 @@ package com.pig4cloud.pigx.codegen.controller;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.util.StrUtil;
import com.pig4cloud.pigx.codegen.service.GeneratorService;
import com.pig4cloud.pigx.common.api.encrypt.annotation.NoEncrypt;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.common.idempotent.annotation.Idempotent;
import lombok.RequiredArgsConstructor;
@@ -56,6 +57,7 @@ public class GeneratorController {
* @param response 流输出对象
*/
@SneakyThrows
@NoEncrypt
@GetMapping("/download")
@Idempotent(key = "#tableIds", expireTime = 10, info = "正在生成代码,请勿重复操作")
public void download(String tableIds, HttpServletResponse response) {