You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB

using Entity.Api.Req;
using Entity.Api.Resp;
using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
namespace WebStarter.Controllers;
/**
*
*/
[ApiController]
[Route("api/[controller]")]
public class SwapOrderController : ControllerBase
{
/// <summary>
/// 分页数据
/// </summary>
/// <returns></returns>
[HttpPost("QueryPage")]
public async Task<Result<PageResult<SwapOrderResp>>> QueryPage([FromBody] QuerySwapOrderPageReq req)
{
return Result<PageResult<SwapOrderResp>>.Success(null);
}
/// <summary>
/// 修改换电订单
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpGet("Modify")]
public async Task<Result<bool>> Modify([FromBody] ModifySwapOrderReq req)
{
return Result<bool>.Success(null);
}
/// <summary>
/// 删除
/// </summary>
/// <param name="ids">ids 订单列表</param>
/// <returns></returns>
[HttpGet("DeleteByIds")]
public async Task<Result<bool>> DeleteByIds(List<long> ids)
{
return Result<bool>.Success(null);
}
/// <summary>
/// 换电订单上报云端
/// </summary>
/// <returns></returns>
[HttpGet("UploadCloud/{id}")]
public async Task<Result<bool>> UploadCloud(long id)
{
return Result<bool>.Success(null);
}
/// <summary>
/// 换电订单上报云端
/// </summary>
/// <returns></returns>
[HttpPost("Add")]
public async Task<Result<bool>> Add([FromBody] AddSwapOrderReq req)
{
return Result<bool>.Success(null);
}
}