Appearance
User
<internal>.User
用户
Constructors
constructor
• new User(): User
返回值
源码
packages/uni-mp/io/types/baas.d.ts:1006
Methods
count
▸ count(): Promise<number>
获取用户数量。
返回值
Promise<number>
源码
packages/uni-mp/io/types/baas.d.ts:1035
expand
▸ expand(key): this
指定需要展开的 pointer 类型字段
参数
| Name | Type | Description |
|---|---|---|
key | string | string[] | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1053
find
▸ find(options?): Promise<Response<any>>
获取用户列表。
参数
| Name | Type | Description |
|---|---|---|
options? | FindOptions | 参数 |
返回值
Promise<Response<any>>
源码
packages/uni-mp/io/types/baas.d.ts:1030
get
▸ get(userID): Promise<Response<any>>
获取用户详情。
参数
| Name | Type | Description |
|---|---|---|
userID | string | 用户 ID |
返回值
Promise<Response<any>>
源码
packages/uni-mp/io/types/baas.d.ts:1012
getCurrentUserWithoutData
▸ getCurrentUserWithoutData(): UserRecord
获取当前用户记录(仅引用,非数据)。
返回值
源码
packages/uni-mp/io/types/baas.d.ts:1024
getWithoutData
▸ getWithoutData(userID): UserRecord
获取一个用户记录(仅引用,非数据)。
参数
| Name | Type | Description |
|---|---|---|
userID | string | 用户 ID |
返回值
源码
packages/uni-mp/io/types/baas.d.ts:1018
limit
▸ limit(count): this
指定最多返回数量
参数
| Name | Type | Description |
|---|---|---|
count | number | 数量 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1059
offset
▸ offset(count): this
设置列表偏移量
参数
| Name | Type | Description |
|---|---|---|
count | number | 偏移量 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1065
orderBy
▸ orderBy(key): this
设置排序依据
参数
| Name | Type | Description |
|---|---|---|
key | string | string[] | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1071
select
▸ select(key): this
选择只返回指定字段
参数
| Name | Type | Description |
|---|---|---|
key | string | string[] | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1047
setQuery
▸ setQuery(Query): this
设置查询条件
参数
| Name | Type | Description |
|---|---|---|
Query | Query | 对象 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1041