~~~[api] get:http://dev.kekezu.net/api/user/myBuyGoods *token#登录获取 *type#购买类型 1是作品 2是服务 goods_status#购买类型为1时的筛选状态 2://已付款 3://交易完成 4://其他 service_status#购买类型为2时的筛选状态 0://待受理 1,2://进行中 3,4://交易完成(待评价属于交易完成) 5,6,9, 7,8://其它 page#页数 <<< success 传参数type=1时返回结果 { "code": 1000, "message": "获取我购买的订单列表成功", "data": { "total": 22,---------------------------总条数 "per_page": 5,---------------------总页数 "current_page": 1,----------------当前页 "last_page": 5,---------------------末页 "next_page_url": "http://dev.kekezu.net/api/user/myBuyGoods?page=2", "prev_page_url": null, "from": 1, "to": 5, "data": [ { "id": 552, "title": "这回以各作品", --------------标题 "object_id": 135,-------------------------------作品id "cash": "200.00",---------------------金额 "status": "交易完成",-----------------状态 "created_at": "2016-11-24 16:31:17",-----------创建时间 "pay_time": "2016-11-24 16:32:07",------------支付时间 "confirm_time": "2016-11-24 16:32:40",--------确认时间 "cate_id": 173, "unit": "件",----------------------------------------作品单位 "name": "quanke",------------------------------购买人 "cate_name": "游戏投票",-----------------------作品分类 "sales_num": 0,--------------------------------成交量 "comments_num": null,------------------------总评价数目 "good_comment": null,---------------------------好评数 "cate_name": "", "status_num": 0,,---------------------------------订单状态值 0:未支付 1:已支付 2:确认收货 3:维权中 4:交易正常结束 5:交易非正常结束(维权成功,退款等) "img": "http://kppw.io/attachment/sys/43e320fdc23d01f7097dee569678cb89.gif",-----------作品封面 "percent": 100----------------------------好评率 }, { "id": 535, "title": "作品 新的作品", "cash": "100.00", "status": "维权结束", "created_at": "2016-11-03 11:32:58", "pay_time": "2016-11-03 11:33:07", "confirm_time": null, "cate_id": 171, "unit": "件", "name": "quanke", "cate_name": "", "img": "http://dev.kekezu.net/attachment/sys/6922f5407c520e6c9c9af1f335735c95.png" }, { "id": 532, "title": "1111", "cash": "11.00", "status": "维权结束", "created_at": "2016-11-02 17:48:04", "pay_time": "2016-11-02 17:48:13", "confirm_time": null, "cate_id": 204, "unit": "件", "name": "quanke", "cate_name": "", "img": "http://dev.kekezu.net/attachment/default/2016/09/22/3597c8669bbad17c6265aa4a950f0967.jpg" }, { "id": 530, "title": "我带我去", "cash": "1.00", "status": "维权结束", "created_at": "2016-11-02 17:06:48", "pay_time": "2016-11-02 17:06:58", "confirm_time": null, "cate_id": 306, "unit": "件", "name": "quanke", "cate_name": "图标设计", "img": "http://dev.kekezu.net/attachment/sys/e0006d51de5d80b9adcc5378206ee906.jpg" }, { "id": 503, "title": "我单位签订", "cash": "1.00", "status": "交易完成", "created_at": "2016-11-01 16:54:14", "pay_time": "2016-11-01 17:00:04", "confirm_time": "2016-11-01 17:03:41", "cate_id": 281, "unit": "件", "name": "quanke", "cate_name": "家政服务", "img": "http://dev.kekezu.net/attachment/sys/08a9d0de7897f0a575551306060cb399.jpg" } ] } } 传参数type=2时返回结果 { "code": 1000, "message": "获取我购买的订单列表成功", "data": { "total": 5, "per_page": 5, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "from": 1, "to": 5, "data": [ { "id": 250, "title": "文具设计11",---------------------------雇佣标题 "status": "待受理",-----------------------------雇用状态 "employ_type": 0,----------------------------------------------雇佣类型 0:雇佣 1:服务 "created_at": "2016-11-29 00:00:00",------创建时间 "employee_num": 0,--------------------------成交数(被雇佣人已经被雇佣次数) "status_num": 0,-------------------------状态 0表示雇佣创建 1表示接受雇佣 2表示已经交付 3表示验收成功 4表示完成 5表示拒绝雇佣 6表示雇主取消任务 7表示雇主维权 8表示威客维权 9表示雇佣过期' "cash": "1111.00",--------------------------------雇佣金额 "img": "http://dev.kekezu.net/attachment/user/2016/11/28/be5f9cceae099ad6950baf11a9a1e694.jpg"-------------雇用人头像 "comments_num": 2,-------------------------总评数(被雇佣人雇佣或服务被评价) "good_comment": 2,------------------------好评数(被雇佣人雇佣或服务被评价) "percent": 100------------------------好评率(被雇佣人雇佣或服务被评价) }, { "id": 157, "title": "似的发射点发射点", "status": "交易完成", "created_at": "2016-09-30 00:00:00", "status_num": 4 "cash": "12.00", "img": "http://dev.kekezu.net/attachment/user/2016/10/20/dec793a922285ad42f219fe037f23799.jpg" }, { "id": 156, "title": "asda是", "status": "交易失败", "created_at": "2016-09-30 00:00:00", "status_num": 7 "cash": "12.00", "img": "http://dev.kekezu.net/" }, { "id": 152, "title": "似的发射点发射点", "status": "交易失败", "created_at": "2016-09-29 00:00:00", "status_num": 7 "cash": "12.00", "img": "http://dev.kekezu.net/attachment/user/2016/10/20/dec793a922285ad42f219fe037f23799.jpg" }, { "id": 151, "title": "123234", "status": "交易失败", "created_at": "2016-09-29 00:00:00", "cash": "12.00", "img": "http://dev.kekezu.net/" } ] } } <<< remark code 1000/1001 message 获取我购买的订单列表成功/缺少参数 data 当code为1000时data ~~~