feat: 添加短链管理功能,包括创建、更新、删除和列表接口

This commit is contained in:
2026-03-10 19:46:50 +08:00
parent 91eaad04d7
commit 48425c6120
25 changed files with 728 additions and 15 deletions

View File

@@ -0,0 +1,7 @@
import { desc, eq, count, or, like, and } from 'drizzle-orm';
import { app, db, schema } from '@/app.ts';
export class N5Service {
static async getBySlug(slug: string) {
return db.select().from(schema.shortLink).where(eq(schema.shortLink.slug, slug)).limit(1);
}
}