文档
测试

groundUserOrderList

POST
api/v1/groundUserOrderList

接口描述

用户鱼票列表

请求参数

参数名
类型
描述
必填
user_id
integer
用户id
必填
token
integer
用户token
必填
page
integer
页数 可选 默认1
必填
ground_name
string
present 钓场名称 可选
必填
user_status
integer
present 订单状态 1待签到2已签到3已结束4退款中 可选
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/groundUserOrderList', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 13, 'token' => 14, 'page' => 5, 'ground_name' => 'id', 'user_status' => 17, ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/groundUserOrderList" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "user_id": 13, "token": 14, "page": 5, "ground_name": "id", "user_status": 17 } 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": "12【订单id】", "ground_id": "2【钓场id】", "user_name": "秃头已治愈【用户昵称】", "user_id": "1【用户id】", "price": "100.00【门票价】", "seat": "5【座位数】", "user_status": 1, "pond_id": "18【鱼塘id】", "ground": { "id": "2【钓场id】", "name": "接口测试钓场【钓场名称】" }, "ground_pond": { "id": "19【钓场id】", "name": "接口测试鱼塘【鱼塘名称】", "pond_fish": [ { "name": "鲤鱼【鱼种名】", "price": "15.00【鱼种价格】", "pond_id": 19 }, { "name": "鲫鱼", "price": "20.00", "pond_id": 19 } ] } } ], "first_page_url": "https:\/\/fish.shenruxiang.com\/api\/v1\/groundUserOrderList?page=1", "from": 1, "next_page_url": null, "path": "https:\/\/fish.shenruxiang.com\/api\/v1\/groundUserOrderList", "per_page": 20, "prev_page_url": null, "to": 1 } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/groundUserOrderList" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":13,"token":14,"page":5,"ground_name":"id","user_status":17}'