namespace MyHomePage.Api.Models.Dtos;
/// 360 壁纸分类(P34)
public class WallpaperCategoryDto
{
/// 分类 ID(字符串,例:"36")
public string Id { get; set; } = string.Empty;
/// 分类名(中文,例:"4K专区")
public string Name { get; set; } = string.Empty;
/// 排序权重(P34.1 主人反馈:360 接口真实数据有此字段,降序展示)
public int OrderNum { get; set; }
}
/// 随机壁纸返回结果(P34)
public class WallpaperRandomDto
{
/// 最终 URL(命中 360 预设分辨率的 img_* 字段,或兜底 RewriteUrl 自构)
public string Url { get; set; } = string.Empty;
/// 360 接口原始 url(bdr/__85 画质低的版本,调试用)
public string OriginalUrl { get; set; } = string.Empty;
/// 请求的视口宽度(px)
public int Width { get; set; }
/// 请求的视口高度(px)
public int Height { get; set; }
/// 命中的 360 预设分辨率(形如 "1600x900");未命中为 null(走 RewriteUrl 兜底)
public string? Preset { get; set; }
/// 是否走 RewriteUrl 兜底(true = preset 没命中)
public bool UsedFallback { get; set; }
}