refactor: 修改缓存加载逻辑.

This commit is contained in:
lijiahang
2023-12-04 14:35:18 +08:00
parent a22f30a8b4
commit f4b5ba168a
39 changed files with 278 additions and 332 deletions

View File

@@ -30,7 +30,7 @@ public @interface OperatorLog {
* - {@link org.springframework.web.bind.annotation.PathVariable}
* <p>
* 使用 @IgnoreParameter 可以忽略参数记录 {@link IgnoreParameter}
* 如果只需要忽略某个字段可以使用 @Desensitize(toEmpty = true) 标注
* 如果只需要忽略某个字段可以使用 {@code @Desensitize(toEmpty = true)} 标注
*/
boolean parameter() default true;

View File

@@ -45,23 +45,16 @@ public class CodeGenerators {
// .color("blue", "gray", "red", "green", "white")
// .valueUseFields()
// .build(),
Template.create("code_snippet", "代码片段", "snippet")
Template.create("command_template", "命令模板", "command")
.disableUnitTest()
.cache("code:snippet:{}", "代码片段")
.cache("command:template:list", "命令模板列表")
.expire(1, TimeUnit.DAYS)
.vue("asset", "snippet")
.enableCardView()
.enableDrawerForm()
.dict("codeSnippetType", "type")
.comment("代码片段类型")
.fields("COMMAND", "TEMPLATE")
.labels("命令", "模板")
.extra("icon", "icon-code-block", "icon-code")
.valueUseFields()
.dict("codeSnippetRender", "prepare_render")
.dict("commandTemplateRender", "prepare_render")
.comment("是否使用脚本渲染")
.fields("UN_RENDER", "RENDER")
.labels("渲染", "渲染")
.fields("UNUSED", "USED")
.labels("使用", "使用")
.values(0, 1)
.build(),
};