文档
测试

userGroundOrderList

POST
api/v1/userGroundOrderList

接口描述

商家钓场订单

请求参数

参数名
类型
描述
必填
user_id
integer
用户id
必填
token
integer
用户token
必填
ground_id
integer
钓场id
必填
pond_id
integer
鱼塘id
必填
user_name
string
关键字 钓户昵称
必填
order_status
integer
订单状态 0所有订单 1已支付 2已完成 3已回购
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/userGroundOrderList', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 20, 'token' => 18, 'ground_id' => 7, 'pond_id' => 4, 'user_name' => 'assumenda', 'order_status' => 19, ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/userGroundOrderList" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "user_id": 20, "token": 18, "ground_id": 7, "pond_id": 4, "user_name": "assumenda", "order_status": 19 } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": { "current_page": 1, "data": [ { "id": 1, "order_num": "123", "ground_id": 1, "pond_id": 1, "user_name": "彭123", "origin_pond_id": 0, "user_id": 1, "num": 1, "seat": 1, "user_status": 1, "order_status": 1, "created_at": "2020-09-07 22:15:36", "updated_at": "2020-09-07 22:15:39", "ground": { "id": 1, "user_id": 1, "name": "青鱼湾休闲垂钓园", "src": "\/storage\/2020-09-07\/5bcd14e25001f8cc1897a030d0a16854.jpg", "address": "天津市武清区杨柳树", "lng": "116.443938", "lat": "39.961184", "position": "杨柳树1023号", "area": "153.00", "desc": "钓场描述", "status": 1, "visit_num": 0, "ticket_num": 0, "fish_weight": 0, "auth_status": 1, "created_at": "2020-09-07 03:25:54", "updated_at": "2020-09-07 13:02:05" }, "ground_pond": { "id": 1, "ground_id": 1, "user_id": 1, "name": "鲤鱼塘", "water_depth": 100, "type": 1, "status": 1, "seat_type": 1, "seat_total": 100, "seat_select": 50, "seat_num": "1,2,3,4,5", "people_num": 66, "fish_weight": 180, "price": "100.00", "desc": "鱼塘描述", "src": "\/xx1.jpg,\/xx2.jpg", "is_log": 0, "start_time": "2020-08-01 10:00:00", "end_time": "2020-08-10 10:00:00", "created_at": "2020-09-07 14:15:37", "updated_at": "2020-09-07 15:28:17" } }, { "id": 2, "order_num": "124", "ground_id": 1, "pond_id": 2, "user_name": "武大", "origin_pond_id": 0, "user_id": 53, "num": 1, "seat": 2, "user_status": 2, "order_status": 1, "created_at": "2020-09-07 22:16:13", "updated_at": "2020-09-07 22:16:16", "ground": { "id": 1, "user_id": 1, "name": "青鱼湾休闲垂钓园", "src": "\/storage\/2020-09-07\/5bcd14e25001f8cc1897a030d0a16854.jpg", "address": "天津市武清区杨柳树", "lng": "116.443938", "lat": "39.961184", "position": "杨柳树1023号", "area": "153.00", "desc": "钓场描述", "status": 1, "visit_num": 0, "ticket_num": 0, "fish_weight": 0, "auth_status": 1, "created_at": "2020-09-07 03:25:54", "updated_at": "2020-09-07 13:02:05" }, "ground_pond": { "id": 2, "ground_id": 1, "user_id": 1, "name": "鲤鱼塘", "water_depth": 100, "type": 1, "status": 1, "seat_type": 1, "seat_total": 100, "seat_select": 50, "seat_num": "1,2,3,4,5", "people_num": 66, "fish_weight": 0, "price": "100.00", "desc": "鱼塘描述", "src": "\/xx1.jpg,\/xx2.jpg", "is_log": 0, "start_time": "2020-08-01 10:00:00", "end_time": "2020-08-10 10:00:00", "created_at": "2020-09-07 14:18:08", "updated_at": null } } ], "first_page_url": "http:\/\/www.dyapi.com:8888\/api\/v1\/userGroundOrderList?page=1", "from": 1, "next_page_url": null, "path": "http:\/\/www.dyapi.com:8888\/api\/v1\/userGroundOrderList", "per_page": 20, "prev_page_url": null, "to": 2 } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/userGroundOrderList" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":20,"token":18,"ground_id":7,"pond_id":4,"user_name":"assumenda","order_status":19}'