using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace wcftest.Model
{
///
/// 方法返回实体
///
public class FunRetEntity
{
///
/// 方法返回结果
///
public bool result { get; set; }
///
/// 方法返回消息
///
public string resMsg { get; set; }
public object resData { get; set; }
///
/// 返回成功
///
///
///
public static FunRetEntity Success(string _resMsg, object _resData = null)
{
return new FunRetEntity()
{
result = true,
resMsg = _resMsg,
resData = _resData
};
}
///
/// 返回失败
///
///
///
public static FunRetEntity Fail(string _resMsg, object _resData = null)
{
return new FunRetEntity()
{
result = false,
resMsg = _resMsg,
resData = _resData
};
}
}
}