feat: 新增任务需求枚举
This commit is contained in:
@@ -38,7 +38,7 @@ public class AssignmentAggregateRoot : AggregateRoot<Guid>, IHasCreationTime, IO
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
public AssignmentStateEnum AssignmentState { get; set; }
|
||||
public AssignmentStateEnum AssignmentState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务奖励的钱钱数量
|
||||
@@ -52,9 +52,9 @@ public class AssignmentAggregateRoot : AggregateRoot<Guid>, IHasCreationTime, IO
|
||||
public DateTime? CompleteTime { get; set; }
|
||||
|
||||
|
||||
public DateTime CreationTime { get; }
|
||||
public DateTime CreationTime { get; set; }
|
||||
public int OrderNum { get; set; }
|
||||
public DateTime? LastModificationTime { get; }
|
||||
public DateTime? LastModificationTime{ get; set; }
|
||||
|
||||
|
||||
public bool IsAllowCompleted()
|
||||
@@ -72,4 +72,11 @@ public class AssignmentAggregateRoot : AggregateRoot<Guid>, IHasCreationTime, IO
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void SetComplete()
|
||||
{
|
||||
this.AssignmentState = AssignmentStateEnum.Completed;
|
||||
this.CompleteTime=DateTime.Now;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,11 @@ public class AssignmentDefineAggregateRoot: AggregateRoot<Guid>, IHasCreationTim
|
||||
/// </summary>
|
||||
public AssignmentTypeEnum AssignmentType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务需求类型
|
||||
/// </summary>
|
||||
public AssignmentRequirementTypeEnum AssignmentRequirementType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总共步骤数
|
||||
/// </summary>
|
||||
@@ -46,6 +51,6 @@ public class AssignmentDefineAggregateRoot: AggregateRoot<Guid>, IHasCreationTim
|
||||
/// </summary>
|
||||
public decimal RewardsMoneyNumber { get; set; }
|
||||
|
||||
public DateTime CreationTime { get; }
|
||||
public DateTime CreationTime{ get; set; }
|
||||
public int OrderNum { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user