ApiInfoAddDto.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using Model.Base;
  4. namespace Dto
  5. {
  6. /// <summary>
  7. /// 添加
  8. /// </summary>
  9. public class ApiInfoAddDto
  10. {
  11. /// <summary>
  12. /// 分组
  13. /// </summary>
  14. public int groupId { get; set; }
  15. /// <summary>
  16. /// 接口名称
  17. /// </summary>
  18. [Required(ErrorMessage = "接口名称不能为空")]
  19. public string? apiName { get; set; }
  20. /// <summary>
  21. /// 接口关键字
  22. /// </summary>
  23. [Required(ErrorMessage = "接口关键字不能为空")]
  24. public string? apiKey { get; set; }
  25. /// <summary>
  26. /// 接口主机头
  27. /// </summary>
  28. [Required(ErrorMessage = "接口主机头不能为空")]
  29. public string? apiHost { get; set; }
  30. /// <summary>
  31. /// 接口端口号
  32. /// </summary>
  33. [Required(ErrorMessage = "接口端口号不能为空")]
  34. public int apiPort { get; set; }
  35. /// <summary>
  36. /// 接口路由
  37. /// </summary>
  38. [Required(ErrorMessage = "接口路由不能为空")]
  39. public string? apiRouter { get; set; }
  40. /// <summary>
  41. /// 接口请求方式
  42. /// </summary>
  43. public string? apiMethod { get; set; }
  44. }
  45. }