生成菜单代码.
This commit is contained in:
@@ -39,10 +39,10 @@ public class CodeGenerator {
|
||||
@NotNull
|
||||
String author = Const.ORION_AUTHOR;
|
||||
@NotEmpty
|
||||
String[] tables = {"system_user"};
|
||||
String[] tables = {"system_role", "system_user_role", "system_menu", "system_role_menu"};
|
||||
// 表业务注释 需要和表一一对应 null则为表注释
|
||||
@NotEmpty
|
||||
String[] comment = {"用户"};
|
||||
String[] comment = {"角色", "用户角色关联", "菜单", "角色菜单关联"};
|
||||
// 模块
|
||||
@NotNull
|
||||
String module = "infra";
|
||||
|
||||
@@ -47,8 +47,9 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
|
||||
}
|
||||
}
|
||||
} catch (HttpWrapperException e) {
|
||||
log.error("TokenAuthenticationFilter.doFilterInternal auth error", e);
|
||||
log.error("TokenAuthenticationFilter.doFilterInternal auth error {}", e.getWrapper().getMsg());
|
||||
Servlets.writeHttpWrapper(response, e.getWrapper());
|
||||
return;
|
||||
} catch (Exception e) {
|
||||
log.error("TokenAuthenticationFilter.doFilterInternal parser error", e);
|
||||
Servlets.writeHttpWrapper(response, ErrorCode.INTERNAL_SERVER_ERROR.getWrapper());
|
||||
|
||||
@@ -119,10 +119,10 @@ public class OrionSwaggerAutoConfiguration {
|
||||
public GroupedOpenApi allGroupedOpenApi(ConfigurableListableBeanFactory beanFactory,
|
||||
SwaggerProperties properties) {
|
||||
// 全部
|
||||
GroupedOpenApi all = buildGroupedOpenApi("全部", "*");
|
||||
GroupedOpenApi all = this.buildGroupedOpenApi("全部", "*");
|
||||
// 注册模块分组 api
|
||||
properties.getGroupedApi().forEach((t, v) -> {
|
||||
GroupedOpenApi api = buildGroupedOpenApi(v.getGroup(), v.getPath());
|
||||
GroupedOpenApi api = this.buildGroupedOpenApi(v.getGroup(), v.getPath());
|
||||
beanFactory.registerSingleton(t + "GroupedOpenApi", api);
|
||||
});
|
||||
return all;
|
||||
|
||||
Reference in New Issue
Block a user