using OpenAuth.App.Response;
using OpenAuth.Repository.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.App.Request
{
    /// <summary>
    /// 接收人
    /// </summary>
    public class QueryDroneCaseRecipientUserReq : DroneMessage
    {
        public void Init()
        {
            if (this.recipientUserId == null) this.recipientUserId = new string[] { };
            if (this.roles == null) this.roles = new string[] { };
            if (this.orgs == null) this.orgs = new string[] { };
        }

        /// <summary>
        /// 是否发给全体用户
        /// </summary>
        public int? is_all { get; set; }

        /// <summary>
        /// 接收人名称
        /// </summary>
        public string[] recipientUserId { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public string[] roles { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public string[] orgs { get; set; }
    }
}
