feat(dept): 添加部门管理数据层
- 新增 SysDept 领域模型(manage-sys) - 新增 ISysDeptRepository 接口(manage-sys) - 新增 SysDeptEntity 实体类(manage-db) - 新增 SysDeptDao R2DBC 接口(manage-db) - 新增 SysDeptConverter 转换器(manage-db) - 新增 SysDeptRepository 实现类(manage-db) - 新增 V6 Flyway 迁移脚本创建 sys_dept 表
This commit is contained in:
+47
@@ -0,0 +1,47 @@
|
||||
package cn.novalon.manage.sys.core.domain;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class SysDept {
|
||||
|
||||
private Long id;
|
||||
private Long parentId;
|
||||
private String deptName;
|
||||
private Integer orderNum;
|
||||
private String leader;
|
||||
private String phone;
|
||||
private String email;
|
||||
private Integer status;
|
||||
private String createBy;
|
||||
private String updateBy;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
private LocalDateTime deletedAt;
|
||||
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
public Long getParentId() { return parentId; }
|
||||
public void setParentId(Long parentId) { this.parentId = parentId; }
|
||||
public String getDeptName() { return deptName; }
|
||||
public void setDeptName(String deptName) { this.deptName = deptName; }
|
||||
public Integer getOrderNum() { return orderNum; }
|
||||
public void setOrderNum(Integer orderNum) { this.orderNum = orderNum; }
|
||||
public String getLeader() { return leader; }
|
||||
public void setLeader(String leader) { this.leader = leader; }
|
||||
public String getPhone() { return phone; }
|
||||
public void setPhone(String phone) { this.phone = phone; }
|
||||
public String getEmail() { return email; }
|
||||
public void setEmail(String email) { this.email = email; }
|
||||
public Integer getStatus() { return status; }
|
||||
public void setStatus(Integer status) { this.status = status; }
|
||||
public String getCreateBy() { return createBy; }
|
||||
public void setCreateBy(String createBy) { this.createBy = createBy; }
|
||||
public String getUpdateBy() { return updateBy; }
|
||||
public void setUpdateBy(String updateBy) { this.updateBy = updateBy; }
|
||||
public LocalDateTime getCreatedAt() { return createdAt; }
|
||||
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
||||
public LocalDateTime getUpdatedAt() { return updatedAt; }
|
||||
public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
|
||||
public LocalDateTime getDeletedAt() { return deletedAt; }
|
||||
public void setDeletedAt(LocalDateTime deletedAt) { this.deletedAt = deletedAt; }
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package cn.novalon.manage.sys.core.repository;
|
||||
|
||||
import cn.novalon.manage.sys.core.domain.SysDept;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
public interface ISysDeptRepository {
|
||||
|
||||
Flux<SysDept> findAll();
|
||||
|
||||
Flux<SysDept> findByParentId(Long parentId);
|
||||
|
||||
Mono<SysDept> findById(Long id);
|
||||
|
||||
Mono<Long> countByParentId(Long parentId);
|
||||
|
||||
Mono<SysDept> save(SysDept dept);
|
||||
|
||||
Mono<Void> deleteById(Long id);
|
||||
}
|
||||
Reference in New Issue
Block a user