服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
6 天以前 f8be4db0be9e9de5830dd41f7d156c368a1ea43f
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
 
namespace Tiger.Model.SeaStone.Shelf
{
    /// <summary>
    /// 智能料车状态实体
    /// </summary>
    public class RackStatus
    {
        public RackStatus()
        {
 
        }
 
        public RackStatus(int indicatorId, bool IndicatorBlink, int IndicatorStatus, string VoiceText, string UserId, string Timestamp, string SessionId, List<CellLightStatus> CellLightStatusList)
        {
            this.indicatorId = indicatorId;
            this.IndicatorBlink = IndicatorBlink;
            this.IndicatorStatus = IndicatorStatus;
            this.VoiceText = VoiceText;
            this.CellLightStatusList = CellLightStatusList;
            this.UserId = UserId;
            this.Timestamp = Timestamp;
            this.SessionId = SessionId;
        }
 
        /// <summary>
        /// 警示灯ID:-1:不控制警示灯;0:正面;1:反面;2:全部
        /// </summary>
        public int indicatorId { get; set; }
        /// <summary>
        /// 警示灯是否闪烁
        /// </summary>
        public bool IndicatorBlink { get; set; } = false;
        /// <summary>
        /// 警示灯状态:0-关,1-红,2-黄,3-红黄,4-绿,5-红绿,6-绿黄,7-红黄绿,8-蓝,16-白
        /// </summary>
        public int IndicatorStatus { get; set; }
        /// <summary>
        /// 发送语音内容
        /// </summary>
        public string VoiceText { get; set; }
        /// <summary>
        /// 发送语音内容
        /// </summary>
        public List<CellLightStatus> CellLightStatusList { get; set; }
        /// <summary>
        /// 操作用户ID
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 操作时间戳
        /// </summary>
        public string Timestamp { get; set; }
        /// <summary>
        /// 会话ID
        /// </summary>
        public string SessionId { get; set; }
 
 
        /// <summary>
        /// 储位灯状态类
        /// </summary>
        public class CellLightStatus
        {
            public CellLightStatus()
            {
 
            }
 
            public CellLightStatus(int LedId, int LightColor, bool IsBlink, int Stts, string ReelId)
            {
                this.LedId = LedId;
                this.LightColor = LightColor;
                this.IsBlink = IsBlink;
                this.Stts = Stts;
                this.ReelId = ReelId;
            }
 
            /// <summary>
            /// 储位灯序号
            /// </summary>
            public int LedId { get; set; }
            /// <summary>
            /// 储位灯颜色:0-熄灭,1-红,2-绿,3-黄,4-蓝,5-洋红,6青,7-白
            /// </summary>
            public int LightColor { get; set; }
            /// <summary>
            /// 发送语音内容
            /// </summary>
            public bool IsBlink { get; set; } = false;
            /// <summary>
            /// 料架面 0:正面(A面),1:反面(B面),2:全部
            /// </summary>
            public int side { get; set; }
            /// <summary>
            /// 储位灯状态:0:空,1:非空,2:预定状,3:已取料
            /// </summary>
            public int Stts { get; set; }
            /// <summary>
            /// 物料id(可选)
            /// </summary>
            public string ReelId { get; set; }
        }
 
        #region 枚举变量
        public enum LightColors
        {
            [Description("黑(熄灭)")]
            Black = 0,
            [Description("红")]
            Red = 1,
            [Description("绿")]
            Green = 2,
            [Description("黄")]
            Yellow = 3,
            [Description("蓝")]
            Blue = 4,
            [Description("洋红")]
            Magenta = 5,
            [Description("青")]
            Cyan = 6,
            [Description("白")]
            White = 7,
        }
        #endregion
    }
}