using System.Collections.Generic; namespace YLErp.Modules.RiskEngine { /// /// 风控结果 /// public class RiskResult { /// /// 是否全部通过 /// public bool Passed { get; set; } = true; /// /// 是否被禁止 /// public bool Blocked { get; set; } /// /// 是否需要审批 /// public bool NeedApproval { get; set; } /// /// 是否存在提示 /// public bool ShowTip { get; set; } /// /// 错误信息 /// public string ErrorMessage { get; set; } /// /// 触发的规则列表 /// public List TriggeredRules { get; set; } = new List(); } /// /// 触发规则详情 /// public class TriggeredRuleInfo { public string RuleId { get; set; } public long? ApplicationId { get; set; } public string RuleName { get; set; } public RiskControlStrategy ControlStrategy { get; set; } public string RuleText { get; set; } public string Message { get; set; } } }