diff --git a/index.js b/index.js index b1f016e25ec694c80a2247e13092d9890570ec6a..ba15067ab1c6318bd0bb9360dc5aed923935796e 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,10 @@ const uuid = require('uuid'); -console.log(uuid.v7()) \ No newline at end of file + +const generateUUID = () => { + // 使用 uuid 生成id + + return uuid.v4() +}; + +module.exports = generateUUID; \ No newline at end of file