package com.younike.common.utils.id;

public class IDUtils {
    public static Long workId = 0224l;
    private static IdWorker idWorker;

    public static IdWorker getIdWorkerInstance() {
        if (idWorker == null) {
            idWorker = new IdWorker(workId);
        }
        return idWorker;
    }

    public static String nextId() {
        return String.valueOf(IDUtils.getIdWorkerInstance().nextId());
    }
}
