Appearance
File
<internal>
.File
文件
Constructors
constructor
• new File(): File
返回值
源码
packages/uni-mp/io/types/baas.d.ts:402
Methods
count
▸ count(): Promise
<number
>
获取文件数量。
返回值
Promise
<number
>
源码
packages/uni-mp/io/types/baas.d.ts:435
delete
▸ delete(id
): Promise
<Response
<any
>>
删除文件。
参数
Name | Type | Description |
---|---|---|
id | string | 文件 ID |
返回值
Promise
<Response
<any
>>
源码
packages/uni-mp/io/types/baas.d.ts:418
expand
▸ expand(key
): this
指定需要展开的 pointer 类型字段
参数
Name | Type | Description |
---|---|---|
key | string | string [] | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:487
find
▸ find(options?
): Promise
<Response
<any
>>
获取文件列表。
参数
Name | Type | Description |
---|---|---|
options? | FindOptions | 参数 |
返回值
Promise
<Response
<any
>>
源码
packages/uni-mp/io/types/baas.d.ts:430
genVideoSnapshot
▸ genVideoSnapshot(params
): Promise
<FileOperationResult
>
生成视频截图。
参数
Name | Type | Description |
---|---|---|
params | VideoSnapshotParams | 截图参数 |
返回值
Promise
<FileOperationResult
>
源码
packages/uni-mp/io/types/baas.d.ts:441
get
▸ get(fileID
): Promise
<Response
<any
>>
获取文件详情。
参数
Name | Type | Description |
---|---|---|
fileID | string | 文件 ID |
返回值
Promise
<Response
<any
>>
源码
packages/uni-mp/io/types/baas.d.ts:424
limit
▸ limit(count
): this
指定最多返回数量
参数
Name | Type | Description |
---|---|---|
count | number | 数量 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:493
offset
▸ offset(count
): this
设置列表偏移量
参数
Name | Type | Description |
---|---|---|
count | number | 偏移量 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:499
orderBy
▸ orderBy(key
): this
设置排序依据
参数
Name | Type | Description |
---|---|---|
key | string | string [] | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:505
select
▸ select(key
): this
选择只返回指定字段
参数
Name | Type | Description |
---|---|---|
key | string | string [] | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:481
setQuery
▸ setQuery(Query
): this
设置查询条件
参数
Name | Type | Description |
---|---|---|
Query | Query | 对象 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:475
upload
▸ upload(fileParams
, metaData?
): Promise
<Response
<any
>>
上传文件。
参数
Name | Type | Description |
---|---|---|
fileParams | FileParams | 文件参数 |
metaData? | FileMeta | 文件元信息 |
返回值
Promise
<Response
<any
>>
源码
packages/uni-mp/io/types/baas.d.ts:409
videoAudioMeta
▸ videoAudioMeta(params
): Promise
<VideoAudioMetaResult
>
音视频的元信息。
参数
Name | Type | Description |
---|---|---|
params | VideoAudioMetaParams | 音视频的元信息参数 |
返回值
Promise
<VideoAudioMetaResult
>
源码
packages/uni-mp/io/types/baas.d.ts:467
videoClip
▸ videoClip(params
): Promise
<FileOperationResult
>
M3U8 视频剪辑。
参数
Name | Type | Description |
---|---|---|
params | VideoClipParams | 剪辑参数 |
返回值
Promise
<FileOperationResult
>
源码
packages/uni-mp/io/types/baas.d.ts:455
videoConcat
▸ videoConcat(params
): Promise
<FileOperationResult
>
M3U8 视频拼接。
参数
Name | Type | Description |
---|---|---|
params | VideoConcatParams | 拼接参数 |
返回值
Promise
<FileOperationResult
>
源码
packages/uni-mp/io/types/baas.d.ts:449
videoMeta
▸ videoMeta(params
): Promise
<VideoMetaResult
>
M3U8 时长和分片信息。
参数
Name | Type | Description |
---|---|---|
params | VideoMetaParams | 分片信息参数 |
返回值
Promise
<VideoMetaResult
>
源码
packages/uni-mp/io/types/baas.d.ts:461