chore: 删除启动横幅并将英文注释改为中文

- 移除启动横幅文件与定时任务配置里的英文说明
- 密码认证与角色禁用会话失效处的注释改为中文
- 代码生成的列类型处理注释改为中文,去掉重复的类型列举
- 初始化脚本的表结构与表数据注释改为中文
This commit is contained in:
Ray.Hao
2026-09-27 21:26:44 +08:00
parent 607b6c7bb3
commit 1243a311e0
9 changed files with 29 additions and 54 deletions

View File

@@ -37,11 +37,6 @@ public class PasswordAuthService {
new UsernamePasswordAuthenticationToken(username.trim(), password);
// 2. 执行认证(认证中)
// 说明:这里的认证流程由 Spring Security 提供的 AuthenticationManager 执行。
// 默认情况下会委托给 DaoAuthenticationProvider:
// 1) retrieveUser(...):内部通过 UserDetailsService.loadUserByUsername(...) 获取用户信息(本项目为 SecurityUserDetailsService 实现)
// 2) additionalAuthenticationChecks(...):对比请求密码与用户存储密码(由 PasswordEncoder 完成匹配)
// 认证通过后返回已认证的 Authentication(principal 为 SecurityUserDetails,authorities 为角色/权限集合)。
Authentication authentication = authenticationManager.authenticate(authenticationToken);
// 3. 认证成功后生成 JWT 令牌,并存入 Security 上下文,供登录日志 AOP 使用(已认证)

View File

@@ -93,15 +93,15 @@ public enum JavaTypeEnum {
if (columnType == null) {
return "";
}
// Handle values like: varchar(255), bigint unsigned, INT
// 处理 varchar(255)、bigint unsigned、INT 等列类型写法
String normalized = columnType.trim().toLowerCase();
int parenIndex = normalized.indexOf('(');
if (parenIndex > -1) {
normalized = normalized.substring(0, parenIndex);
}
// Remove modifiers
// 去除修饰符
normalized = normalized.replace("unsigned", "").replace("zerofill", "").trim();
// Collapse repeated spaces
// 合并连续空格
normalized = normalized.replaceAll("\\s+", " ");
return normalized;
}

View File

@@ -155,12 +155,8 @@ public class CodegenServiceImpl implements CodegenService {
String effectiveTemplatePath = resolveFrontendTemplatePath(templateName, templateConfig, frontendType);
String extension = resolveFrontendExtension(templateName, templateConfig, frontendType);
/* 1. 生成文件名 UserController */
// User Role Menu Dept
/* 1. 生成文件名 */
String entityName = genTable.getEntityName();
// Controller Service Mapper Entity
// .java .ts .vue
// 文件名 UserController.java
String fileName = getFileName(entityName, templateName, extension);

View File

@@ -8,7 +8,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* xxl-job config
*
* @author xuxueli 2017-04-28
*/

View File

@@ -2,8 +2,6 @@ package com.youlai.boot.system.model.form;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
// import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

View File

@@ -229,7 +229,7 @@ public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements Ro
// 刷新角色的权限缓存
roleMenuService.refreshRolePermsCache(role.getCode());
// When role is disabled, invalidate sessions of all users with this role
// 角色禁用时使该角色下所有用户的会话失效
if (status == 0) {
List<Long> userIds = userRoleService.listUserIdsByRoleId(roleId);
for (Long userId : userIds) {