🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC=2] ## 枚举变量 ### 性别说明: | 可选值 | 说明 | | --- | --- | | male | 男 | | female | 女 | | secret | 保密 | ## 民工列表 >[info] 下面可选参数表示筛选的值,这里这是测试的默认值 。 >limit 表示需要的条数,前端根据自己的需要填写。 >其他参数填写的 0 , 0 表示不筛选那个条件 ~~~[api] get:/labour/list int:current_page=1#当前页 int:page_number=10#页码 int:job_category_id=0#工种id int:rate=0#分值 int:member_number=0#队伍人数 int:service_region=0#服务区域id string:rest_date=2018-04-04#不上工时间,默认今天 string:price_order=asc#条件筛选,价格排序 desc 价格高 asc价格低 int:with_shuttle=2#是否接送 1 不要接送 0 需要接送 <<< success { "code": 0, "data": [ { "id": 4, "name": "rrrr",//民工昵称 "avatar": null,//头像地址 "birthday": null,//生日 "gender": "secret",//性别 "member_number": 0,//队伍人数 "rate1": 85, "rate2": 85, "rate3": 85, "job_categories": null,//工种 "price": null//报价 } ] } ~~~ ## 民工详细信息 ~~~[api] get:/labour/detail *int:id=1#民工信息id <<< success { "code": 0, "data": { "id": 2, "name": "",//昵称 "avatar": null,//头像地址 "birthday": null,//生日 "gender": "secret",//性别 详情见枚举变量 "job_categories": [],//工种相关 "vip_card": null,//会员卡 "configs": {//配置信息 "configs": null,//其他配置信息 "rest_in_dates": null,//停止接单日期 数组 "rest_from_date": null,//该日期以后 不接单 "member_number": 0,//队伍人数 "pictures": null//工作照片数组 }, "rate_info": {//评分相关 "rate1": 85, "rate2": 85, "rate3": 85, "total": 0, "update_time": "2018-02-23 14:11:43" } } } ~~~ ## 民工资料(分享页) ~~~[api] get:/labour/getLabourInfo *int:id=0#民工的id <<< success { "code": 0, "data": { "user_info": { "id": 3, "name": "王大锤", "avatar": null, "birthday": "1996-07-05", "gender": "secret", "interviewed": 3, "job_categories": [ { "id": 22, "job_category_id": 1, "name": "挑脊作席", "vegetables": null }, { "id": 21, "job_category_id": 3, "name": "拔园清棚", "vegetables": null } ], "vip_card": null, "configs": { "configs": null, "rest_in_dates": null, "rest_from_date": null, "member_number": 2, "pictures": null, "price": 0, "description": null }, "rate_info": { "rate1": 85, "rate2": 85, "rate3": 85, "total": 0, "update_time": "2018-03-12 14:56:31" }, "service_regions": [ { "id": 29, "province": "山东省", "city": "潍坊市", "district": "寿光市", "town": "孙家集街道", "area": "孙家集区域", "area_id": 319, "villages": [], "is_all": false }, { "id": 28, "province": "山东省", "city": "潍坊市", "district": "寿光市", "town": "化龙镇", "area": "化龙区域", "area_id": 399, "villages": [ { "id": 400, "name": "马庄村", "parent_id": 399 } ], "is_all": false } ], "reservation": 0, "work": 0, "is_collection": false }, "rates": []//评价的内容 } } <<< error { "code": -1, "msg": "参数错误" } ~~~