refactor: 修改缓存加载逻辑.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user