remove deprecated api

This commit is contained in:
Timi
2026-08-07 10:46:14 +08:00
parent efea624376
commit f0ba55fe25
18 changed files with 194 additions and 306 deletions
+6 -17
View File
@@ -1,10 +1,10 @@
import { Model } from "./Model";
export type Attachment = {
bizType: AttachmentBizType;
bizId: string;
bizType?: AttachmentBizType;
bizId?: string;
attachType?: string;
mongoId: string;
mongoId?: string;
title?: string;
name?: string;
mimeType?: string;
@@ -17,26 +17,15 @@ export type Attachment = {
tempFileId?: string;
} & Model;
export type TempFileResp = {
export type TempFile = {
id: string;
expireAt?: number;
};
export type BizUpdateReq = {
export type BizIdUpdate = {
bizType: AttachmentBizType;
bizId: string;
items: Partial<Attachment>[];
};
export enum AttachmentBizType {
USER = "USER",
GAO_CUSTOMER = "GAO_CUSTOMER",
GAO_REGISTER_RECORD = "GAO_REGISTER_RECORD",
TEMP_FILE = "TEMP_FILE",
MIRROR = "MIRROR"
}
export type AttachmentBizType = | "USER" | "GAO_CUSTOMER" | "GAO_REGISTER_RECORD" | "TEMP_FILE" | "MIRROR";