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