xin
2025-09-27 0ab919187081583c07a9b7654050f6e8741628dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.oying.modules.pc.common.id;
 
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.stereotype.Component;
 
@Component
public class StoreIdGenerator {
 
    private static final Snowflake snowflake = IdUtil.getSnowflake(1,1);
 
    public static long getId() {
        return snowflake.nextId();
    }
}