feat: 完成第三方利息汇率对接

This commit is contained in:
陈淳
2024-03-15 19:12:54 +08:00
parent e989313b0d
commit 822febba2e
6 changed files with 201 additions and 17 deletions

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Rbac.Domain.Shared.Dtos
{
/// <summary>
/// 当前银行记录
/// </summary>
public class BankInterestRecordDto
{
public DateTime CreationTime { get; set; }
/// <summary>
/// 第三方的比较值
/// </summary>
public decimal ComparisonValue { get; set; }
/// <summary>
/// 当前汇率值
/// </summary>
public decimal Value { get; set; }
/// <summary>
/// 判断时间是否过期
/// </summary>
/// <returns></returns>
public bool IsExpire()
{
return (DateTime.Now-CreationTime).TotalHours >= 1;
}
}
}