文档
测试

提交发布土地(资源)

POST
https://www.lzjia.com/api/indextest.php/user/admin_land/add_post?category_id=16&post_title=标题&goods_trip_mode=6&goods_service_labelids[]=16&goods_service_labelids[]=17&goods_sn=土地编码&price=1111&unit=席&shelf_life=55&attribute[shelf_life]=亩&min_stock_alarm=1&attribute[min_stock_alarm]=年&characteristic_service=价格最低&address=广东潮州市湘桥区&lng=119.368489&lat=33.013797&more[thumbnail]=default/20200717/ac06206421a170eda207703eec788821.jpeg&published_time=2020-07-17 17:21:57&province_id=19&city_id=307&area_id=3146

请求头

参数名
类型
描述
必填
xx-token
string
示例:3f5c174b5ce238dcb81c08eb07ec217d8fc6552877312400b7df84d114889582
必填
xx-device-type
string
示例:web
必填

请求参数

参数名
类型
描述
必填
category_id
int
示例:16
必填
post_title
string
示例:标题
必填
goods_trip_mode
int
示例:6
必填
goods_service_labelids[]
int
示例:16
必填
goods_sn
string
示例:土地编码
必填
price
int
示例:1111
必填
unit
string
示例:席
必填
shelf_life
int
示例:55
必填
attribute[shelf_life]
string
示例:亩
必填
attribute[min_stock_alarm]
string
示例:年
必填
characteristic_service
string
示例:价格最低
必填
address
string
示例:广东潮州市湘桥区
必填
lng
float
示例:119.368489
必填
lat
float
示例:33.013797
必填
province_id
int
示例:19
必填
area_id
int
示例:3146
必填
city_id
int
示例:307
必填
more[thumbnail]
string
示例:default/20200717/ac06206421a170eda207703eec788821.jpeg
必填
published_time
string
示例:2020-07-17 17:21:57
必填
photo_urls
photo_urls下面说明文档
可选

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:添加成功!
必填
data
string
示例:ok
必填

说明 / 示例

上传的格式是这个格式。 photo_urls[]: portal/20200727/f50fd49e043c660426db2564b374a803.jpeg photo_urls[]: portal/20200727/91996a39d7a96fb9c55858c52def7de6.jpeg