提交rbac
提交设置右键错位的bug
This commit is contained in:
52
DH.RBAC/Utility/Other/UUID.cs
Normal file
52
DH.RBAC/Utility/Other/UUID.cs
Normal file
@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DH.RBAC.Utility.Other
|
||||
{
|
||||
public class UUID
|
||||
{
|
||||
public static long SnowId
|
||||
{
|
||||
get
|
||||
{
|
||||
return SnowFlakeHelper.GetSnowInstance().NextId();
|
||||
}
|
||||
}
|
||||
|
||||
public static string StrSnowId
|
||||
{
|
||||
get
|
||||
{
|
||||
return Convert.ToString(SnowId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static string NewTimeUUID
|
||||
{
|
||||
get
|
||||
{
|
||||
return DateTime.Today.ToString("yyyyMMdd") + Guid.NewGuid().ToString().Replace("-", "").ToUpper().Substring(0, 10);
|
||||
}
|
||||
}
|
||||
|
||||
public static string NewTimeUUID2
|
||||
{
|
||||
get
|
||||
{
|
||||
return DateTime.Today.ToString("yyyyMMdd") + Guid.NewGuid().ToString().Replace("-", "").ToUpper();
|
||||
}
|
||||
}
|
||||
|
||||
public static string NewUUID
|
||||
{
|
||||
get
|
||||
{
|
||||
return Guid.NewGuid().ToString().Replace("-", "").ToUpper();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user