ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
该页存放雇主、民工相关的列表信息,和其他的信息。 [TOC=2] ## 枚举变量 ### 认证状态 | 可选值 | 说明 | | --- | --- | | pending | 认证中 | | succeed | 认证通过 | | failed | 认证失败 | ### 性别 | 可选值 | 说明 | | --- | --- | | male | 男 | | female | 女 | | secret | 保密 | ## 雇主列表(分页) ~~~[api] get:/user/employer int:current_page=1#当前页 int:page_number=10#页码 <<< success //首页列表 { "code": 0, "data": { "data": [ { "id": 2, "name": "123",//用户昵称 "recent_login_time": "2018-02-08 17:37:16",//最后一次登录时间 "avatar": "",//头像地址 "phone": "15181474781",//手机号 "rate_info": {//评分相关 "rate1": 85, "rate2": 85, "rate3": 85, "total": 0,//总被评价次数 "update_time": "2018-02-08 17:37:16"//评价更新时间 } }, "address": [ { "id": 4, "user_id": 3, "is_default": false, "name": "hux", "phone": "13551347777", "province": "山东省", "city": "潍坊市", "district": "寿光市", "town": "古城街道", "area": "古城区域", "village": "曹家村", "area_id": 135 } ] ], "currentPage": 1,//当前页 "pageNumber": 10,//页码 "count": 2//总条数 } } <<< success //分页返回 { "code": 0, "data": { "data": [ { "id": 1, "name": "system", "recent_login_time": "2018-02-08 17:02:53", "avatar": null, "phone": null, "rate_info": null } ] } } ~~~ ## 民工列表(分页) ~~~[api] get:/user/labour int:currentPage=1#当前页 int:pageNumber=10#页码 <<< success // 列表返回 { "code": 0, "data": { "data": [ { "id": 2, "name": "",//用户昵称 "recent_login_time": "2018-02-09 12:23:09",//最后登录时间 "level_points": 0,//等级积分 "avatar": null,//头像地址 "birthday": null,//生日 "gender": "secret",//性别 "verify_status": null,//认证状态 "interviewed": 0,// "phone": "15181474781",//手机号 "vip_card": null,//会员卡 "rate_info": {//评分相关 "rate1": 85, "rate2": 85, "rate3": 85, "total": 0,//总被评论次数 "update_time": "2018-02-09 12:23:08"//更新时间 }, "real_name_info": null,//认证信息 "serviceRegions":[ ],//服务范围 "job_categories":[] } ], "currentPage": 1,//当前页 "pageNumber": 1,//页码 "count": 1//总条数 } } <<< success //分页返回 { "code": 0, "data": { "data": [ { "id": 1, "name": "system", "recent_login_time": "2018-02-08 17:02:53", "level_points": 0, "avatar": null, "birthday": null, "gender": "secret", "verify_status": null, "interviewed": 0, "phone": null, "vip_card": null, "rate_info": null, "real_name_info": null, "serviceRegions":[ ] } ] } } ~~~ ## 雇主用工地址 >[info] 雇主用工地址就不分页了 ~~~[api] get:/user/getEmployerAddress *string:id=0#雇主id <<< success { "code": 0, "data": { "data": [ { "id": 1, "user_id": 2, "is_default": false, "name": "wac", "phone": "15181474781", "province": "山东省", "city": "潍坊市", "district": "寿光市", "town": "古城街道", "area": "古城区域", "village": "安家村", "area_id": 135 } ] } } ~~~ ## 民工会员期限设置 ~~~[api] get:/user/updateLabour *array:user_list=[1,2]#用户id数组 *date:ent_time=2018-02-02#到期时间 <<< success { "code": 0 } <<< error { "code": -1, "msg": "到期时间格式不正确" } ~~~ ## 雇主搜索 ~~~[api] get:/searchEmployer *string:search=15181474781#雇主昵称或者手机号 <<< success { "code": 0, "data": { "data": [ { "id": 2, "name": "",//用户昵称 "recent_login_time": "2018-02-09 12:23:09",//最后登录时间 "level_points": 0,//等级积分 "avatar": null,//头像地址 "birthday": null,//生日 "gender": "secret",//性别 "verify_status": null,//认证状态 "interviewed": 0,// "phone": "15181474781",//手机号 "vip_card": null,//会员卡 "rate_info": {//评分相关 "rate1": 85, "rate2": 85, "rate3": 85, "total": 0,//总被评论次数 "update_time": "2018-02-09 12:23:08"//更新时间 }, "real_name_info": null,//认证信息 "serviceRegions":[ ],//服务范围 "job_categories":[] } ] } } ~~~ ## 民工搜索 ~~~[api] get:/searchLabour *string:search=15181474781#民工昵称或者手机号 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "system", "recent_login_time": "2018-02-08 17:02:53", "level_points": 0, "avatar": null, "birthday": null, "gender": "secret", "verify_status": null, "interviewed": 0, "phone": null, "vip_card": null, "rate_info": null, "real_name_info": null, "serviceRegions":[ ] } ] } } ~~~