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.
22 lines
514 B
22 lines
514 B
1 year ago
|
namespace Win.Abp.Snowflakes
|
||
|
{
|
||
|
public class AbpSnowflakeIdGeneratorOptions
|
||
|
{
|
||
|
// 数据中心ID(0~31)
|
||
|
public long? DefaultDatacenterId { get; set; }
|
||
|
|
||
|
// 工作机器ID(0~31)
|
||
|
public long? DefaultWorkerId { get; set; }
|
||
|
|
||
|
|
||
|
public long GetDefaultDatacenterId()
|
||
|
{
|
||
|
return DefaultDatacenterId ?? 0L;
|
||
|
}
|
||
|
|
||
|
public long GetDefaultWorkerId()
|
||
|
{
|
||
|
return DefaultWorkerId ?? 0L;
|
||
|
}
|
||
|
}
|
||
|
}
|