Files
2024-04-21 22:47:51 +08:00

28 lines
820 B
C#
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#region Copyright (C) 2024 (OSS开源系列) 公众号:OSSCore
/***************************************************************************
*   文件功能描述:全局辅助类 - 序列数字生成接口定义
*
*   创建人: Kevin
* 创建人Email:1985088337@qq.com
*
*
*****************************************************************************/
#endregion
namespace OSS.Tools.Num;
/// <summary>
/// 序列数字生成接口定义
/// </summary>
public interface ISequenceNumGenerator
{
/// <summary>
/// 获取新的序列数值(区间)
/// </summary>
/// <param name="sequenceKey">序列主键</param>
/// <param name="count">获取个数</param>
/// <returns></returns>
Task<(long start,long end)> New(string sequenceKey,int count);
}