文档
测试

修改信息(资料,爱好,相册,择偶,开关)

POST
http://friends.e.wxiy.com/api/user/profile

接口描述

每一项都是非必填项,填了才会修改

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填
token
sting
密匙
必填

请求参数

参数名
类型
描述
必填
basic
object
基本信息
可选
nickname
string
昵称
必填
place
string
居住地 place = country-province-city-district
必填
native
string
籍贯 native = country-province-city-district
必填
bio
string
格言
必填
age
int
年龄
必填
stature
string
身高(cm)
必填
weight
string
体重(kg)
必填
education
string
学历 选择:初中 高中 大专 本科 硕士 博士 海龟等 自定义
必填
marry
string
婚况 选择:已婚 未婚
必填
mothincome
string
月收入低-月收入高
必填
nation
string
民族 选择:汉等
必填
house
string
房子 选择:有 无
必填
car
string
车 选择:有 无
必填
avatar
string
头像
必填
gender
string
性别 (完善信息时必填) 选择:男 女
可选
hobby
object || string
爱好 array时{"羽毛球",”篮球“} || string时 羽毛球,篮球
可选
object
object
择偶条件
可选
gender
string
性别 选择:男 女
必填
place
string
居住地 place = country-province-city-district
必填
age
string
年龄最低-年龄最高
必填
stature
string
身高最低(cm)-身高最高(cm)
必填
weight
string
体重最低(kg)-体重最高(kg)
必填
education
string
学历
必填
marry
string
婚况
必填
mothincome
string
月收入最低-月收入最高
必填
nation
string
民族
必填
house
string
房子
必填
car
string
车子
必填
is_photo
int
是否有相册 1是 0否
必填
native
string
籍贯
必填
photo
object
相册
可选
imgs
array
图片 {"url1",”url2“}
必填
pass
string
密码
必填
switch
object
开关
可选
attention
int
关注:0=关闭,1=显示
必填
pletter
int
私信:0=关闭,1=显示
必填
sound
int
声音:0=关闭,1=显示
必填
shake
int
震动:0=关闭,1=显示
必填
info
int
资料:0=隐藏,1=显示
必填
gift
int
礼物:0=关闭,1=开启
必填
push
int
推送:0=关闭,1=开启
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:设置成功
必填
time
string
示例:1598338690
必填
data
object
示例:null
必填