企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 更新用户信息 - 1.更新用户名```username``` ~~~[api] PATCH:/users/patch/username *int:uid=20180000#用户id *string:username=王雪峰#要修改的姓名 <<< success { "status": true } <<< error { "status": false } ~~~ - 2.更新性别```sex```,数值对应如下: ```json {'保密':0,'男':1,'女':2} ``` ~~~[api] PATCH:/users/patch/sex *int:uid=20180000#用户id *int:sex=1#要修改的性别 <<< success { "status": true } <<< error { "status": false } ~~~ - 3.更新文理类别```subjecttype```,取值如下: ```json ['文','理'] ``` ~~~[api] PATCH:/users/patch/subjecttype *int:uid=20180000#用户id *string:subjecttype=理#要修改的文理类别 <<< success { "status": true } <<< error { "status": false } ~~~ - 4.更新分数```grade``` ~~~[api] PATCH:/users/patch/grade *int:uid=20180000#用户id *int:grade=457#要修改的分数 <<< success { "status": true } <<< error { "status": false } ~~~ - 5.更新ip地址```ip``` ~~~[api] PATCH:/users/patch/ip *int:uid=20180000#用户id *string:ip=125.76.52.170#要修改的ip地址 <<< success { "status": true } <<< error { "status": false } ~~~ - 6.更新电话号码```phone``` ~~~[api] PATCH:/users/patch/phone *int:uid=20180000#用户id *string:phone=18322442162#要修改的电话号码 <<< success { "status": true } <<< error { "status": false } ~~~ - 7.更新邮箱```email``` ~~~[api] PATCH:/users/patch/email *int:uid=20180000#用户id *string:email=xuefeng@kcalb.wang#要修改的邮箱 <<< success { "status": true } <<< error { "status": false } ~~~ - 8.更新标签```tagid```,格式如下: ```json ["001", "002", "003","004",...] ``` ~~~[api] PATCH:/users/patch/tag *int:uid=20180000#用户id *json:tagid=["001", "002", "003"]#要修改的标签数组 <<< success { "status": true } <<< error { "status": false } ~~~ - 9.更新```registrationid``` ~~~[api] PATCH:/users/patch/registrationid *int:uid=20180000#用户id *string:registrationid=18071adc0308aa85504#要修改的registrationid <<< success { "status": true } <<< error { "status": false } ~~~ - 10.头像 ```head``` ``` 注:请求此API前必须先上传头像,上传成功后会返回头像地址``` ~~~[api] PATCH:/users/patch/head *int:uid=20180000#用户id *string:headimg=/users/up/20180000/_20180000_head__20171225092608_288.png#头像图片的地址 <<< success { "status":true } <<< error { "status": false } ~~~ - 11.密码 ```password``` ~~~[api] PATCH:/users/patch/password *int:uid=20180000#用户id *string:password=123456#更新后的密码 *string:vcode= #验证码 *string:code= #验证码校验码 <<< success { "status":true } <<< error { "status": false } ~~~ - 12.生源地 省 ```place``` ~~~[api] PATCH:/users/patch/place *int:uid=20180000#用户id *string:place=甘肃#更新后的省 <<< success { "status":true } <<< error { "status": false } ~~~ - 12.生源地 市/县 ```city``` ~~~[api] PATCH:/users/patch/city *int:uid=20180000#用户id *string:city=兰州#更新后的省 <<< success { "status":true } <<< error { "status": false } ~~~