Class WxSeqGenerator
java.lang.Object
icu.congee.id.generator.wxseq.WxSeqGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void清除当前用户uid(模拟,实际应在请求结束时清理)generate()生成一个唯一标识符。idType()获取当前生成器的标识符类型static voidsetCurrentUid(Long uid) 设置当前用户uid(模拟,实际应从上下文中获取)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface icu.congee.id.base.IdGenerator
generate
-
Constructor Details
-
WxSeqGenerator
public WxSeqGenerator()
-
-
Method Details
-
generate
Description copied from interface:IdGenerator生成一个唯一标识符。 每个实现类都应该根据其特定的生成策略来实现此方法。- Specified by:
generatein interfaceIdGenerator- Returns:
- 生成的唯一标识符,具体类型由实现类决定
-
idType
Description copied from interface:IdGenerator获取当前生成器的标识符类型此方法用于标识生成器使用的具体ID生成策略。每个实现类都应该 返回一个对应其生成策略的IdType枚举值。
- Specified by:
idTypein interfaceIdGenerator- Returns:
- 当前生成器的标识符类型
-
setCurrentUid
设置当前用户uid(模拟,实际应从上下文中获取) -
clearCurrentUid
public static void clearCurrentUid()清除当前用户uid(模拟,实际应在请求结束时清理)
-