fix 任务图片连接处理
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user