1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- 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; }
- }
- }
|