This commit is contained in:
Timi
2026-07-30 18:28:25 +08:00
parent 8b24804b22
commit f0d1090932
21 changed files with 915 additions and 268 deletions
+29 -11
View File
@@ -2,23 +2,41 @@ import { Model } from "./Model";
export type Attachment = {
bizType: AttachmentBizType;
bizId: number;
bizId: string;
attachType?: string;
mongoId: string;
lidTitle?: number;
name?: string;
size: number;
} & Model
export type AttachmentView = {
title?: string;
} & Attachment
name?: string;
mimeType?: string;
metadata?: unknown;
size?: number;
md5?: string;
uploaderIp?: string;
isDestroyed?: boolean;
destroyAt?: number;
tempFileId?: string;
} & Model;
export type TempFileResp = {
id: string;
expireAt?: number;
};
export type BizUpdateReq = {
bizType: AttachmentBizType;
bizId: string;
items: Partial<Attachment>[];
};
export enum AttachmentBizType {
GIT_ISSUE,
USER = "USER",
GIT_MERGE,
GAO_CUSTOMER = "GAO_CUSTOMER",
GIT_RELEASE
GAO_REGISTER_RECORD = "GAO_REGISTER_RECORD",
TEMP_FILE = "TEMP_FILE",
MIRROR = "MIRROR"
}