| | | 1 | | using System.Collections.Generic; |
| | | 2 | | |
| | | 3 | | namespace CounterDrone.Core.Models |
| | | 4 | | { |
| | | 5 | | /// <summary>想定完整配置(聚合 5 步配置)</summary> |
| | | 6 | | public class TaskFullConfig |
| | | 7 | | { |
| | | 8 | | public SimTask Task { get; set; } = new(); |
| | | 9 | | public CombatScene Scene { get; set; } = new(); |
| | | 10 | | public List<ControlZone> ControlZones { get; set; } = new(); |
| | | 11 | | public List<TargetConfig> Targets { get; set; } = new(); |
| | | 12 | | public List<EquipmentDeployment> Equipment { get; set; } = new(); |
| | | 13 | | public CloudDispersal Cloud { get; set; } = new(); |
| | | 14 | | public RoutePlan Route { get; set; } = new(); |
| | | 15 | | public List<Waypoint> Waypoints { get; set; } = new(); |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | /// <summary>分页结果</summary> |
| | | 19 | | public class PagedResult<T> |
| | | 20 | | { |
| | 19 | 21 | | public List<T> Items { get; set; } = new(); |
| | 16 | 22 | | public int TotalCount { get; set; } |
| | 8 | 23 | | public int Page { get; set; } |
| | 10 | 24 | | public int PageSize { get; set; } |
| | 1 | 25 | | public int TotalPages => (TotalCount + PageSize - 1) / PageSize; |
| | | 26 | | } |
| | | 27 | | } |