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.

55 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.Module.DjyServiceStatus
{
public class DjyResult
{
/// <summary>
/// 是否成功 true=成功 false=失败
/// </summary>
public bool success { get; set; } = false;
/// <summary>
/// 状态 0-成功
/// </summary>
public int code { get; set; } = 200;
/// <summary>
/// 返回消息
/// </summary>
public string message { get; set; }
/// <summary>
/// 返回数据
/// </summary>
public object data { get; set; }
/// <summary>
/// timestamp
/// </summary>
public long timestamp { get; set; }
/// <summary>
///
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public static DjyResult Failed(string message)
{
return new DjyResult()
{
success = false,
message = message
};
}
}
}