using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace IStation.Dto
{
///
/// 执行返回的通用类,该类带有详细的业务数据,除了告诉用户此次调用是否成功与否,以及一个表示提示信息的字符串外,还带的详细的业务数据
///
/// 业务数据的类型
public class ApiResult_Status : ApiResult
{
///
/// 业务数据
///
public T Data { get; set; }
///
/// 状态码
///
public int Status { get; set; }
///
/// 构造函数
///
public ApiResult_Status() { }
///
/// 构造函数
///
/// 状态
/// 业务数据
/// 状态标识
/// 提示信息
public ApiResult_Status(IStation.Dto.ApiResultCode type, int status, T data, string message)
: base(type, message)
{
this.Status = status;
this.Data = data;
}
///
///
///
///
///
///
public ApiResult_Status(T data, int status, string message)
: base(string.IsNullOrEmpty(message) ? IStation.Dto.ApiResultCode.Success : IStation.Dto.ApiResultCode.Error, message)
{
this.Status = status;
this.Data = data;
}
}
}