chore: remove dead code (lib/file.ts, unused attachmentAdd export)

This commit is contained in:
root
2026-10-17 10:48:52 +08:00
parent 74884ce73a
commit cf4647f706
13 changed files with 17 additions and 35 deletions
-2
View File
@@ -129,8 +129,6 @@ export const bandUpsert = (p: GradeBand) => call<{ item: { id: number } }>('band
export const bandDelete = (id: number) => call<{ ok: true }>('band_delete', { id });
// ---- attachment ----
export const attachmentAdd = (p: { owner_id: number; file_name: string; mime?: string; size: number; data_b64: string; thumb_b64?: string }) =>
call<{ item: Attachment }>('attachment_add', p);
export const attachmentList = (owner_id: number) => call<{ items: Attachment[] }>('attachment_list', { owner_id });
export const attachmentDelete = (id: number) => call<{ ok: true }>('attachment_delete', { id });
export const attachmentRead = (id: number) =>