修改User模块
This commit is contained in:
1 parent
d6471f97d3
commit
bb7162aaf6
21 files changed
+278
-336
No files matched your search
@@ -6,7 +6,7 @@ namespace Store.Users.Behaviors;
|
||||
/// <summary>需要账户积分消费检查的请求。</summary>
|
||||
public interface IAccountConsumptionRequest
|
||||
{
|
||||
string UserName { get; }
|
||||
string? UserName { get; }
|
||||
AccountConsumptionContext? ConsumptionContext { get; set; }
|
||||
ConsumptionQuote CalculateConsumption(UserEntity user);
|
||||
}
|
||||
@@ -20,4 +20,4 @@ public interface IShopOwnershipRequest
|
||||
}
|
||||
|
||||
public sealed record ConsumptionQuote(decimal Amount, decimal UnitPrice);
|
||||
public sealed record AccountConsumptionContext(UserEntity User, ConsumptionQuote Quote);
|
||||
public sealed record AccountConsumptionContext(UserEntity User, UserEntity Actor, ConsumptionQuote Quote);
|
||||
Reference in new issue
Block a user