完善基础数据
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.Gongyingshangs;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.Gongyingshangs;
|
||||
|
||||
/// <summary>往来单位写仓储(聚合根仓储)</summary>
|
||||
public interface IGongyingshangWriteRepository : IDInterface
|
||||
{
|
||||
Task<Gongyingshang> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
Task<bool> AddAsync(Gongyingshang entity);
|
||||
Task<bool> UpdateAsync(Gongyingshang entity);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.Registries;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.Registries;
|
||||
|
||||
/// <summary>注册表写仓储(聚合根仓储)</summary>
|
||||
public interface IRegistryWriteRepository : IDInterface
|
||||
{
|
||||
/// <summary>返回聚合根</summary>
|
||||
Task<Registry> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>按命名空间 + 键名查询(存在则可用于"存在即更新")</summary>
|
||||
Task<Registry> GetByCategoryAndKeyAsync(string category, string keyName);
|
||||
|
||||
Task<bool> AddAsync(Registry registry);
|
||||
Task<bool> UpdateAsync(Registry registry);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.WorkTypes;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.WorkTypes;
|
||||
|
||||
/// <summary>工种-部门关联仓储</summary>
|
||||
public interface IWorkTypeDepartmentRepository : IDInterface
|
||||
{
|
||||
Task<WorkTypeDepartment> GetAsync(long workTypeId, long departmentId);
|
||||
Task<bool> AddAsync(WorkTypeDepartment entity);
|
||||
|
||||
/// <summary>物理删除(关联表避免唯一索引冲突)</summary>
|
||||
Task<bool> HardDeleteAsync(long id);
|
||||
|
||||
/// <summary>物理删除某工种的全部部门关联</summary>
|
||||
Task<bool> HardDeleteByWorkTypeIdAsync(long workTypeId);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.WorkTypes;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.WorkTypes;
|
||||
|
||||
/// <summary>工种-角色关联仓储</summary>
|
||||
public interface IWorkTypeRoleRepository : IDInterface
|
||||
{
|
||||
Task<WorkTypeRole> GetAsync(long workTypeId, long roleId);
|
||||
Task<bool> AddAsync(WorkTypeRole entity);
|
||||
|
||||
/// <summary>物理删除(关联表避免唯一索引冲突)</summary>
|
||||
Task<bool> HardDeleteAsync(long id);
|
||||
|
||||
/// <summary>物理删除某工种的全部角色关联</summary>
|
||||
Task<bool> HardDeleteByWorkTypeIdAsync(long workTypeId);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.WorkTypes;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.WorkTypes;
|
||||
|
||||
/// <summary>工种写仓储(聚合根仓储)</summary>
|
||||
public interface IWorkTypeWriteRepository : IDInterface
|
||||
{
|
||||
/// <summary>返回聚合根</summary>
|
||||
Task<WorkType> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
|
||||
Task<bool> AddAsync(WorkType workType);
|
||||
Task<bool> UpdateAsync(WorkType workType);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
Task<bool> ActiveOrDeactive(long id, bool active);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.WuziMulus;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.WuziMulus;
|
||||
|
||||
/// <summary>物资分组写仓储(聚合根仓储)</summary>
|
||||
public interface IWuziGroupWriteRepository : IDInterface
|
||||
{
|
||||
Task<WuziGroup> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
Task<bool> AddAsync(WuziGroup entity);
|
||||
Task<bool> UpdateAsync(WuziGroup entity);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
}
|
||||
|
||||
/// <summary>物资目录写仓储(聚合根仓储)</summary>
|
||||
public interface IWuziMuluWriteRepository : IDInterface
|
||||
{
|
||||
Task<WuziMulu> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
Task<bool> AddAsync(WuziMulu entity);
|
||||
Task<bool> UpdateAsync(WuziMulu entity);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.YuanliaoZhuangkous;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.YuanliaoZhuangkous;
|
||||
|
||||
/// <summary>原料庄口写仓储(聚合根仓储)</summary>
|
||||
public interface IYuanliaoZhuangkouWriteRepository : IDInterface
|
||||
{
|
||||
/// <summary>返回聚合根</summary>
|
||||
Task<YuanliaoZhuangkou> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
|
||||
Task<bool> AddAsync(YuanliaoZhuangkou entity);
|
||||
Task<bool> UpdateAsync(YuanliaoZhuangkou entity);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.Zq;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.Zq;
|
||||
|
||||
/// <summary>账期写仓储(聚合根仓储)</summary>
|
||||
public interface IZhangqiWriteRepository : IDInterface
|
||||
{
|
||||
/// <summary>返回聚合根</summary>
|
||||
Task<Zhangqi> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
|
||||
Task<bool> AddAsync(Zhangqi zhangqi);
|
||||
Task<bool> UpdateAsync(Zhangqi zhangqi);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
|
||||
/// <summary>扎帐 / 取消扎帐</summary>
|
||||
Task<bool> SetZhaZhangAsync(long id, bool isZhaZhang);
|
||||
}
|
||||
Reference in New Issue
Block a user