refactor: extract database entities to manage-db (partial)

This commit is contained in:
张翔
2026-03-13 13:03:13 +08:00
parent 4f23ae8d8c
commit 57f85b20c8
43 changed files with 56 additions and 56 deletions
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.DictionaryEntity; import cn.novalon.manage.sys.infrastructure.db.entity.DictionaryEntity;
import org.springframework.data.r2dbc.repository.R2dbcRepository; import org.springframework.data.r2dbc.repository.R2dbcRepository;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.OperationLogEntity; import cn.novalon.manage.sys.infrastructure.db.entity.OperationLogEntity;
import org.springframework.data.r2dbc.repository.R2dbcRepository; import org.springframework.data.r2dbc.repository.R2dbcRepository;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysConfigEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysConfigEntity;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysDictDataEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysDictDataEntity;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysDictTypeEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysDictTypeEntity;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysExceptionLogEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysExceptionLogEntity;
import org.springframework.data.r2dbc.repository.R2dbcRepository; import org.springframework.data.r2dbc.repository.R2dbcRepository;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysFileEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysFileEntity;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysLoginLogEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysLoginLogEntity;
import org.springframework.data.r2dbc.repository.R2dbcRepository; import org.springframework.data.r2dbc.repository.R2dbcRepository;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysMenuEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysMenuEntity;
import org.springframework.data.r2dbc.repository.R2dbcRepository; import org.springframework.data.r2dbc.repository.R2dbcRepository;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysNoticeEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysNoticeEntity;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysRoleEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysRoleEntity;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysUserEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysUserEntity;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.dao; package cn.novalon.manage.db;
import cn.novalon.manage.sys.infrastructure.db.entity.SysUserMessageEntity; import cn.novalon.manage.sys.infrastructure.db.entity.SysUserMessageEntity;
import org.springframework.data.r2dbc.repository.R2dbcRepository; import org.springframework.data.r2dbc.repository.R2dbcRepository;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.Dictionary; import cn.novalon.manage.sys.core.domain.Dictionary;
import cn.novalon.manage.sys.infrastructure.db.entity.DictionaryEntity; import cn.novalon.manage.db.entity.DictionaryEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.OperationLog; import cn.novalon.manage.sys.core.domain.OperationLog;
import cn.novalon.manage.sys.infrastructure.db.entity.OperationLogEntity; import cn.novalon.manage.db.entity.OperationLogEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysConfig; import cn.novalon.manage.sys.core.domain.SysConfig;
import cn.novalon.manage.sys.infrastructure.db.entity.SysConfigEntity; import cn.novalon.manage.db.entity.SysConfigEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysDictData; import cn.novalon.manage.sys.core.domain.SysDictData;
import cn.novalon.manage.sys.infrastructure.db.entity.SysDictDataEntity; import cn.novalon.manage.db.entity.SysDictDataEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysDictType; import cn.novalon.manage.sys.core.domain.SysDictType;
import cn.novalon.manage.sys.infrastructure.db.entity.SysDictTypeEntity; import cn.novalon.manage.db.entity.SysDictTypeEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysExceptionLog; import cn.novalon.manage.sys.core.domain.SysExceptionLog;
import cn.novalon.manage.sys.infrastructure.db.entity.SysExceptionLogEntity; import cn.novalon.manage.db.entity.SysExceptionLogEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysFile; import cn.novalon.manage.sys.core.domain.SysFile;
import cn.novalon.manage.sys.infrastructure.db.entity.SysFileEntity; import cn.novalon.manage.db.entity.SysFileEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysLoginLog; import cn.novalon.manage.sys.core.domain.SysLoginLog;
import cn.novalon.manage.sys.infrastructure.db.entity.SysLoginLogEntity; import cn.novalon.manage.db.entity.SysLoginLogEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysMenu; import cn.novalon.manage.sys.core.domain.SysMenu;
import cn.novalon.manage.sys.infrastructure.db.entity.SysMenuEntity; import cn.novalon.manage.db.entity.SysMenuEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysNotice; import cn.novalon.manage.sys.core.domain.SysNotice;
import cn.novalon.manage.sys.infrastructure.db.entity.SysNoticeEntity; import cn.novalon.manage.db.entity.SysNoticeEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysRole; import cn.novalon.manage.sys.core.domain.SysRole;
import cn.novalon.manage.sys.infrastructure.db.entity.SysRoleEntity; import cn.novalon.manage.db.entity.SysRoleEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysUser; import cn.novalon.manage.sys.core.domain.SysUser;
import cn.novalon.manage.sys.infrastructure.db.entity.SysUserEntity; import cn.novalon.manage.db.entity.SysUserEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,7 +1,7 @@
package cn.novalon.manage.sys.infrastructure.db.converter; package cn.novalon.manage.db.converter;
import cn.novalon.manage.sys.core.domain.SysUserMessage; import cn.novalon.manage.sys.core.domain.SysUserMessage;
import cn.novalon.manage.sys.infrastructure.db.entity.SysUserMessageEntity; import cn.novalon.manage.db.entity.SysUserMessageEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table; import org.springframework.data.relational.core.mapping.Table;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table; import org.springframework.data.relational.core.mapping.Table;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity.query; package cn.novalon.manage.db.entity;
import cn.novalon.manage.sys.core.domain.query.SysMenuQuery; import cn.novalon.manage.sys.core.domain.query.SysMenuQuery;
import cn.novalon.manage.sys.infrastructure.db.utils.QueryField; import cn.novalon.manage.sys.infrastructure.db.utils.QueryField;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table; import org.springframework.data.relational.core.mapping.Table;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity.query; package cn.novalon.manage.db.entity;
import cn.novalon.manage.sys.core.domain.query.SysRoleQuery; import cn.novalon.manage.sys.core.domain.query.SysRoleQuery;
import cn.novalon.manage.sys.infrastructure.db.utils.QueryField; import cn.novalon.manage.sys.infrastructure.db.utils.QueryField;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table; import org.springframework.data.relational.core.mapping.Table;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity; package cn.novalon.manage.db.entity;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Column;
@@ -1,4 +1,4 @@
package cn.novalon.manage.sys.infrastructure.db.entity.query; package cn.novalon.manage.db.entity;
import cn.novalon.manage.sys.core.domain.query.SysUserQuery; import cn.novalon.manage.sys.core.domain.query.SysUserQuery;
import cn.novalon.manage.sys.infrastructure.db.utils.QueryField; import cn.novalon.manage.sys.infrastructure.db.utils.QueryField;