You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
3.0 KiB
C#
115 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DS.Module.DjyRulesEngine
|
|
{
|
|
/// <summary>
|
|
/// 请求结果
|
|
/// </summary>
|
|
public class RuleEngineResult
|
|
{
|
|
/// <summary>
|
|
/// 是否成功 true=成功 false=失败
|
|
/// </summary>
|
|
public string Succ { get; set; }
|
|
/// <summary>
|
|
/// 状态 0-成功
|
|
/// </summary>
|
|
public int Status { get; set; }
|
|
/// <summary>
|
|
/// 返回消息
|
|
/// </summary>
|
|
public string Msg { get; set; }
|
|
/// <summary>
|
|
/// 总记录数
|
|
/// </summary>
|
|
public int Total { get; set; }
|
|
/// <summary>
|
|
/// 当前页列表数据
|
|
/// </summary>
|
|
public string Rows { get; set; }
|
|
/// <summary>
|
|
/// 合计信息
|
|
/// </summary>
|
|
public string Summary { get; set; }
|
|
/// <summary>
|
|
/// 回执详情
|
|
/// </summary>
|
|
public Extra Extra { get; set; }
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string extra2 { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <returns></returns>
|
|
public static RuleEngineResult Failed(string message)
|
|
{
|
|
return new RuleEngineResult()
|
|
{
|
|
Succ = "false",
|
|
Msg = message
|
|
};
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 请求结果 extra详情
|
|
/// </summary>
|
|
public class Extra
|
|
{
|
|
/// <summary>
|
|
/// 是否成功 true=成功 false=失败
|
|
/// </summary>
|
|
public string IsSuccess { get; set; }
|
|
/// <summary>
|
|
/// 请求报文HEAD的GID
|
|
/// </summary>
|
|
public string RequestId { get; set; }
|
|
/// <summary>
|
|
/// 执行时间
|
|
/// </summary>
|
|
public string ExcuteDate { get; set; }
|
|
/// <summary>
|
|
/// 规则详情
|
|
/// </summary>
|
|
public List<DetailListItem> DetailList { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 请求结果 detailList详情
|
|
/// </summary>
|
|
public class DetailListItem
|
|
{
|
|
/// <summary>
|
|
/// 当前规则是否校验成功 true=成功 false=失败
|
|
/// </summary>
|
|
public string IsSuccess { get; set; }
|
|
/// <summary>
|
|
/// 返回代码
|
|
/// </summary>
|
|
public string ResultCode { get; set; }
|
|
/// <summary>
|
|
/// [返回校验说明
|
|
/// </summary>
|
|
public string ResultName { get; set; }
|
|
/// <summary>
|
|
/// 规则提醒类型
|
|
/// </summary>
|
|
public string ErrorType { get; set; }
|
|
/// <summary>
|
|
/// 规则名称
|
|
/// </summary>
|
|
public string RuleName { get; set; }
|
|
/// <summary>
|
|
/// 规则集名称
|
|
/// </summary>
|
|
public string WfName { get; set; }
|
|
}
|
|
}
|