💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC=2] ## 枚举变量 ### 性别说明(gander): | 可选值 | 说明 | | --- | --- | | male | 男 | | female | 女 | | secret | 保密 | ### 认证状态(status): | 可选值 | 说明 | | --- | --- | | pending | 认证中 | | succeed | 认证成功 | ### 上传类型(type): | 可选值 | 说明 | | --- | --- | | avatar | 头像 | | work_photo | 工作照 | | id_card | 身份证 | | rate | 评价 | ## 个人资料 ~~~[api] get:/userInfo/get <<< success { "name": "",//用户昵称 "recent_login_time": "2018-01-25 11:40:46",//最后一次登录时间 "avatar": null,//头像地址 "birthday": null,//生日 "gender": "secret",//性别 "verify_status": null,//认证状态 详情见枚举变量 "phone": "15181474781",//手机号 "level_points": 0, "vip_card": null,//会员卡 "rate_info": {//信用评分 "rate1": 85, "rate2": 85, "rate3": 85, "total": 0, "update_time": "2018-01-25 16:33:53" }, "balance": 0,//余额 "point": 0//积分 } ~~~ ## 个人详细资料 ~~~[api] get:/userInfo/getInfo <<< success { "code": 0, "data": { "id": 2, "name": "cece", "recent_login_time": "2018-03-16 14:32:49", "level_points": 0, "avatar": null, "birthday": "2018-03-16", "gender": "secret", "verify_status": "succeed", "interviewed": 0, "phone": "13551347777", "vip_card": { "name": "vip", "level": 1, "start_time": "2018年03月15日", "end_time": "2018年03月31日", "discount": 100, "remained_days": 14 }, "rate_info": { "rate1": 85, "rate2": 85, "rate3": 85, "total": 0, "update_time": "2018-03-12 14:22:48" }, "user_config": { "configs": null, "rest_in_dates": null, "rest_from_date": null, "member_number": 3, "pictures": null, "price": 2312300, "description": "213213" }, "service_regions": [ { "id": 14, "province": "山东省", "city": "潍坊市", "district": "寿光市", "town": "化龙镇", "area": "化龙区域", "area_id": 399, "villages": [], "is_all": true } ], "job_categories": [ { "id": 10, "job_category_id": 6, "name": "拾掇蔬菜", "vegetables": [ { "id": 3, "icon": "http://www.baidu.com", "name": "大西红柿", "category_id": 6, "description": "大西红柿", "category2_id": 4 } ] } ], "collection": 0,//收藏人数 "reservation": 0//被预约次数 } } ~~~ ## 获取头像上传途径 >[info] 上传参数 ```json "OSSAccessKeyId": "oss_id", "policy": "policy", "Signature": "signature", "key":"key", "success_action_status":"201", "file":"raw file data" ``` >[info] 提交地址为返回参数中的host >[danger] 注:上传方式 需要使用表单 `FormData` 格式上传 >注:返回的上传参数中若有 key ,必须使用返回的 key ,如果没有,就需要使用返回的 `dir+/filename` 的格式拼接文件名 >注:`filename` 是自己定义的文件名 >注: file 字段**必须在最后**,类型根据平台不同而不同,兼容 `FormData`即可 >注:上传成功之后会返回一个 xml 格式的文件,请解析 xml 文件 。 >注:取出 xml 文件的 location 当做图片或者视频地址 提交到服务器 >注:上传图片请自定义文件名 ~~~[api] get:/userInfo/getUpdatePath *string:type=avatar#上传类型 <<< success //上传头像返回 { "code": 0, "data": { "oss_id": "LTAIKQgJHXpUTvDf", "host": "https://pengdada-test.oss-cn-hangzhou.aliyuncs.com",//上传地址 "policy": "eyJleHBpcmF0aW9uIjoiMjAxOC0wMy0xM1QxNDo1MzozOFoiLCJjb25kaXRpb25zIjpbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMCwxMDQ4NTc2MF0sWyJlcSIsIiRrZXkiLCJ3ZWJhcHBcL2xhYm91clwvMlwvMiJdXX0=",//上传参数 "signature": "4KKA42F2ygbUVp+UfFbZJjqoj8I=",//上传参数 "expire": 1520924018,//上传时间限制 "dir": "webapp/labour/2", "max_size": 10485760, "key": "webapp/labour/2/2" } } <<< success //上传身份证、工作照返回 { "code": 0, "data": { "oss_id": "LTAIKQgJHXpUTvDf", "host": "https://pengdada-test.oss-cn-hangzhou.aliyuncs.com",//上传地址 "policy": "eyJleHBpcmF0aW9uIjoiMjAxOC0wMy0xM1QxNTozODo0NFoiLCJjb25kaXRpb25zIjpbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMCwxMDQ4NTc2MF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJ3ZWJhcHBcL2xhYm91clwvMlwvaWRfY2FyZCJdXX0=", "signature": "bQJmwYVTkYZSfVBXLtAMzT34w3s=", "expire": 1520926724, "dir": "webapp/labour/2/id_card", "max_size": 10485760 } } ~~~