MapResourceDto.cs
2.73 KB
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
using System;
using System.Collections.Generic;
using Rcs.Domain.Entities;
using Rcs.Domain.Enums;
namespace Rcs.Application.DTOs
{
public class MapResourceDto
{
public string? ResourceId { get; set; }
/// <summary>
/// 地图ID(外键)
/// </summary>
public string? MapId { get; set; }
/// <summary>
/// 资源编码
/// </summary>
public string? ResourceCode { get; set; }
public string? ResourceName { get; set; }
/// <summary>
/// 资源类型(枚举转字符串)
/// </summary>
public int Type { get; set; }
/// <summary>
/// 区域内车容量
/// </summary>
public int? Capacity { get; set; } = 1;
/// <summary>
/// 资源位置坐标(多边形顶点列表)
/// @author zzy
/// </summary>
public List<Point>? LocationCoordinates { get; set; }
public DateTime? CreatedAt { get; set; }
public bool Active { get; set; }
/// <summary>
/// 最大速度
/// @author zzy
/// </summary>
public double MaxSpeed { get; set; } = 2;
/// <summary>
/// 能否旋转
/// @author zzy
/// </summary>
public bool CanRotate { get; set; } = true;
/// <summary>
/// 前置动作类型1(进入资源前)
/// @author zzy
/// </summary>
public int? PreAction1Type { get; set; }
/// <summary>
/// 前置网络动作集合1(进入资源前)
/// @author zzy
/// </summary>
public List<string>? PreNetActions1 { get; set; }
/// <summary>
/// 后置动作类型1(进入资源后)
/// @author zzy
/// </summary>
public int? PostAction1Type { get; set; }
/// <summary>
/// 后置网络动作集合1(进入资源后)
/// @author zzy
/// </summary>
public List<string>? PostNetActions1 { get; set; }
/// <summary>
/// 前置动作类型2(离开资源前)
/// @author zzy
/// </summary>
public int? PreAction2Type { get; set; }
/// <summary>
/// 前置网络动作集合2(离开资源前)
/// @author zzy
/// </summary>
public List<string>? PreNetActions2 { get; set; }
/// <summary>
/// 后置动作类型2(离开资源后)
/// @author zzy
/// </summary>
public int? PostAction2Type { get; set; }
/// <summary>
/// 后置网络动作集合2(离开资源后)
/// @author zzy
/// </summary>
public List<string>? PostNetActions2 { get; set; }
}
}