feat: add points rule repository interfaces
This commit is contained in:
parent
176120d51f
commit
7eee913c3c
@ -0,0 +1,10 @@
|
|||||||
|
using Fengling.Member.Domain.Aggregates.PointsRuleModel;
|
||||||
|
|
||||||
|
namespace Fengling.Member.Domain.Repositories;
|
||||||
|
|
||||||
|
public interface IPointsRuleConditionRepository
|
||||||
|
{
|
||||||
|
Task<List<PointsRuleCondition>> GetByRuleIdAsync(PointsRuleId ruleId);
|
||||||
|
Task AddAsync(PointsRuleCondition condition);
|
||||||
|
Task DeleteByRuleIdAsync(PointsRuleId ruleId);
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
using Fengling.Member.Domain.Aggregates.PointsRuleModel;
|
||||||
|
using Fengling.Member.Domain.Aggregates.PointsRuleModel.Enums;
|
||||||
|
|
||||||
|
namespace Fengling.Member.Domain.Repositories;
|
||||||
|
|
||||||
|
public interface IPointsRuleRepository
|
||||||
|
{
|
||||||
|
Task<PointsRule?> GetByIdAsync(PointsRuleId id);
|
||||||
|
Task<PointsRule?> GetByCodeAsync(string code);
|
||||||
|
Task<List<PointsRule>> GetActiveRulesAsync();
|
||||||
|
Task<List<PointsRule>> GetActiveRulesByDimensionAsync(DimensionType dimensionType, string dimensionValue);
|
||||||
|
Task AddAsync(PointsRule rule);
|
||||||
|
Task UpdateAsync(PointsRule rule);
|
||||||
|
Task DeleteAsync(PointsRuleId id);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user