29 lines
829 B
C#
29 lines
829 B
C#
using Dlhis.Canteen.Order.Dto;
|
|
|
|
namespace Dlhis.Canteen.Order.Services;
|
|
|
|
public interface IOrderCommonHandler : IScopeDependency
|
|
{
|
|
/// <summary>
|
|
/// 消费更新处理
|
|
/// </summary>
|
|
/// <param name="orderId"></param>
|
|
/// <param name="action"></param>
|
|
/// <returns></returns>
|
|
Task TryConsumeAsync(long orderId, Func<Task> action);
|
|
|
|
/// <summary>
|
|
/// 设置设备ip
|
|
/// </summary>
|
|
/// <param name="deviceNo"></param>
|
|
/// <returns></returns>
|
|
Task SetDeviceIpInfoAsync(string deviceNo);
|
|
|
|
/// <summary>
|
|
/// 消费前预检
|
|
/// </summary>
|
|
/// <param name="deviceUniqueNo">设备号</param>
|
|
/// <param name="costDateTime">消费时间</param>
|
|
/// <returns></returns>
|
|
Task<OrderCheckResultDto> PreCheckAsync(string deviceUniqueNo, DateTime costDateTime);
|
|
} |