Files
qhmes/yy-admin-master/YY.Admin.Core/Util/SnowflakeId.cs

12 lines
269 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
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.
using Yitter.IdGenerator;
namespace YY.Admin.Core;
/// <summary>
/// 分布式雪花 Id依赖应用启动时 SqlSugarSetup 中对 YitIdHelper 的初始化)
/// </summary>
public static class SnowflakeId
{
public static long Next() => YitIdHelper.NextId();
}