fix 任务图片连接处理

This commit is contained in:
2024-06-28 14:03:40 +08:00
parent 0214309e64
commit 9446ba6ffa
20 changed files with 427 additions and 14 deletions

View File

@@ -1,9 +1,8 @@
using Dlhis.Middle.Request;
using Dlhis.Middle.Api;
using Dlhis.Middle.Request;
using Dlhis.Middle.Response;
using Dlhis.Middle.Services;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Kurisu.AspNetCore.UnifyResultAndValidation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Middle.Controllers;
@@ -15,11 +14,11 @@ namespace Dlhis.Middle.Controllers;
[ApiController]
public class OrdersController : ControllerBase
{
private readonly IOrderService _orderService;
private readonly ICanteenApi _canteenApi;
public OrdersController(IOrderService orderService)
public OrdersController(ICanteenApi canteenApi)
{
_orderService = orderService;
_canteenApi = canteenApi;
}
/// <summary>
@@ -31,6 +30,6 @@ public class OrdersController : ControllerBase
[IgnoreTenant]
public async Task<DefaultApiResult<OrderResultResponse>> AddAsync(OrderAddRequest request)
{
return await _orderService.AddAsync(request);
return await _canteenApi.AddAsync(request);
}
}