ApiInfoSetRouterDto.cs 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using Model.Base;
  4. namespace Dto
  5. {
  6. /// <summary>
  7. /// 设置请求地址
  8. /// </summary>
  9. public class ApiInfoSetRouterDto
  10. {
  11. /// <summary>
  12. /// 接口主机头
  13. /// </summary>
  14. [Required(ErrorMessage = "接口主机头不能为空")]
  15. public string? apiHost { get; set; }
  16. /// <summary>
  17. /// 接口端口号
  18. /// </summary>
  19. [Required(ErrorMessage = "接口端口号不能为空")]
  20. public int apiPort { get; set; }
  21. /// <summary>
  22. /// 接口路由
  23. /// </summary>
  24. [Required(ErrorMessage = "接口路由不能为空")]
  25. public string? apiRouter { get; set; }
  26. /// <summary>
  27. /// ID
  28. /// </summary>
  29. public int id { get; set; }
  30. }
  31. }