using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
public class OperateResult
{
///
/// 实例化一个默认的结果对象
///
public OperateResult()
{
}
///
/// 使用指定的消息实例化一个默认的结果对象
///
/// 错误消息
public OperateResult(string msg)
{
this.Message = msg;
}
///
/// 使用错误代码,消息文本来实例化对象
///
/// 错误代码
/// 错误消息
public OperateResult(int err, string msg)
{
this.ErrorCode = err;
this.Message = msg;
}
///
/// 指示本次访问是否成功
///
public bool IsSuccess
{
get;
set;
} = false;
///
/// 具体的错误描述
///
public string Message
{
get;
set;
} = "";
///
/// 具体的错误代码
///
public int ErrorCode
{
get;
set;
} = 10000;
}