using Entity.Api.Req; using Entity.Api.Resp; using HybirdFrameworkCore.Entity; using Microsoft.AspNetCore.Mvc; using Service.Station; namespace WebStarter.Controllers; /// /// 换电状态订单信息 /// [ApiController] [Route("api/[controller]")] public class SwapOrderStepController : ControllerBase { private readonly SwapOrderStepService swapOrderStepService; public SwapOrderStepController(SwapOrderStepService swapOrderStepService) { this.swapOrderStepService = swapOrderStepService; } /// /// 查询换电状态订单信息 /// /// 查询参数 /// [HttpPost] [Route("QuerySwapOrderStep")] public Result> QuerySwapOrderStep([FromBody] QuerySwapOrderStepReq swapOrderStepReq) { return Result>.Success(swapOrderStepService.QueryEqmFaultInfo(swapOrderStepReq)); } /// /// 删除换电状态订单信息 /// /// 自增id数组 /// [HttpPost] [Route("RemoveSwapOrderStep")] public Result RemoveSwapOrderStep([FromBody] int[] ids) { if (swapOrderStepService.DeleteByIds(ids)) { return Result.Success(true,"删除成功"); } else { return Result.Fail("删除失败"); } } }