用户API

用户相关操作的API

获取用户profile

请求方式:GET

请求地址:http://{{host}}{{api}}/user-profile/show-profile/{uid?}

详细说明:

获取自己的profile ::http://{{host}}{{api}}/user-profile/show-profile获取他人的profile ::http://{{host}}{{api}}/user-profile/show-profile/13

返回示例:

                                {
    "status": "success",
    "status_code": 200,
    "data": {
        "id": 70235,
        "name": "HXR",
        "avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJRQl1SOr0KyOibeIhWDdZBicPfXlSonibCHq5mAQdO2KToqHkYXq8xIdRk7x9ddrO1GQL7UCpTgJiaTg/132",
        "sex": 1,
        "profile": "假设我们有一个专为游戏收藏家所设计的网页应用程序。如果游戏收藏家收藏超过一百款游戏,我们会希望他们来说明下为什么他们会拥有这么多游戏。比如说他们有可能经营了一家二手游戏商店,或者只是为了享受收集的乐趣。为了在特定条件下加入此验证需求,可以在 Validator 实例中使用 sometimes 方法。",
        "birth_date": "2018-05-08",
        "user_tags": [],
        "user_resume": [
            {
                "id": 6,
                "cid": 1,
                "content": "查询构造器也可以编写 join 语法。若要执行基本的「inner join」,你可以在查询构造器实例上使用 join 方法。传递给 join 方法的第一个参数是你要 join 数据表的名称,而其它参数则指定用来连接的字段约束。当然,如你所见,你可以在单个查找中连接多个数据表:
",
                "date_range": {
                    "date_range": 0.6,
                    "unit": "年"
                },
                "name": "nework",
                "logo": ""
            }
        ]
    }
}

获取加入过得DAO

请求方式:GET

请求地址:http://{{host}}{{api}}/user-profile/former-company-list/:company_name

详细说明:

参数company_name:

  1. 获取全部列表时不传该参数 请求url:http://{{host}}/user-profile/former-company-list

  2. 搜索DAO名称传该参数 请求url:http://{{host}}/user-profile/former-company-list/test

返回示例:

                                {
    "status": "success",
    "status_code": 200,
    "data": [
        {
            "cid": 35,
            "name": "test123",
            "logo": "http://img.pmcaff.com/FkJDsODJpYo0nLIp4x19RXbIQ2X5-picture",
            "date_range": {
                "date_range": 0,
                "unit": "年"
            },
            "pivot": {
                "uid": 70253,
                "cid": 35
            }
        }
    ]
}

获取user详情

请求方式:GET

请求地址:https://api-nework.cs.pmcaff.com/nework/v2/user/show-me

返回示例:

                                {
    "status": "success",
    "status_code": 200,
    "data": {
        "id": 70235,
        "phone": "18311168270",
        "openid": "o6pAu1sMDoNqc4vZE9L-U_UApUmg",
        "nkc": {
            "balance_nkc": 896.2,
            "freeze_nkc": 0
        },
        "sign": 7,
        "invite": 0,
        "invite_id": 0,
        "continuity_sign": 3,
        "ctime": "2018-08-29 16:30:12",
        "headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJRQl1SOr0KyOibeIhWDdZBicPfXlSonibCHq5mAQdO2KToqHkYXq8xIdRWjmiatOWdlAtnrqolribuMKw/132",
        "nickname": "没没、",
        "inviteId": "6n0d537eRkev60LVgjz14wA8",
        "todayIncome": "1.00",
        "nKcCnyRate": "0.06",
        "nkcCny": 0.06,
        "nkcFloat": 50
    }
}

Last updated