You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
738 B
33 lines
738 B
2 years ago
|
using System.Text.Json.Serialization;
|
||
|
|
||
|
namespace Znyc.CloudCar.Model.ViewModels.ReportsCallBack
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 响应数据输出接口
|
||
|
/// </summary>
|
||
|
public interface IResponseOutput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 是否成功
|
||
|
/// </summary>
|
||
|
[JsonIgnore]
|
||
|
bool Successed { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 消息
|
||
|
/// </summary>
|
||
|
public string Msg { get; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 响应数据输出泛型接口
|
||
|
/// </summary>
|
||
|
/// <typeparam name="T"></typeparam>
|
||
|
public interface IResponseOutput<T> : IResponseOutput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 返回数据
|
||
|
/// </summary>
|
||
|
T Data { get; }
|
||
|
}
|
||
|
}
|