
using Hotline.Share.Dtos.Users;
using Hotline.Share.Requests;

namespace Hotline.Share.Dtos.Schedulings
{
    public class SchedulingUserDto : UserBaseDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public UserDto User { get; set; }
    }
    public class UserAddDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
    }
    public class UserUpdateDto : UserAddDto
    {
        public string Id { get; set; }
    }

    public class UserDeleteDto
    {
        public List<string> Ids { get; set; }
    }
    public class UserBaseDto
    {
        public DateTime? LastModificationTime { get; set; }

        public bool IsDeleted { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeletionTime { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        public string Id { get; set; }

        /// <summary>
        /// 组织Id
        /// </summary>
        public string? CreatorOrgId { get; set; }


        public string? CreatorOrgName { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatorId { get; set; }

        public string? CreatorName { get; set; }
    }

    public record UserListDto : PagedKeywordRequest
    {

    }

    public class SchedulingStatisticsDto
    {
        public string? Date { get; set; }

        public string? UserName { get; set; }

        public int Count { get; set; }
    }


}
