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;
}
///
/// 展示换电站日运行统计结果
///
///
[HttpGet("GetExStationDaySwapRunRes")]
public async Task> GetExStationDaySwapRunRes()
{
return await _exStationDayRunResultService.ExStationDaySwapRunRes();
}
///
/// 删除换电站日运行统计结果
///
///
///
[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));
}
}
}