Pu Zhibing
2025-04-22 7feb722a12e26f5572c7df9ccc1ce8c1e26b9f94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.stylefeng.guns.core.util;
 
import com.baomidou.mybatisplus.toolkit.IdWorker;
 
/**
 * 唯一id生成器
 *
 * @author fengshuonan
 * @date 2017-08-23 11:10
 */
public class IdGenerator {
 
    public static String getId() {
        return String.valueOf(IdWorker.getId());
    }
 
    public static long getIdLong() {
        return IdWorker.getId();
    }
}