using Hotline.Share.Enums.CallCenter; using Hotline.Share.Requests; using XF.Utility.EnumExtensions; namespace Hotline.Share.Dtos.CallCenter { public record TelGroupDto : UpdateTelGroupDto { public DateTime CreationTime { get; set; } public string DistributionText => Distribution.GetDescription(); public IReadOnlyList Tels { get; set; } } public record AddTelGroupDto { /// /// 分机组编号(讯时设备的groupId,1-50不可重复) /// public string No { get; set; } /// /// 分机组名称 /// public string Name { get; set; } /// /// 备注 /// public string? Remark { get; set; } /// /// 呼叫分配方式 /// public EDistribution Distribution { get; set; } /// /// 语音 /// public string? Voice { get; set; } /// /// 不开启IVR时默认接入的分组 /// public bool IsDefault { get; set; } /// /// 组内分机号 /// public ICollection TelNos { get; set; } } public record UpdateTelGroupDto : AddTelGroupDto { public string Id { get; set; } } public record class QueryTelListDto : PagedRequest { public string TelNo { get; set; } } public record class TelListPageDto { public string Id { get; set; } public string TelNo { get; set; } public string GroupName { get; set; } public int GroupId { get; set; } public string ZuoGroupName { get; set; } } public record AddOrUpdateTelGroupDto { public string Id { get; set; } public string TelNo { get; set; } public int GroupId { get; set; } public string GroupName { get; set; } public string ZuoGroupName { get; set; } } public record WexTelGroupDto { public int GroupId { get; set; } public string GroupName { get; set; } public string ZuoGroupName { get; set; } } }