DtoBase.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using Microsoft.AspNetCore.Http;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Dtos
  8. {
  9. /// <summary>
  10. /// 请求实体类 基类
  11. /// </summary>
  12. public class DtoBase: PortDtoBase
  13. {
  14. public int PageIndex { get; set; } = 1;
  15. public int PageSize { get; set; } = 10;
  16. }
  17. /// <summary>
  18. /// 请求实体类
  19. /// 端口
  20. /// 基类
  21. /// </summary>
  22. public class PortDtoBase
  23. {
  24. /// <summary>
  25. /// 请求端口分类
  26. /// 1 Web 2 Android 3 IOS
  27. /// </summary>
  28. public int PortType { get; set; } = 1;
  29. }
  30. public class JsonDtoBase
  31. {
  32. public string Paras { get; set; }
  33. }
  34. /// <summary>
  35. /// 删除参数
  36. /// </summary>
  37. public class DelBaseDto:PortDtoBase
  38. {
  39. /// <summary>
  40. /// 删除的数据Id
  41. /// </summary>
  42. public int Id { get; set; }
  43. /// <summary>
  44. /// 删除者Id
  45. /// </summary>
  46. public int DeleteUserId { get; set; }
  47. }
  48. public class OpBaseDto
  49. {
  50. /// <summary>
  51. /// 操作状态
  52. /// 1 添加
  53. /// 2 修改
  54. /// </summary>
  55. public int Status { get; set; }
  56. /// <summary>
  57. /// 编号
  58. /// </summary>
  59. public int Id { get; set; }
  60. /// <summary>
  61. /// 创建者Id
  62. /// </summary>
  63. public int CreateUserId { get; set; }
  64. /// <summary>
  65. /// 备注
  66. /// </summary>
  67. public string Remark { get; set; }
  68. }
  69. public class AskDataProvinceFileDto {
  70. public int[] DataIdItem { get; set; }
  71. public int DiId { get; set; }
  72. }
  73. /// <summary>
  74. /// 员工页面操作功能权限
  75. /// </summary>
  76. public class UserPageFuncDtoBase : PortDtoBase
  77. {
  78. /// <summary>
  79. /// 用户Id
  80. /// </summary>
  81. public int UserId { get; set; }
  82. /// <summary>
  83. /// 页面Id
  84. /// </summary>
  85. public int PageId { get; set; }
  86. }
  87. }