123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace XYY.Api.WarningNotice.WarningNoticeService
- {
- /// <summary>
- /// 警告通知对象
- /// </summary>
- public class WarningNoticeTarget
- {
- /// <summary>
- /// 对象名
- /// </summary>
- public string TargetName
- {
- get; set;
- }
- /// <summary>
- /// 服务类型
- /// </summary>
- public string ServiceType
- {
- get; set;
- }
- }
- public class Appendix
- {
- public string Url
- {
- get; set;
- }
- public string Title
- {
- get; set;
- }
- }
- public class TextMessageNoticeTarget : WarningNoticeTarget
- {
- public string Content
- {
- get; set;
- }
- public string FileName
- {
- get; set;
- }
- public string FileStringBase64
- {
- get; set;
- }
- public string[] UserId
- {
- get; set;
- }
- public string[] CustomerId
- {
- get; set;
- }
- public string[] Phones
- {
- get; set;
- }
- public string Hook
- {
- get; set;
- }
- }
- public class LinkMessageNoticeTarget : WarningNoticeTarget
- {
- public string Link { get; set; }
- public string PicUrl { get; set; }
- public string Title { get; set; }
- public string Text { get; set; }
- public bool ToAllUser { get; set; }
- public List<string> UserIds { get; set; }
- }
- public class ActionCardNoticeTarget : WarningNoticeTarget
- {
- /// <summary>
- /// 按钮布局,0是竖向,1是横向
- /// </summary>
- public string ButtonOrient { get; set; }
- public List<ActionCardButton> Buttons { get; set; }
- public string Text { get; set; }
- public string Title { get; set; }
- public bool ToAllUser { get; set; }
- public List<int> UserIds { get; set; }
- }
- public class ActionCardButton
- {
- public string Text { get; set; }
- public string Link { get; set; }
- }
- }
|