Social credit validation and recalculation

This commit is contained in:
2025-11-02 02:11:34 +08:00
parent 70fdc247e7
commit 5e5f4528b9
9 changed files with 2826 additions and 14 deletions

View File

@@ -4,12 +4,19 @@ using NodaTime.Serialization.Protobuf;
namespace DysonNetwork.Shared.Models;
public enum SocialCreditRecordStatus
{
Active,
Expired
}
public class SnSocialCreditRecord : ModelBase
{
public Guid Id { get; set; }
[MaxLength(1024)] public string ReasonType { get; set; } = string.Empty;
[MaxLength(1024)] public string Reason { get; set; } = string.Empty;
public double Delta { get; set; }
public SocialCreditRecordStatus Status { get; set; } = SocialCreditRecordStatus.Active;
public Instant? ExpiredAt { get; set; }
public Guid AccountId { get; set; }