feat: 重构测试框架并优化代码结构

refactor(tests): 将e2e_tests迁移到tests_suite和api_integration_tests
style: 为Java类添加文档注释
docs: 更新.gitignore和配置文件
test: 添加性能测试和Playwright测试脚本
chore: 清理旧测试文件和配置
This commit is contained in:
张翔
2026-03-14 13:49:39 +08:00
parent 9e187f42e5
commit c50ccd258f
178 changed files with 8655 additions and 2519 deletions
@@ -9,6 +9,12 @@ import reactor.core.publisher.Mono;
import java.time.LocalDateTime;
/**
* 操作日志服务实现类
*
* @author 张翔
* @date 2026-03-14
*/
@Service
public class OperationLogService implements IOperationLogService {
@@ -7,6 +7,12 @@ import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* 字典数据服务实现类
*
* @author 张翔
* @date 2026-03-14
*/
@Service
public class SysDictDataService implements ISysDictDataService {
@@ -15,7 +15,7 @@ import java.util.List;
import java.util.stream.Collectors;
/**
* 菜单服务实现类
* 系统菜单服务实现类
*
* @author 张翔
* @date 2026-03-14
@@ -16,6 +16,12 @@ import reactor.core.publisher.Mono;
import java.time.LocalDateTime;
/**
* 系统角色服务实现类
*
* @author 张翔
* @date 2026-03-14
*/
@Service
public class SysRoleService implements ISysRoleService {
@@ -2,6 +2,12 @@ package cn.novalon.manage.sys.dto.request;
import jakarta.validation.constraints.NotBlank;
/**
* 密码修改请求DTO
*
* @author 张翔
* @date 2026-03-14
*/
public class PasswordChangeRequest {
@NotBlank(message = "旧密码不能为空")
@@ -4,6 +4,12 @@ import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
/**
* 用户注册请求DTO
*
* @author 张翔
* @date 2026-03-14
*/
public class UserRegisterRequest {
@NotBlank(message = "用户名不能为空")
@@ -2,6 +2,12 @@ package cn.novalon.manage.sys.dto.request;
import jakarta.validation.constraints.Email;
/**
* 用户更新请求DTO
*
* @author 张翔
* @date 2026-03-14
*/
public class UserUpdateRequest {
private String email;
@@ -1,5 +1,11 @@
package cn.novalon.manage.sys.dto.response;
/**
* 认证响应DTO
*
* @author 张翔
* @date 2026-03-14
*/
public class AuthResponse {
private String token;
@@ -1,5 +1,11 @@
package cn.novalon.manage.sys.dto.response;
/**
* 文件预览响应DTO
*
* @author 张翔
* @date 2026-03-14
*/
public class FilePreviewResponse {
private String fileName;
private String fileType;
@@ -2,6 +2,12 @@ package cn.novalon.manage.sys.dto.response;
import java.time.LocalDateTime;
/**
* 用户响应DTO
*
* @author 张翔
* @date 2026-03-14
*/
public class UserResponse {
private Long id;
@@ -8,6 +8,12 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
/**
* 系统配置处理器
*
* @author 张翔
* @date 2026-03-14
*/
@Component
public class SysConfigHandler {
@@ -10,6 +10,12 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
/**
* 系统字典处理器
*
* @author 张翔
* @date 2026-03-14
*/
@Component
public class SysDictHandler {
@@ -8,6 +8,12 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
/**
* 字典处理器
*
* @author 张翔
* @date 2026-03-14
*/
@Component
public class DictionaryHandler {
@@ -11,6 +11,12 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
/**
* 系统日志处理器
*
* @author 张翔
* @date 2026-03-14
*/
@Component
public class SysLogHandler {
@@ -12,6 +12,12 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
/**
* 系统菜单处理器
*
* @author 张翔
* @date 2026-03-14
*/
@Component
public class MenuHandler {
@@ -15,6 +15,12 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
/**
* 系统角色处理器
*
* @author 张翔
* @date 2026-03-14
*/
@Component
@Tag(name = "角色管理", description = "角色相关操作")
public class SysRoleHandler {
@@ -8,6 +8,12 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
/**
* 统计数据处理器
*
* @author 张翔
* @date 2026-03-14
*/
@Component
public class StatsHandler {