using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hg.Core.Domain.Dto { internal class AICallTaskConfig { /// /// 订单外呼起始时间 /// public DateTime StartTime { get; set; } = DateTime.Parse("2021-12-01"); /// /// 仅呼叫近几天支付的订单 /// public int CallDay { get; set; } = 7; public List ReCallStatus { get; set; } /// /// //优先级别1-紧急 2-优先 /// public string Priority { get; set; } = "2"; /// /// 最小订单金额 /// public decimal MinAmount { get; set; } = 1m; public List ReCallMins { get; set; } /// /// 同人检查时间,分钟 /// public int SameUserCheckTimeSpanMin { get; set; } = 1; /// /// 呼叫忽略配置 /// public List IgnoreHitConfigs { get; set; } = new List(); /// /// 呼叫话术 /// public ProposProductConfig proposProductConfig { get; set; } = new ProposProductConfig(); /// /// 是否发短信1:发, 0:不发 /// public int Sms { get; set; } /// /// 发短信多久后外呼,分钟 /// public int SmsExprieMinCall { get; set; } = 1; public string Robot { get; set; } public string CallNo { get; set; } public string AppId { get; set; } public string RobotName { get; set; } public string Remark { get; set; } /// /// 允许外拨时间段 /// public string HgrecordStime { get; set; } /// /// 允许外拨时间段 /// public string HgrecordEtime { get; set; } /// /// 白名单 /// public List WhiteList { get; set; } = new List(); } public class HitConfig { /// /// key /// public string HitKey { get; set; } = "Channel"; /// /// 包含 /// public List Contain { get; set; } /// /// 不包含 /// public List NoContain { get; set; } } /// /// Channel 为范围,|连接,左右包含,如1000|2000 /// public enum HitKey { Channel, Subproductid, Resid } /// /// 渠道范围 /// public class ChannelItem { public int Min { get; set; } public int Max { get; set; } } /// /// 话术模板配置 /// public class ProposProductConfig { /// /// 单个订单配置 /// public string OneTemplate { get; set; } = "请问您购买的产品是@Subproductname,购买期限是【#OpenDays】天@GiftExp,您本次支付的订单金额是【#Arrivalpay】元,对吗?"; /// /// 多个订单配置 /// public string MultipleTemplate { get; set; } = "请问您购买的产品是@Subproductname,其中@PayExp,您本次支付的订单金额是【#Arrivalpay】元,对吗?"; /// /// 产品名称配置 /// public string Subproductname { get; set; } = "【#Subproductname】"; /// /// 支付信息配置 /// public string PayExp { get; set; } = "@Subproductname购买期限是【#OpenDays】天@GiftExp"; /// /// 过期时间配置 /// public string GiftExp { get; set; } = ",赠送期限是【#OpenDays】天,"; } public class AiStatus { public string Text { get; set; } public int Value { get; set; } } }