1.
luofl
2025-02-23 38116e1a779763482b7c0a5657cfa6cb939f72fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.panzhihua.common.utlis;
 
import cn.hutool.core.util.IdUtil;
 
/**
 * @author xyh
 * @date 2021/6/10 15:29
 */
public class Snowflake {
    public static long getId() {
        cn.hutool.core.lang.Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        long id = snowflake.nextId();
        return id;
    }
}