Commit 367de2a9 by stylefeng

新增id生成器工具类

parent 83b6baf5
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();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment