//DPBMARK_FILE MP using Senparc.Weixin.Entities.TemplateMessage; using Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage; namespace Znyc.Recruitment.Admin.WeChat.CommonService.TemplateMessage { /// /// 订阅岗位提醒 /// public class WeixinTemplate_Subscription : TemplateMessageBase { private const string TEMPLATE_ID = "h-rFy4M52_DhSCo-sL-l77632U8zkdswppyAJMIUrlk"; //每个公众号都不同,需要根据实际情况修改 public WeixinTemplate_Subscription(string _first, string company, string jobName, string address, string salary, string _remark, string url = null, string templateId = TEMPLATE_ID) : base(templateId, url, "订阅成功通知") { first = new TemplateDataItem(_first); keyword1 = new TemplateDataItem(company); keyword2 = new TemplateDataItem(jobName); keyword3 = new TemplateDataItem(address); keyword4 = new TemplateDataItem(salary); remark = new TemplateDataItem(_remark); } public TemplateDataItem first { get; set; } public TemplateDataItem keyword1 { get; set; } public TemplateDataItem keyword2 { get; set; } public TemplateDataItem keyword3 { get; set; } public TemplateDataItem keyword4 { get; set; } public TemplateDataItem remark { get; set; } } }