using Entity.Api.Req; using Entity.Api.Resp; using Entity.DbModel.Station; using HybirdFrameworkCore.Entity; using Microsoft.AspNetCore.Mvc; using Service.Station; namespace WebStarter.Controllers { /// /// 换电站日运行统计结果 /// [ApiController] [Route("api/[controller]")] public class ExStationDayRunResultController : ControllerBase { private readonly ExStationDayRunResultService _exStationDayRunResultService; public ExStationDayRunResultController(ExStationDayRunResultService exStationDayRunResultService) { _exStationDayRunResultService = exStationDayRunResultService; } /// /// 展示换电站日运行统计结果 /// /// [HttpPost("GetExStationDaySwapRunRes")] public async Task>> GetExStationDaySwapRunRes([FromBody] QueryPageModel queryPageModel) { return Result>.Success(await _exStationDayRunResultService.ExStationDaySwapRunRes(queryPageModel)); } /// /// 导出换电站日运行统计结果 /// /// [HttpPost] [Route("ExportExchangeStationDayRunResult")] public async Task ExportExchangeStationDayRunResult() { return await _exStationDayRunResultService.ExportExchangeStationDayRunResult(); } /// /// 删除换电站日运行统计结果 /// /// /// [HttpPost("DeleteDaySwapRunRes/{id}")] public async Task> DeleteDaySwapRunRes(int id) { return Result.Success(await _exStationDayRunResultService.DeleteDaySwapRunRes(id)); } /// /// 批量删除换电站日运行统计结果 /// /// /// [HttpPost("BatchDeleteDaySwapRunRes")] public async Task> BatchDeleteDaySwapRunRes(List ids) { return Result.Success(await _exStationDayRunResultService.BatchDeleteDaySwapRunRes(ids)); } } }