25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

51 satır
1.3 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using JT808.DotNetty.Dtos;
  6. using Microsoft.AspNetCore.Mvc;
  7. namespace JT808.DotNetty.Dashbord.Controllers
  8. {
  9. /// <summary>
  10. /// 转发管理
  11. /// </summary>
  12. [Route("jt808webapi/Transmit")]
  13. [ApiController]
  14. public class JT808TransmitController : ControllerBase
  15. {
  16. /// <summary>
  17. /// 添加地址
  18. /// </summary>
  19. /// <param name="jT808IPAddressDto"></param>
  20. /// <returns></returns>
  21. [HttpPost]
  22. public ActionResult<bool> Add([FromBody]JT808IPAddressDto jT808IPAddressDto)
  23. {
  24. return true;
  25. }
  26. /// <summary>
  27. /// 删除地址
  28. /// </summary>
  29. /// <param name="jT808IPAddressDto"></param>
  30. /// <returns></returns>
  31. [HttpPost]
  32. public ActionResult<bool> Remove([FromBody]JT808IPAddressDto jT808IPAddressDto)
  33. {
  34. return true;
  35. }
  36. /// <summary>
  37. /// 获取转发IP地址集合
  38. /// </summary>
  39. /// <param name="jT808IPAddressDto"></param>
  40. /// <returns></returns>
  41. [HttpGet]
  42. public ActionResult<List<string>> GetAll()
  43. {
  44. return new List<string>() { "127.0.0.1:80", "127.0.0.1:81" };
  45. }
  46. }
  47. }