TelGroupDto.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using Hotline.Share.Enums.CallCenter;
  2. using Hotline.Share.Requests;
  3. using XF.Utility.EnumExtensions;
  4. namespace Hotline.Share.Dtos.CallCenter
  5. {
  6. public record TelGroupDto : UpdateTelGroupDto
  7. {
  8. public DateTime CreationTime { get; set; }
  9. public string DistributionText => Distribution.GetDescription();
  10. public IReadOnlyList<TelDto> Tels { get; set; }
  11. }
  12. public record AddTelGroupDto
  13. {
  14. /// <summary>
  15. /// 分机组编号(讯时设备的groupId,1-50不可重复)
  16. /// </summary>
  17. public string No { get; set; }
  18. /// <summary>
  19. /// 分机组名称
  20. /// </summary>
  21. public string Name { get; set; }
  22. /// <summary>
  23. /// 备注
  24. /// </summary>
  25. public string? Remark { get; set; }
  26. /// <summary>
  27. /// 呼叫分配方式
  28. /// </summary>
  29. public EDistribution Distribution { get; set; }
  30. /// <summary>
  31. /// 语音
  32. /// </summary>
  33. public string? Voice { get; set; }
  34. /// <summary>
  35. /// 不开启IVR时默认接入的分组
  36. /// </summary>
  37. public bool IsDefault { get; set; }
  38. /// <summary>
  39. /// 组内分机号
  40. /// </summary>
  41. public ICollection<string> TelNos { get; set; }
  42. }
  43. public record UpdateTelGroupDto : AddTelGroupDto
  44. {
  45. public string Id { get; set; }
  46. }
  47. public record class QueryTelListDto : PagedRequest
  48. {
  49. }
  50. public record class TelListPageDto
  51. {
  52. public string Id { get; set; }
  53. public string TelNo { get; set; }
  54. public string GroupName { get; set; }
  55. public int GroupId { get; set; }
  56. public string ZuoGroupName { get; set; }
  57. }
  58. public record AddWexTelGroupDto
  59. {
  60. public string TelNo { get; set; }
  61. public int GroupId { get; set; }
  62. public string GroupName { get; set; }
  63. public string ZuoGroupName { get; set; }
  64. }
  65. public record UpdateWexTelGroupDto:AddWexTelGroupDto
  66. {
  67. public string Id { get; set; }
  68. }
  69. public record WexTelGroupDto
  70. {
  71. public int GroupId { get; set; }
  72. public string GroupName { get; set; }
  73. public string ZuoGroupName { get; set; }
  74. }
  75. }