26 lines
620 B
C#
26 lines
620 B
C#
using YLErp.BLL;
|
|
|
|
namespace YLErp.Modules.RiskEngine
|
|
{
|
|
/// <summary>
|
|
/// 风控上下文:封装一次风控检查所需的全部数据上下文
|
|
/// </summary>
|
|
public class RiskContext
|
|
{
|
|
/// <summary>
|
|
/// 当前交易ID
|
|
/// </summary>
|
|
public int TradeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 当前触发时点
|
|
/// </summary>
|
|
public string TriggerPoint { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据库上下文,供规则公式直接查询数据库
|
|
/// </summary>
|
|
public YLContext DbContext { get; set; }
|
|
}
|
|
}
|