package org.jeecg.module.custom.ocr.common.dto;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.jeecg.module.custom.ocr.utils.SnowFlakeUtil;
import org.springframework.stereotype.Component;

/**
 * @author zhangyong
 * @title: CustomIdGenerator
 * @projectName jyjz-parent
 * @description: TODO
 * @date 2021/11/15 10:18 AM
 */
@Component
public class CustomIdGenerator implements IdentifierGenerator {
    @Override
    public Long nextId(Object entity) {
        //返回生成的id值
        return SnowFlakeUtil.nextId();
    }
}
