文档
测试

userGroundPondList

POST
api/v1/userGroundPondList

接口描述

商家钓场鱼塘列表

请求参数

参数名
类型
描述
必填
user_id
integer
用户id
必填
token
integer
用户token
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/userGroundPondList', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 15, 'token' => 19, ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/userGroundPondList" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "user_id": 15, "token": 19 } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": [ { "id": 2, "name": "接口测试钓场", "pond": [ { "id": 10, "ground_id": 2, "name": "接口测试鱼塘", "type": 1, "status": 2, "src": "http:\/\/daodao.shenruxiang.com\/0b11e1ea0ba5edf41d80a06f96dc980c.jpg", "price": "100.00", "start_time": "2020-09-13 10:00:00", "end_time": "2020-09-13 10:00:00", "pond_fish": [ { "name": "鲤鱼", "price": "15.00", "pond_id": 10 }, { "name": "鲫鱼", "price": "20.00", "pond_id": 10 } ] }, { "id": 17, "ground_id": 2, "name": "接口测试鱼塘", "type": 1, "status": 2, "src": "http:\/\/daodao.shenruxiang.com\/0b11e1ea0ba5edf41d80a06f96dc980c.jpg", "price": "100.00", "start_time": "2020-09-14 10:00:00", "end_time": "2020-09-14 10:00:00", "pond_fish": [] } ] }, { "id": 3, "name": "青鱼湾休闲垂钓园", "pond": [] } ] }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/userGroundPondList" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":15,"token":19}'