feat: 完成举报拉黑和审核处置闭环

This commit is contained in:
root
2026-09-16 20:41:01 +08:00
parent 02189ebb2e
commit ce8e1db279
19 changed files with 1778 additions and 5 deletions
+8 -1
View File
@@ -23,10 +23,16 @@ async function seed(): Promise<void> {
nickname: "星河",
publicId: "00000000-0000-4000-8000-000000000002",
},
{
key: "demo-admin",
nickname: "管理员",
publicId: "00000000-0000-4000-8000-000000000003",
},
].map(({ key, nickname, publicId }) =>
prisma.account.upsert({
where: { phoneHmac: id(`drift-bottle:${key}:phone-hmac`) },
update: {
role: key === "demo-admin" ? "ADMIN" : "USER",
anonymousProfile: {
upsert: {
create: {
@@ -44,6 +50,7 @@ async function seed(): Promise<void> {
},
},
create: {
role: key === "demo-admin" ? "ADMIN" : "USER",
phoneCiphertext: Buffer.from(
id(`drift-bottle:${key}:ciphertext`),
"hex",
@@ -78,7 +85,7 @@ async function seed(): Promise<void> {
});
console.info(
"Seed complete: 2 demo accounts, 2 anonymous profiles, 1 in-pool bottle.",
"Seed complete: 3 demo accounts (including admin), 3 anonymous profiles, 1 in-pool bottle.",
);
}