API接口文档

个人资料修改 - 保存

创建于 2022-11-19 / 93
字体: [默认] [大] [更大]

简要描述

个人资料修改 - 保存

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-10-07

请求URL

personal/save

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

{
    "nickname": "p001",
    "birthday": "2022-11-19",
    "province": "上海",
    "city": "上海市",
    "county": "闵行区",
    "gender": "1"
}
参数名 是否必须 类型 描述
nickname string 昵称
birthday string 生日
province string 所在省
city string 所在城市
county string 所在区/县
gender string 性别(0保密、1女、2男)

返回示例

正确时返回

{
    "msg": "修改成功",
    "code": 0,
    "data": {
        "id": "469",
        "number_code": "8732997469",
        "system_type": "default",
        "alipay_openid": "",
        "weixin_openid": "",
        "weixin_unionid": "",
        "weixin_web_openid": "",
        "baidu_openid": "",
        "toutiao_openid": "",
        "toutiao_unionid": "",
        "qq_openid": "",
        "qq_unionid": "",
        "kuaishou_openid": "",
        "status": "0",
        "token": "a8422d2fb14dd8323a44e7e0c7bceb47",
        "username": "pppppp",
        "nickname": "p001",
        "mobile": "",
        "email": "",
        "gender": "1",
        "avatar": "http://shopxo.com/static/index/default/images/default-user-avatar.jpg",
        "province": "上海",
        "city": "上海市",
        "county": "闵行区",
        "birthday": "2022-11-19",
        "address": "浦江科技广场",
        "integral": "0",
        "locking_integral": "0",
        "referrer": "0",
        "plugins_user_level": "0",
        "plugins_distribution_level": "0",
        "is_delete_time": "0",
        "add_time": "1668859279",
        "upd_time": "1668859689",
        "add_time_text": "2022-11-19 20:01:19",
        "upd_time_text": "2022-11-19 20:08:09",
        "gender_text": "女",
        "mobile_security": "",
        "email_security": "",
        "address_info": "上海上海市闵行区浦江科技广场",
        "user_name_view": "pppppp"
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

用户基础数据

备注

更多返回错误代码请看首页的错误代码描述

1 人点赞过