namespace WorkCameraExport.Models { /// /// 迁移查询请求 /// public class MigrationQuery { public int PageNum { get; set; } = 1; public int PageSize { get; set; } = 50; public DateTime? StartDate { get; set; } public DateTime? EndDate { get; set; } /// /// 迁移状态 (0-未迁移 1-已迁移 2-失败) /// public int? Status { get; set; } } /// /// 迁移记录响应 /// public class MigrationRecordDto { public int Id { get; set; } public DateTime? RecordTime { get; set; } public string DeptName { get; set; } = ""; public string Content { get; set; } = ""; public int ImageCount { get; set; } public List Images { get; set; } = new(); public int MigrationStatus { get; set; } } /// /// 迁移图片信息 /// public class MigrationImageDto { public int Id { get; set; } public string Url { get; set; } = ""; public bool IsMigrated { get; set; } } /// /// 迁移URL更新请求 /// public class MigrationUpdateRequest { public int RecordId { get; set; } public List ImageUrls { get; set; } = new(); } /// /// URL映射对 /// public class MigrationUrlPair { public string OldUrl { get; set; } = ""; public string NewUrl { get; set; } = ""; } /// /// COS 临时密钥响应 /// public class CosTempCredentials { public string TmpSecretId { get; set; } = ""; public string TmpSecretKey { get; set; } = ""; public string SessionToken { get; set; } = ""; public long ExpiredTime { get; set; } public string Region { get; set; } = ""; public string Bucket { get; set; } = ""; } }