25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using JT808.DotNetty.Dtos;
- using Microsoft.AspNetCore.Mvc;
-
- namespace JT808.DotNetty.Dashbord.Controllers
- {
- /// <summary>
- /// 转发管理
- /// </summary>
- [Route("jt808webapi/Transmit")]
- [ApiController]
- public class JT808TransmitController : ControllerBase
- {
- /// <summary>
- /// 添加地址
- /// </summary>
- /// <param name="jT808IPAddressDto"></param>
- /// <returns></returns>
- [HttpPost]
- public ActionResult<bool> Add([FromBody]JT808IPAddressDto jT808IPAddressDto)
- {
- return true;
- }
-
- /// <summary>
- /// 删除地址
- /// </summary>
- /// <param name="jT808IPAddressDto"></param>
- /// <returns></returns>
- [HttpPost]
- public ActionResult<bool> Remove([FromBody]JT808IPAddressDto jT808IPAddressDto)
- {
- return true;
- }
-
- /// <summary>
- /// 获取转发IP地址集合
- /// </summary>
- /// <param name="jT808IPAddressDto"></param>
- /// <returns></returns>
- [HttpGet]
- public ActionResult<List<string>> GetAll()
- {
- return new List<string>() { "127.0.0.1:80", "127.0.0.1:81" };
- }
- }
- }
|