mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 09:55:16 +08:00
13 lines
234 B
Java
13 lines
234 B
Java
package com.ruoyi.common.utils;
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
import lombok.experimental.UtilityClass;
|
|
|
|
@UtilityClass
|
|
public class IdUtils {
|
|
|
|
public Long nextId() {
|
|
return IdUtil.getSnowflake(1, 1).nextId();
|
|
}
|
|
}
|