DepartmentDto.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using OASystem.Domain.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.Dtos.System
  9. {
  10. /// <summary>
  11. /// 查询dto
  12. /// </summary>
  13. public class DepartmentDto:DtoBase
  14. {
  15. /// <summary>
  16. /// 公司Id
  17. /// </summary>
  18. public int CompanyId { get; set; }
  19. }
  20. /// <summary>
  21. /// 添加dto
  22. /// </summary>
  23. public class AddDepartmentDto
  24. {
  25. /// <summary>
  26. /// 公司Id
  27. /// </summary>
  28. public int CompanyId { get; set; }
  29. /// <summary>
  30. /// 部门code
  31. /// </summary>
  32. public string DepCode { get; set; }
  33. /// <summary>
  34. /// 部门名称
  35. /// </summary>
  36. public string DepName { get; set; }
  37. /// <summary>
  38. /// 父级部门Id
  39. /// </summary>
  40. public int ParentDepId { get; set; }
  41. /// <summary>
  42. /// 创建者Id
  43. /// </summary>
  44. public int CreateUserId { get; set; }
  45. /// <summary>
  46. /// 备注
  47. /// </summary>
  48. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  49. public string Remark { get; set; }
  50. }
  51. /// <summary>
  52. /// 修改dto
  53. /// </summary>
  54. public class EditDepartmentDto
  55. {
  56. /// <summary>
  57. /// 部门Id
  58. /// </summary>
  59. public int Id { get; set; }
  60. /// <summary>
  61. /// 公司Id
  62. /// </summary>
  63. public int CompanyId { get; set; }
  64. /// <summary>
  65. /// 部门code
  66. /// </summary>
  67. public string DepCode { get; set; }
  68. /// <summary>
  69. /// 部门名称
  70. /// </summary>
  71. public string DepName { get; set; }
  72. /// <summary>
  73. /// 父级部门Id
  74. /// </summary>
  75. public int ParentDepId { get; set; }
  76. /// <summary>
  77. /// 备注
  78. /// </summary>
  79. public string Remark { get; set; }
  80. }
  81. public class DelDepartmentDto
  82. {
  83. public int Id { get; set; }
  84. }
  85. }