2026-01-28 15:13:56 +08:00

43 lines
962 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DOAN.Common
{
/// <summary>
/// 数据传输对象
/// </summary>
public class TData
{
/// <summary>
/// 操作结果Tag为1代表成功0代表失败其他的验证返回结果可根据需要设置
/// </summary>
public int Tag { get; set; } = 1;
/// <summary>
/// 提示信息或异常信息
/// </summary>
public string Message { get; set; }
/// <summary>
/// 扩展Message
/// </summary>
public string Description { get; set; }
}
public class TData<T> : TData
{
/// <summary>
/// 数据
/// </summary>
public T Data { get; set; }
/// <summary>
/// 列表的记录数
/// </summary>
public int Total { get; set; }
}
}