mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 08:31:14 +00:00
d2d9f6352b
Move 5 cross-component DTOs (GetSatelliteTilesResponse, SatelliteTile, SaveResult, DownloadTileResponse, RequestRegionRequest) to SatelliteProvider.Common/DTO/. Keep UploadImageRequest in the API project under SatelliteProvider.Api.DTOs (IFormFile depends on Microsoft.AspNetCore.Http; pulling it into Common would force an ASP.NET framework reference into the foundation layer and break the module-layout "Common: Imports from: (none)" invariant). Move ParameterDescriptionFilter to SatelliteProvider.Api.Swagger. Program.cs shrinks from 366 to 257 lines and now contains only endpoint wiring (AC-1). JSON wire shape and Swagger schema names are preserved (AC-2). 84 unit + full integration suite green (AC-3). Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
579 B
C#
31 lines
579 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace SatelliteProvider.Api.DTOs;
|
|
|
|
public record UploadImageRequest
|
|
{
|
|
[Required]
|
|
public DateTime Timestamp { get; set; }
|
|
|
|
[Required]
|
|
public IFormFile? Image { get; set; }
|
|
|
|
[Required]
|
|
public double Lat { get; set; }
|
|
|
|
[Required]
|
|
public double Lon { get; set; }
|
|
|
|
[Required]
|
|
public double Height { get; set; }
|
|
|
|
[Required]
|
|
public double FocalLength { get; set; }
|
|
|
|
[Required]
|
|
public double SensorWidth { get; set; }
|
|
|
|
[Required]
|
|
public double SensorHeight { get; set; }
|
|
}
|