对接前端暴露订单预警列表
This commit is contained in:
parent
907eedcd6c
commit
c22421676c
@ -10,7 +10,12 @@ using SJZY.Track.Domain.Dtos.Forewarning;
|
||||
|
||||
namespace SJZY.Track.Application.Services.TrackOrders;
|
||||
|
||||
public class OrderWarningService
|
||||
/// <summary>
|
||||
/// 订单预警服务
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "轨迹订单")]
|
||||
[Route("/Track/Order")]
|
||||
public class OrderWarningService : ApplicationService
|
||||
{
|
||||
private readonly IForewarningNotifyService _forewarningNotifyService;
|
||||
private readonly IOrderRepository _orderRepository;
|
||||
@ -77,7 +82,7 @@ public class OrderWarningService
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[HttpPost("Track/SendWarningForTask")]
|
||||
[HttpPost("SendWarningForTask")]
|
||||
public async Task<bool> SendWarningForTaskAsync([FromBody] IOptionsSnapshot<Track2InterfaceRelayOptions> options)
|
||||
{
|
||||
var configs = options.Value;
|
||||
|
||||
@ -8,6 +8,9 @@ using SJZY.Track.Domain.Dtos.Order;
|
||||
|
||||
namespace SJZY.Track.Application.Services.TrackOrders;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹订单服务
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "轨迹订单")]
|
||||
[Route("/Track/Order")]
|
||||
public class TrackOrderService : ApplicationService
|
||||
@ -51,6 +54,13 @@ public class TrackOrderService : ApplicationService
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新订单状态
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="BusinessException"></exception>
|
||||
[HttpPost("UpdateOrderStatus")]
|
||||
public async Task<bool> UpdateOrderStatus(UpdateOrderStatusInput input)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user