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.

32 lines
722 B
C#

12 months ago
namespace DS.Module.Core.Data;
/// <summary>
/// 操作结果类
/// </summary>
/// <typeparam name="TResultCode"></typeparam>
public interface IDataResult<TResultCode> : IDataResult<TResultCode, object>
{
}
/// <summary>
/// 操作结果类
/// </summary>
/// <typeparam name="TResultCode"></typeparam>
/// <typeparam name="TData"></typeparam>
public interface IDataResult<TResultCode, TData>
{
/// <summary>
/// 获取或设置结果类型
/// </summary>
TResultCode Code { get; set; }
/// <summary>
/// 获取或设置 返回消息
/// </summary>
string Message { get; set; }
/// <summary>
/// 获取或设置 结果数据
/// </summary>
TData Data { get; set; }
}