MrShi
4 天以前 05aec1e9986fbe3e907259bb1a1396f129bd0fa1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { ICommonAPIParams } from '../../constant/types';
/**
 * 上传附件到钉盘/从钉盘选择文件 请求参数定义
 * @apiName uploadAttachmentToDingTalk
 */
export interface IUnionUploadAttachmentToDingTalkParams extends ICommonAPIParams {
    file: {
        max?: number;
        spaceId: string;
        folderId: string;
    };
    image?: {
        max?: number;
        spaceId: string;
        compress?: boolean;
        folderId: string;
        multiple?: boolean;
    };
    space: {
        max?: number;
        corpId: string;
        isCopy?: boolean;
        spaceId: string;
        folderId: string;
    };
    types: string[];
}
/**
 * 上传附件到钉盘/从钉盘选择文件 返回结果定义
 * @apiName uploadAttachmentToDingTalk
 */
export interface IUnionUploadAttachmentToDingTalkResult {
    data: {
        fileId: string;
        spaceId: string;
        fileName: string;
        fileSize: string;
        fileType: string;
    };
    type: string;
}
/**
 * 上传附件到钉盘/从钉盘选择文件
 * @apiName uploadAttachmentToDingTalk
 */
export declare function uploadAttachmentToDingTalk$(params: IUnionUploadAttachmentToDingTalkParams): Promise<IUnionUploadAttachmentToDingTalkResult>;
export default uploadAttachmentToDingTalk$;