文档
测试

groundUpdate

POST
api/v1/groundUpdate

接口描述

更新钓场

请求参数

参数名
类型
描述
必填
user_id
integer
用户id:1
必填
token
integer
用户token:312dsae123e12da
必填
ground_id
string
钓场id
必填
name
string
钓场名称:青岛黄花鱼钓场
必填
src
string
钓场图片/视频:http:xx.com/xx1.jpg,http:xx.com/xx2.jpg
必填
address
string
钓场地点(天津市武清区大屯路)
必填
mobile
string
手机号
必填
lng
string
经度:116.443938
必填
lat
string
纬度:39.961184
必填
position
string
钓场位置:杨柳树1023号
必填
place
string
导航定位
必填
area
float
面积:101.63
必填
desc
string
钓场描述:鱼塘好
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/groundUpdate', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 11, 'token' => 20, 'ground_id' => 'est', 'name' => 'quo', 'src' => 'eos', 'address' => 'cupiditate', 'mobile' => 'unde', 'lng' => 'eaque', 'lat' => 'nisi', 'position' => 'sequi', 'place' => 'ducimus', 'area' => 8615.455301, 'desc' => 'officia', ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/groundUpdate" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "user_id": 11, "token": 20, "ground_id": "est", "name": "quo", "src": "eos", "address": "cupiditate", "mobile": "unde", "lng": "eaque", "lat": "nisi", "position": "sequi", "place": "ducimus", "area": 8615.455301, "desc": "officia" } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "更新成功", "data": [] }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/groundUpdate" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":11,"token":20,"ground_id":"est","name":"quo","src":"eos","address":"cupiditate","mobile":"unde","lng":"eaque","lat":"nisi","position":"sequi","place":"ducimus","area":8615.455301,"desc":"officia"}'