31 lines
744 B
C#
Raw Permalink Normal View History

2025-03-16 03:17:36 +08:00
using System.Collections.Concurrent;
using Seyounth.Hyosung.Data.Models;
namespace Seyounth.Hyosung.Data.Services;
public interface IYarnService
{
2025-03-19 20:55:31 +08:00
ConcurrentDictionary<long, Yarn> NoFinished { get; }
2025-03-16 03:17:36 +08:00
Task<Yarn?> AddYarnAsync(Yarn yarn);
Task<List<Yarn>> GetYarnsByTrayIdAsync(int trayId);
2025-03-19 20:55:31 +08:00
Task<Yarn> GetYarnByCodeAsync(long code);
2025-03-16 03:17:36 +08:00
/// <summary>
/// 完成指定纱
/// </summary>
/// <param name="yarnCode"></param>
/// <returns></returns>
2025-03-19 20:55:31 +08:00
Task FinishYarnAsync(long yarnCode);
2025-03-16 03:17:36 +08:00
/// <summary>
/// 绑定托盘号
/// </summary>
/// <param name="yarnCode"></param>
/// <param name="trayId"></param>
/// <returns></returns>
2025-03-19 20:55:31 +08:00
Task BindTrayAsync(long yarnCode, int trayId);
2025-03-16 03:17:36 +08:00
}