using OASystem.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OASystem.Domain.Dtos.System
{
    /// <summary>
    /// 查询dto
    /// </summary>
    public class DepartmentDto:DtoBase
    {
        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }
    }
    /// <summary>
    /// 添加dto
    /// </summary>
    public class AddDepartmentDto
    {
        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }
        /// <summary>
        /// 部门code
        /// </summary>
        public string DepCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepName { get; set; }
        /// <summary>
        /// 父级部门Id
        /// </summary>
        public int ParentDepId { get; set; }

        /// <summary>
        /// 创建者Id
        /// </summary>
        public int CreateUserId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
        public string Remark { get; set; }
       
    }

    /// <summary>
    /// 修改dto
    /// </summary>
    public class EditDepartmentDto
    {
        /// <summary>
        /// 部门Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }
        /// <summary>
        /// 部门code
        /// </summary>
        public string DepCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepName { get; set; }
        /// <summary>
        /// 父级部门Id
        /// </summary>
        public int ParentDepId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

    }

    public class DelDepartmentDto
    {
        public int Id { get; set; }
    }
}
