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
{
///
/// 查询dto
///
public class DepartmentDto:DtoBase
{
///
/// 公司Id
///
public int CompanyId { get; set; }
}
///
/// 添加dto
///
public class AddDepartmentDto
{
///
/// 公司Id
///
public int CompanyId { get; set; }
///
/// 部门code
///
public string DepCode { get; set; }
///
/// 部门名称
///
public string DepName { get; set; }
///
/// 父级部门Id
///
public int ParentDepId { get; set; }
///
/// 创建者Id
///
public int CreateUserId { get; set; }
///
/// 备注
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
public string Remark { get; set; }
}
///
/// 修改dto
///
public class EditDepartmentDto
{
///
/// 部门Id
///
public int Id { get; set; }
///
/// 公司Id
///
public int CompanyId { get; set; }
///
/// 部门code
///
public string DepCode { get; set; }
///
/// 部门名称
///
public string DepName { get; set; }
///
/// 父级部门Id
///
public int ParentDepId { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
public class DelDepartmentDto
{
public int Id { get; set; }
}
}