chore: utils

This commit is contained in:
yangsy
2025-09-04 16:39:20 +08:00
parent 468b498d51
commit ebcd9d0c71

3
src/utils/generate-id.ts Normal file
View File

@@ -0,0 +1,3 @@
import { nanoid } from 'nanoid';
export const generateId = (idPrefix?: string) => `${idPrefix ? `${idPrefix}_` : ''}${nanoid(10)}`;