服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
78 分钟以前 dc1e5cd2c50bdcd712b5f95b2170bf7d421db4f0
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Tiger.Model.Minsun
{
    public class ShelfApiDto
    {
    }
 
    public class ShelfOperateOutput
    {
        public string IsSuccess { get; set; }
        public string ShelfNo { get; set; }
        // 操作类型
        public string OperateType { get; set; }
        // 货架位置
        public string LedAddr { get; set; }
        // 库位代码
        public string LocationCode { get; set; }
        // PDA ID
        public string PdaId { get; set; }
        // 唯一编码
        public string UniqueNumber { get; set; }
        // 消息
        public string Message { get; set; }
    }
 
    // 货架操作传入对象
    public class ShelfOperateInput
    {
        // 货架编号
        public string ShelfNo { get; set; }
        public string LocationCode { get; set; }
        // 灯位地址
        public string LedAddr { get; set; }
        // 操作类型
        public string OperateType { get; set; }
        // PDA ID
        public string PdaId { get; set; }
        // 仅下架(3)指令有效,一般默认 30 秒,根据最后操作时间自动延长
        public int KeepSeconds { get; set; }
        // 唯一编码
        public string UniqueNumber { get; set; }
    }
 
 
 
    #region 货架 API 返回结果实体类
 
    // 亮灯返回结果
    public class ShelfApiResult
    {
        public string LightType { get; set; }
        public string IsSuccess { get; set; }
        public string ItemCode { get; set; }
        public string ResultValue { get; set; }
        public string Type { get; set; }
    }
    // 货架亮灯颜色
    public enum ShelfLightColor
    {
        [Description("红色")]
        Red = 1,
        [Description("绿色")]
        Green = 2,
        [Description("蓝色")]
        Blue = 3,
        [Description("黄色")]
        Yellow = 4,
        [Description("紫色")]
        Purple = 5,
        [Description("靛蓝")]
        Indigo = 6,
        [Description("白色")]
        White = 7,
    }
 
    // 货架亮灯传入参数
    public class ShelfLightParam
    {
        // 货架编号
        public string ShelfNo { get; set; }
        // 库位编号
        public string LocationCode { get; set; }
        // 单一货架位置 ledaddr
        public string LedAddr { get; set; }
        // 多货架位置
        public string[] LedAddrList { get; set; }
        // 亮灯颜色
        public string LightColor { get; set; }
        // 是否覆盖
        public string IsCover { get; set; }
        // 操作类型
        public string OperateType { get; set; }
        // 灯塔开关操作(开: 1,关: 0)
        public int OperEnum { get; set; }
    }
    #endregion
}