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 { /// /// 转发管理 /// [Route("jt808webapi/Transmit")] [ApiController] public class JT808TransmitController : ControllerBase { /// /// 添加地址 /// /// /// [HttpPost] public ActionResult Add([FromBody]JT808IPAddressDto jT808IPAddressDto) { return true; } /// /// 删除地址 /// /// /// [HttpPost] public ActionResult Remove([FromBody]JT808IPAddressDto jT808IPAddressDto) { return true; } /// /// 获取转发IP地址集合 /// /// /// [HttpGet] public ActionResult> GetAll() { return new List() { "127.0.0.1:80", "127.0.0.1:81" }; } } }