$ npm i egg-uuid-int --save
// {app_root}/config/plugin.js
exports.uuint = {
enable: true,
package: 'egg-uuid-int'
};
// {app_root}/config/config.default.js
exports.uuint = {
id: 0, // 0-511
seed: 156015570 // a time
};
see config/config.default.js for more detail.
const uuid = app.uuint.uuid(); // a int uuid