Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

32 wiersze
861 B

  1. using JT808.Gateway.Abstractions.Dtos;
  2. using JT808.Gateway.Services;
  3. using JT808.Gateway.Session;
  4. using Microsoft.AspNetCore.Mvc;
  5. namespace JT808.Gateway.SimpleServer.Customs
  6. {
  7. [Route("jt808apiext")]
  8. [ApiController]
  9. public class JT808WebApiExt : ControllerBase
  10. {
  11. public JT808WebApiExt(JT808SessionManager jT808SessionManager, JT808BlacklistManager jT808BlacklistManager)
  12. {
  13. }
  14. /// <summary>
  15. /// index1
  16. /// </summary>
  17. /// <returns></returns>
  18. [HttpGet]
  19. [Route("index1")]
  20. public ActionResult<JT808ResultDto<string>> Index1()
  21. {
  22. JT808ResultDto<string> resultDto = new JT808ResultDto<string>();
  23. resultDto.Data = "Hello,JT808 WebApi Ext";
  24. resultDto.Code = JT808ResultCode.Ok;
  25. return resultDto;
  26. }
  27. }
  28. }