引用nvget包:
progeram写:
控制器写:
/// <summary>
/// 雪花id
/// </summary>
/// <returns></returns>
[HttpGet]
public long XID()
{
return YitIdHelper.NextId();
}
引用nvget包:
progeram写:
控制器写:
/// <summary>
/// 雪花id
/// </summary>
/// <returns></returns>
[HttpGet]
public long XID()
{
return YitIdHelper.NextId();
}