Files
jinko.yikatong/Src/Dlhis.Canteen/Order/Controllers/MiddleController.cs

32 lines
855 B
C#

using Dlhis.Canteen.Order.Response;
using Dlhis.Canteen.Order.Services;
using Dlhis.Entity.Canteen.Entities;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Canteen.Order.Controllers;
[Authorize]
[Route("api/[controller]")]
[ApiController]
public class MiddleController : ControllerBase
{
private readonly IMiddleService _middleService;
public MiddleController(IMiddleService middleService)
{
_middleService = middleService;
}
/// <summary>
/// 跳板机离线数据上传
/// </summary>
/// <returns></returns>
[IgnoreTenant]
[HttpPost("upload")]
public async Task<OrderResultResponse> MiddleUpload(BalanceRecordEntity entity)
{
return await _middleService.MiddleUploadAsync(entity);
}
}