DeviceManager/DeviceRepair.Models/Common/ServerApiResponse.cs
2024-05-28 22:36:38 +08:00

29 lines
692 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.

namespace DeviceRepair.Models.Common
{
public class ServerApiResponse
{
/// <summary>
/// API执行状态编码
/// 0API执行成功
/// -1 OR 其他API执行不成功
/// </summary>
public string Code { get; set; }
/// <summary>
/// API执行成功或者失败的消息
/// </summary>
public string Msg { get; set; }
public object Datas { get; set; }
/// <summary>
/// 获取API调用是否成功状态
/// </summary>
public bool IsSuccess
{
get
{
return Code.Equals("0");
}
}
}
}