You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
492 B
21 lines
492 B
3 months ago
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Kean.Infrastructure.Configuration
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 条码解释器
|
||
|
/// </summary>
|
||
|
public sealed class BarcodeInterpreter
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 解释条码
|
||
|
/// </summary>
|
||
|
/// <param name="barcode">条码内容</param>
|
||
|
/// <returns>托盘标识</returns>
|
||
|
public Task<string> Interpret(string barcode)
|
||
|
{
|
||
|
return Task.FromResult(barcode[0..3]);
|
||
|
}
|
||
|
}
|
||
|
}
|