92 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using APT.BaseData.Domain.Enums;
 | 
						|
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using System.Text;
 | 
						|
using System.Threading.Tasks;
 | 
						|
 | 
						|
namespace APT.BaseData.Domain.ApiModel.EX
 | 
						|
{
 | 
						|
    public class NotificationBase
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// FMNotificationShowTypeEnum
 | 
						|
        /// </summary>
 | 
						|
        public int ShowInfoType { get; set; }
 | 
						|
 | 
						|
        public string Title { get; set; }
 | 
						|
 | 
						|
        public string Message { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        /// FMNotificationTypeEnum
 | 
						|
        /// </summary>
 | 
						|
        public int NotificatoinType { get; set; }
 | 
						|
    }
 | 
						|
 | 
						|
    public class SendNotificationModel : NotificationBase
 | 
						|
    {
 | 
						|
        public SendNotificationModel()
 | 
						|
        {
 | 
						|
            this.ClientType = (int)FMNotificationClientTypeEnum.默认;
 | 
						|
        }
 | 
						|
 | 
						|
        public Guid? UserId { get; set; }
 | 
						|
 | 
						|
 | 
						|
        public Guid? OrgId { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// FMNotificationOrgTypeEnum
 | 
						|
        /// </summary>
 | 
						|
        public int CheckOrgType { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// FMNotificationClientTypeEnum
 | 
						|
        /// </summary>
 | 
						|
        public int ClientType { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 报警通知ID
 | 
						|
        /// </summary>
 | 
						|
        public Guid? AlarmId { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 用户组
 | 
						|
        /// </summary>
 | 
						|
        public List<Guid> UserIds { get; set; }
 | 
						|
    }
 | 
						|
 | 
						|
 | 
						|
    public class NotificationModel : NotificationBase
 | 
						|
    {
 | 
						|
        public Guid? NotificationId { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 发布人
 | 
						|
        /// </summary>
 | 
						|
        public Guid? UserId { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        /// 发布人
 | 
						|
        /// </summary>
 | 
						|
        public string UserName { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 发布时间
 | 
						|
        /// </summary>
 | 
						|
        public DateTime? Time { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 是否已经查看
 | 
						|
        /// </summary>
 | 
						|
        public bool IsAccepted { get; set; }
 | 
						|
    }
 | 
						|
 | 
						|
    public class AlarmNotificationModel
 | 
						|
    {
 | 
						|
        public Guid? AlarmId { get; set; }
 | 
						|
        public int TotalCount { get; set; }
 | 
						|
 | 
						|
        public string Message { get; set; }
 | 
						|
    }
 | 
						|
}
 |