update
This commit is contained in:
+29
-11
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user