using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using XdCxRhDW.Dto.Attribute; namespace XdCxRhDW.Dto { /// /// 变采样请求参数模型 /// public class ResampleRequestDto { /// /// 原始文件上传后返回的名称 /// [FileMustExist] public string File { get; set; } /// /// 原始文件采样率(Hz) /// [RangeInt(0, 100000000)] public int FsHz { get; set; } /// /// 变采样后的采样率(Hz) /// [RangeInt(0, 100000000)] public int OutFsHz { get; set; } = 96000; /// /// 超时时间(单位秒,默认120秒) /// [RangeInt(10, 600, IncludeMin = true)] public int TimeoutSeconds { get; set; } = 120; } /// /// 变采样响应结果模型 /// public class ResampleResponseDto { /// /// 变采样后的名称,通过http://{ip}:{port}/wwwroot/{File}可以获取该文件 /// public string File { get; set; } /// /// 变采样后文件的采样率(Hz) /// public int OutFsHz { get; set; } } }