Appearance
UserRecord
<internal>
.UserRecord
当前用户
Constructors
constructor
• new UserRecord(userID
): UserRecord
参数
Name | Type | Description |
---|---|---|
userID | string | 用户 ID |
返回值
源码
packages/uni-mp/io/types/baas.d.ts:1082
Methods
append
▸ append(key
, value
): this
数组添加元素。
参数
Name | Type | Description |
---|---|---|
key | string | 字段名称 |
value | string | 值 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1109
incrementBy
▸ incrementBy(key
, value
): this
自增(原子操作)。
参数
Name | Type | Description |
---|---|---|
key | string | 字段名称 |
value | number | 值 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1102
patchObject
▸ patchObject(key
, value
): this
Object 类型字段修改。
参数
Name | Type | Description |
---|---|---|
key | string | 字段名称 |
value | object | 值 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1130
pop
▸ pop(key
): this
Array 类型字段修改,移除数组末位元素。
参数
Name | Type | Description |
---|---|---|
key | string | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1136
remove
▸ remove(key
, value
): this
数组移除元素。
参数
Name | Type | Description |
---|---|---|
key | string | 字段名称 |
value | string | 值 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1123
set
▸ set(key
, value
): this
参数
Name | Type |
---|---|
key | string |
value | string |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1089
▸ set(particialRecord
): this
参数
Name | Type |
---|---|
particialRecord | Object |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1091
shift
▸ shift(key
): this
Array 类型字段修改,移除数组首位元素。
参数
Name | Type | Description |
---|---|---|
key | string | 字段名称 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1142
uAppend
▸ uAppend(key
, value
): this
数组添加元素(原子操作)。
参数
Name | Type | Description |
---|---|---|
key | string | 字段名称 |
value | string | string [] | 值 |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1116
unset
▸ unset(key
): this
参数
Name | Type |
---|---|
key | string |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1093
▸ unset(particialRecord
): this
参数
Name | Type |
---|---|
particialRecord | Object |
返回值
this
源码
packages/uni-mp/io/types/baas.d.ts:1095
update
▸ update(): Promise
<Response
<any
>>
更新用户数据。
返回值
Promise
<Response
<any
>>
源码
packages/uni-mp/io/types/baas.d.ts:1087