MapResourceDto.cs 2.73 KB
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; }
    }
}