wangxinhui
15 小时以前 67348f250a1b7970059698002949a5e0a5f3c52f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 = "", string code = "")
        {
            Success = false;
            Msg = msg ?? "失败";
            Code = code ?? "404";
            return this;
        }
    }
}