refactor: 实体命名规范调整,代码生成同步调整

This commit is contained in:
Ray.Hao
2025-12-18 09:43:36 +08:00
parent 5817826bbd
commit 8eaed3cfb7
165 changed files with 1885 additions and 2038 deletions

View File

@@ -11,7 +11,7 @@ import java.time.LocalDateTime;
* @since 2024-09-01 10:31
*/
@Data
public class NoticeBO {
public class NoticeBo {
/**
* 通知ID

View File

@@ -11,7 +11,7 @@ import java.util.Set;
* @since 2023/11/29
*/
@Data
public class RolePermsBO {
public class RolePermsBo {
/**
* 角色编码

View File

@@ -7,11 +7,11 @@ import java.time.LocalDateTime;
/**
* 用户持久化对象
*
* @author haoxr
* @author Ray.Hao
* @since 2022/6/10
*/
@Data
public class UserBO {
public class UserBo {
/**
* 用户ID

View File

@@ -9,7 +9,7 @@ import lombok.Data;
* @since 2.10.0
*/
@Data
public class VisitCount {
public class VisitCountBo {
/**
* 日期 yyyy-MM-dd

View File

@@ -14,7 +14,7 @@ import java.math.BigDecimal;
*/
@Getter
@Setter
public class VisitStatsBO {
public class VisitStatsBo {
@Schema(description = "今日访问量 (PV)")
private Integer todayCount;

View File

@@ -13,7 +13,7 @@ import java.util.Set;
*/
@Schema(description ="当前登录用户对象")
@Data
public class CurrentUserDTO {
public class CurrentUserDto {
@Schema(description="用户ID")
private Long userId;

View File

@@ -1,28 +0,0 @@
package com.youlai.boot.system.model.dto;
import lombok.Data;
/**
* 字典更新事件消息
*
* @author Ray.Hao
* @since 3.0.0
*/
@Data
public class DictEventDTO {
/**
* 字典编码
*/
private String dictCode;
/**
* 时间戳
*/
private long timestamp;
public DictEventDTO(String dictCode) {
this.dictCode = dictCode;
this.timestamp = System.currentTimeMillis();
}
}

View File

@@ -13,7 +13,7 @@ import java.time.LocalDateTime;
* @since 2024-9-2 14:32:58
*/
@Data
public class NoticeDTO {
public class NoticeDto {
@Schema(description = "通知ID")
private Long id;
@@ -28,5 +28,4 @@ public class NoticeDTO {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private LocalDateTime publishTime;
}

View File

@@ -16,7 +16,7 @@ import java.time.LocalDateTime;
@Data
@ColumnWidth(20)
public class UserExportDTO {
public class UserExportDto {
@ExcelProperty(value = "用户名")
private String username;

View File

@@ -10,7 +10,7 @@ import lombok.Data;
* @since 2022/4/10
*/
@Data
public class UserImportDTO {
public class UserImportDto {
@ExcelProperty(value = "用户名")
private String username;

View File

@@ -6,13 +6,13 @@ import java.util.HashSet;
import java.util.Set;
/**
* 用户会话DTO
* 用户会话Dto
*
* @author Ray.Hao
* @since 3.0.0
*/
@Data
public class UserSessionDTO {
public class UserSessionDto {
/**
* 用户名
@@ -29,7 +29,7 @@ public class UserSessionDTO {
*/
private long lastActiveTime;
public UserSessionDTO(String username) {
public UserSessionDto(String username) {
this.username = username;
this.sessionIds = new HashSet<>();
this.lastActiveTime = System.currentTimeMillis();

View File

@@ -18,8 +18,8 @@ import java.io.Serializable;
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Schema(description = "系统配置VO")
public class ConfigVO {
@Schema(description = "系统配置Vo")
public class ConfigVo {
@Schema(description = "主键")
private Long id;

View File

@@ -9,7 +9,7 @@ import java.util.List;
@Schema(description = "部门视图对象")
@Data
public class DeptVO {
public class DeptVo {
@Schema(description = "部门ID")
private Long id;
@@ -30,7 +30,7 @@ public class DeptVO {
private Integer status;
@Schema(description = "子部门")
private List<DeptVO> children;
private List<DeptVo> children;
@Schema(description = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")

View File

@@ -13,7 +13,7 @@ import lombok.Setter;
@Schema(description = "字典项键值对象")
@Getter
@Setter
public class DictItemOptionVO {
public class DictItemOptionVo {
@Schema(description = "字典项值")
private String value;

View File

@@ -14,7 +14,7 @@ import lombok.Setter;
@Schema(description = "字典项分页对象")
@Getter
@Setter
public class DictItemPageVO {
public class DictItemPageVo {
@Schema(description = "字典项ID")
private Long id;

View File

@@ -9,7 +9,7 @@ import java.util.List;
/**
* 字典分页VO
* 字典分页Vo
*
* @author Ray
* @since 0.0.1
@@ -17,7 +17,7 @@ import java.util.List;
@Schema(description = "字典分页对象")
@Getter
@Setter
public class DictPageVO {
public class DictPageVo {
@Schema(description = "字典ID")
private Long id;

View File

@@ -9,14 +9,14 @@ import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 系统日志分页VO
* 系统日志分页Vo
*
* @author Ray
* @since 2.10.0
*/
@Data
@Schema(description = "系统日志分页VO")
public class LogPageVO implements Serializable {
@Schema(description = "系统日志分页Vo")
public class LogPageVo implements Serializable {
@Schema(description = "主键")
private Long id;

View File

@@ -8,7 +8,7 @@ import java.util.List;
@Schema(description ="菜单视图对象")
@Data
public class MenuVO {
public class MenuVo {
@Schema(description = "菜单ID")
private Long id;
@@ -48,6 +48,6 @@ public class MenuVO {
@Schema(description = "子菜单")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
private List<MenuVO> children;
private List<MenuVo> children;
}

View File

@@ -7,13 +7,13 @@ import lombok.Data;
import java.time.LocalDateTime;
/**
* 阅读通知公告VO
* 阅读通知公告Vo
*
* @author Theo
* @since 2024-9-8 01:25:06
*/
@Data
public class NoticeDetailVO {
public class NoticeDetailVo {
@Schema(description = "通知ID")
private Long id;

View File

@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
@Getter
@Setter
@Schema(description = "通知公告视图对象")
public class NoticePageVO implements Serializable {
public class NoticePageVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;

View File

@@ -8,7 +8,7 @@ import java.time.LocalDateTime;
@Schema(description ="角色分页对象")
@Data
public class RolePageVO {
public class RolePageVo {
@Schema(description="角色ID")
private Long id;

View File

@@ -16,7 +16,7 @@ import java.util.Map;
@Schema(description = "路由对象")
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouteVO {
public class RouteVo {
@Schema(description = "路由路径", example = "user")
private String path;
@@ -59,5 +59,5 @@ public class RouteVO {
}
@Schema(description = "子路由列表")
private List<RouteVO> children;
private List<RouteVo> children;
}

View File

@@ -7,14 +7,14 @@ import lombok.Data;
import java.time.LocalDateTime;
/**
* 用户公告VO
* 用户公告Vo
*
* @author Theo
* @since 2024-08-28 16:56
*/
@Data
@Schema(description = "用户公告VO")
public class UserNoticePageVO {
@Schema(description = "用户公告Vo")
public class UserNoticePageVo {
@Schema(description = "通知ID")
private Long id;

View File

@@ -14,7 +14,7 @@ import java.time.LocalDateTime;
*/
@Schema(description ="用户分页对象")
@Data
public class UserPageVO {
public class UserPageVo {
@Schema(description="用户ID")
private Long id;

View File

@@ -14,7 +14,7 @@ import java.util.Date;
*/
@Schema(description = "个人中心用户信息")
@Data
public class UserProfileVO {
public class UserProfileVo {
@Schema(description = "用户ID")
private Long id;

View File

@@ -15,7 +15,7 @@ import java.math.BigDecimal;
@Schema(description = "访问量统计视图对象")
@Getter
@Setter
public class VisitStatsVO {
public class VisitStatsVo {
@Schema(description = "今日独立访客数 (UV)")
private Integer todayUvCount;

View File

@@ -8,15 +8,15 @@ import lombok.Setter;
import java.util.List;
/**
* 访问趋势VO
* 访问趋势Vo
*
* @author Ray.Hao
* @since 2.3.0
*/
@Schema(description = "访问趋势VO")
@Schema(description = "访问趋势Vo")
@Getter
@Setter
public class VisitTrendVO {
public class VisitTrendVo {
@Schema(description = "日期列表")
private List<String> dates;