using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace WIDESEAWCS_DTO.Agv
|
{
|
/// <summary>
|
/// 返回参数
|
/// </summary>
|
public class AgvResponse
|
{
|
/// <summary>
|
/// 成功True 失败False
|
/// </summary>
|
public bool Success { get; set; }
|
/// <summary>
|
/// 返回信息
|
/// </summary>
|
public string Msg { get; set; }
|
/// <summary>
|
/// 返回码
|
/// </summary>
|
public string Code { get; set; }
|
public AgvResponse()
|
{
|
|
}
|
public AgvResponse OK(string msg="",string code = "")
|
{
|
Success = true;
|
Msg = msg ?? "成功";
|
Code = code ?? "0";
|
return this;
|
}
|
public AgvResponse Error(string msg = "")
|
{
|
Success = false;
|
Msg = msg ?? "失败";
|
Code = "404";
|
return this;
|
}
|
}
|
}
|