Initial 智念AIGC platform

This commit is contained in:
inman
2026-05-29 10:26:02 +08:00
commit f9c3393f84
86 changed files with 14741 additions and 0 deletions

5
lib/server/ids.ts Normal file
View File

@@ -0,0 +1,5 @@
import { randomBytes } from "node:crypto";
export function createId(prefix: string): string {
return `${prefix}_${Date.now().toString(36)}_${randomBytes(5).toString("hex")}`;
}