##枚舉類型
**搜索類型 SEARCH_TYPE**
~~~
SEARCH_TYPE_TASK_AND_SELLER `1` 任務及商家
SEARCH_TYPE_TASK `2` 任務
SEARCH_TYPE_SELLER `3` 商家
SEARCH_TYPE_USER `4` 用戶
~~~
## Parameters
|Name|Type|Description|
|----|----|----|
|type|`<SEARCH_TYPE>`|搜索類型|
|text|string (required)|搜索關鍵詞|
|page|number|第幾頁|
|arc|number|距離當前位置的距離|
## Response
**搜索任務及商家**
~~~
Status: 200 OK
{
"task": [
{
"id": 12,
"title": "吖吖",
"desc": "Go美廉美超市",
"assign_type": 0,
"user_id": "73",
"status": 2,
"image": {
"name": "767D1F6B1FB84FAF9379B6FCBC0A85AF.png",
"color": "#626651",
"width": 1334,
"height": 1000
},
"location": "40.019659838975,116.35164456886",
"geo": {
"lat": "40.019704",
"lng": "116.351618"
}
},
{
"id": 13,
"title": "誰陪我去美廉美超市購物",
"desc": "我想",
"assign_type": 0,
"user_id": "73",
"status": 2,
"image": {
"name": "767D1F6B1FB84FAF9379B6FCBC0A85AF.png",
"color": "#626651",
"width": 1334,
"height": 1000
},
"location": "40.019659838975,116.35164456886",
"geo": {
"lat": "40.019704",
"lng": "116.351618"
}
}
],
"seller": [
{
"id": 36,
"name": "美廉美超市",
"avatar": {
"name": "767D1F6B1FB84FAF9379B6FCBC0A85AF.png",
"color": "#626651",
"width": 1334,
"height": 1000
},
"service_type": "購物",
"credit": 84,
"distribute_status": 1,
"operation_status": 1,
"location": "40.014231,116.361082",
"geo": {
"lat": "40.019704",
"lng": "116.351618"
},
"comment_count": 5
}
]
}
~~~
**搜索任務時返回的響應**
~~~
Status: 200 OK
[
{
"id": 10001,
"title": "我要一杯紅牛",
"desc": "",
"price": 3.6,
"assign_type": 0,
"user_name": "73",
"status": 2,
"image": {
"name": "767D1F6B1FB84FAF9379B6FCBC0A85AF.png",
"color": "#626651",
"width": 1334,
"height": 1000
},
"location": "40.019659839,116.3516445689",
"geo": {
"lat": "40.019704",
"lng": "116.351618"
},
"dist": 1530.9514
}
]
~~~
**搜索商家時返回的響應**
~~~
Status: 200 OK
[
{
"id": 136,
"name": "寬葉面館",
"avatar": {
"name": "767D1F6B1FB84FAF9379B6FCBC0A85AF.png",
"color": "#626651",
"width": 1334,
"height": 1000
},
"service_type": "美食",
"credit": 76,
"distribute_status": 1,
"operation_status": 1,
"location": "30.553705,104.071014",
"geo": {
"lat": "40.019704",
"lng": "116.351618"
},
"dist": 3.072202e-5,
"comment_count": 5
},
{
"id": 137,
"name": "山西面館",
"avatar": {
"name": "767D1F6B1FB84FAF9379B6FCBC0A85AF.png",
"color": "#626651",
"width": 1334,
"height": 1000
},
"service_type": "美食",
"credit": 90,
"distribute_status": 1,
"operation_status": 1,
"location": "40.021995,116.35974",
"geo": {
"lat": "40.019704",
"lng": "116.351618"
},
"dist": 1530.9514,
"comment_count": 5
}
]
~~~
**搜索用戶時返回**
~~~
Status: 200 OK
[
{
"id": 88,
"im_id": 25,
"nickname": "禮亞我",
"avatar": {
"name": "D6F2893F021447A4AECD66A41818623A.png",
"color": "#a6a5a5",
"width": 1239,
"height": 1242
},
"sex": 2,
"cellphone": "18636888851",
"producer_id": 37,
"type": 0,
"status": 0,
"audit_status": 0,
"audit_user_id": 0,
"created_at": "2015-08-31T20:21:02+08:00",
"mark_name": "禮亞唐"
}
]
~~~
##字段描述
**任務**
|字段|示例|備注|
|-|-|-|
|id|10001|任務ID|
|title|我要一杯紅牛|標題|
|desc|我想吃紅牛了|描述|
|price|3.6|價格|
|assign_type|0|派發狀態|
|user|`<USER_MODEL>`|用戶數據|
|status|2|狀態|
|image||圖片|
|location|40.019659839,116.3516445689|地理位置|
|geo|`{GEO}`|地理位置|
|dist|3.072202e-5|距離(單位km)|
**商家**
|字段|示例|備注|
|-|-|-|
|id|136|商家ID|
|name|寬葉面館|商家名稱|
|avatar||商家頭像|
|service_type|美食|服務類型|
|credit|76|信用|
|operation_status|1|營業狀態|
|distribute_status|1|是否提供配送(0:不提供 1:提供)|
|location|30.553705,104.071014|商家坐標(緯度,經度)|
|geo|`{GEO}`|地理位置|
|dist|3.072202e-5|距離(單位km)|
|comment_count|5|評論數|
**用戶**
|字段|示例|備注|
|-|-|-|
|id|88|用戶ID|
|im_id|25|用戶IM ID|
|nickname|禮亞我|用戶昵稱|
|avatar||用戶頭像|
|sex|2|性別|
|cellphone|18636888851|手機號碼|
|producer_id|37|商家ID|
|type|0|類型|
|status|0|狀態|
|audit_status|0|~|
|audit_user_id|0|~|
|created_at|2015-08-31T20:21:02+08:00|創建時間|
|mark_name|禮亞唐|標記|
- 簡介
- Header頭簡介
- 錯誤體簡介
- 通用JSON格式簡介
- 可分頁接口的URL簡介
- 返回狀態碼簡介
- 推送 pusher
- 百度地理位置信息
- 文檔規范
- 模型列表
- 用戶相關模型
- 用戶模型 User
- 用戶擴展模型 UserExtend
- 用戶統計 UserStats
- 通訊錄模型 ContactList
- 商家相關模型
- 商家模型 Producer
- 商家擴展模型 ProducerExtend
- 服務類別模型 ServiceCategorys
- 商品模型 Goods
- 附近商家模型 NearbyProducer
- 商家統計模型 ProducerStats
- 任務相關模型
- 任務模型 Task
- 訂單模型 Order
- 點評 Evaluation
- 附近任務模型 NearbyTask
- 熱門任務 HotTask
- 特殊模型
- 地理位置模型 GEO
- 版本模型 Version
- 喜歡任務模型 LikeTask
- 喜歡人模型 LikeUser
- 喜歡商品模型 LikeGoods
- 收藏模型 Collect
- 統計相關模型
- 微信和支付寶請求記錄
- 錢包相關模型
- 錢包 Wallet
- 錢包問題 WalletQuestion
- 錢包問題答案 WalletAnswer
- 錢包交易記錄 WalletTradeRecord
- 錢包交易記錄明細
- 提現賬戶:WithdrawAccount
- 廣告相關模型
- 搜索相關模型
- 優惠券模型:Coupon
- 投訴模型:Complaint
- 糾紛模型:Dispute
- 服務菜單模型:ServiceMenu
- 活動相關模型
- 買一贈一活動
- 參加活動商品表 BuyOneGoods
- 活動用戶統計表 BuyOneUserStats
- 活動商戶統計表 BuyOneProducerStats
- 用戶版API
- 認證API
- 用戶認證 POST /authorizations
- 用戶API
- 獲取指定用戶 GET /users/{user_id}
- 注冊用戶 POST /users
- 更新 PATCH /users/{user_id}
- 驗證密碼 GET /user/password?password={password}
- 重置密碼 PATCH /user/password
- 檢測手機號碼是以被注冊 GET /user/check-cellphone/{cellphone}
- [停用] 黑名單API 轉移到用戶關系中
- 獲取黑名單列表 GET /blacklist
- 獲取指定用戶黑名單狀態 GET /user-blacklist/{user_id}
- 添加黑名單 POST /user-blacklist
- 取消黑名單 DELETE /user-blacklist/{user_id}
- 通訊錄API
- 拉取通訊錄 GET /contact-list?uuid={?uuid}
- 通訊錄上傳 POST /contact-list
- 編輯通訊錄 PATCH /contact-list/{user_id}
- 刪除指定聯系人 DELETE /contact-list/{user_id}?cellphone={cellphone}
- 用戶關系操作API
- 獲取關系列表 GET /relations
- 添加用戶關系 POST /relations
- 刪除用戶關系 DELETE /relations/{user_id}
- 熱門任務API
- 拉取熱門任務 GET /hot-task
- 任務API
- 獲取任務列表 GET /tasks
- 任務詳情 GET /tasks/{id}
- 發布任務 POST /tasks
- 永久隱藏任務 PATCH /tasks/{id}/hidden
- 結活 PATCH tasks/{id}/complete
- 強制進入搶單模式 PATCH /tasks/{id}/capture
- 刪除任務 DELETE /tasks/{id}
- 訂單API
- 獲取訂單列表 GET /orders
- 獲取訂單詳情 GET /orders/{id}
- 接取任務 POST /orders
- 修改訂單信息 PATCH /orders/{id}
- 提交議價接口 PATCH /orders/{id}/bargain
- 交活 PATCH /orders/{id}/apply
- 取消(退出)任務 DELETE /orders/{id}
- 點評API
- 拉取點評列表 GET /evaluation
- 評價和回評 POST /evaluation
- 廣告API
- 獲取廣告列表 GET /ads
- 隱藏廣告 PATCH /ads/{id}/hidden
- 搜索API
- 搜索:GET /searchs
- 錢包API
- 獲取指定錢包的錢包信息:POST /wallets/{user_id}
- 申請提現:POST /wallets/{wallet_id}/withdraw
- 獲取錢包交易記錄:GET /wallets/{wallet_id}/trades
- 錢包問題API
- 獲取錢包問題列表:GET /wallet-questions
- 獲取需要驗證回答的問題:GET /wallet-questions/{wallet_id}
- 驗證錢包問題答案 POST /wallet-question-answers/check
- 錢包密碼API
- 設置錢包密碼:POST /wallet-passwords/set
- 更改錢包密碼:PATCH /wallet-passwords/{wallet_id}
- 檢查錢包密碼:POST /wallet-passwords/check
- 提現賬戶API
- 獲取指定錢包的提現賬戶:GET /withdraw-accounts
- 添加提現賬戶:POST /withdraw-accounts
- 刪除提現賬戶:DELETE /withdraw-accounts/{id}
- 收藏API
- 收藏列表 GET /collect
- 加入收藏 POST /collect
- 取消收藏 DELETE /collect
- 喜歡商品 API
- 獲取喜歡的商品列表 GET /like/goods
- 添加商品喜歡 POST /like/goods
- 取消商品喜歡 DELETE /like/goods/{goods_id}
- 喜歡任務 API
- 獲取喜歡任務列表 get /like/task
- 添加喜歡任務 POST /like/task
- 取消喜歡 DELETE /like/task
- 喜歡某人 API
- 獲取喜歡的人列表 GET /like/user
- 對某人添加喜歡 POST /like/user
- 取消喜歡某人 DELETE /like/user/{user_id}
- Geo相關API
- 優惠券API
- 獲取指定錢包的優惠券:GET /coupons
- 添加優惠券:POST /coupons
- 文件上傳下載API
- 文件上傳 POST /files
- 音頻下載 GET /download/audio/{id}
- 支付API
- 支付任務:POST /paytask
- 快活錢包充值:POST /paywallet
- 支付任務同步處理:POST /syncnotifytask
- 錢包充值同步處理:POST /syncnotifywallet
- 投訴API
- 發起投訴 POST /complaints
- 申請糾紛API
- 發起糾紛 POST /disputes
- 意見反饋API
- 提交意見 POST /suggests
- 版本檢測API
- 使用平臺來查詢最新版本 GET /version/{platform}
- 短信API
- 發送短信 POST / identity-code?action={$action}
- 驗證短信 GET /identity-code/{code}
- 服務菜單API
- 獲取服務菜單列表:GET /service_menus
- 商戶版API
- 商戶管理API
- 簽約商戶 POST /producer
- 修改我的商戶信息 PATCH /producer/{id}
- 獲取我的商戶信息 GET /producer
- 提交認證 POST /producer-authorization
- 獲取最后認證的信息 GET /producer-authorization
- 附近商家 API
- 附近商家 GET /nearby-producer?arc={arc}
- 商戶商品管理API
- 獲取商品列表 GET /goods?type={type}
- 添加商品 POST /goods
- 修改商品 PATCH /goods/{goods_id}
- 刪除商品 DELETE /goods/{goods_id}
- 商戶商品列表 /producer/{producer_id}/goods?type={?type}
- 商戶任務API
- 任務詳情 GET /business/tasks/{id}
- 商戶訂單API
- 商戶訂單列表 GET /business/orders
- 接取任務 POST /business/orders
- 交活 PATCH /business/orders/{id}/delivery
- 議價 PATCH /business/orders/{id}/bargain
- 商家評價API
- 拉取商家評價列表 GET /business/evaluation
- 商戶錢包API
- 獲取指定錢包的錢包信息:POST /business/wallets/{user_id}
- 獲取錢包交易記錄:GET /business/wallets/{wallet_id}/trades
- 商戶錢包問題API
- 獲取需要驗證回答的問題:GET /business/wallet-questions/{wallet_id}
- 驗證錢包問題答案 POST /business/wallet-question-answers/check
- 商戶錢包密碼API
- 設置錢包密碼:POST /business/wallet-passwords/set
- 更改錢包密碼:PATCH /business/wallet-passwords/{wallet_id}
- 檢查錢包密碼:POST /business/wallet-passwords/check
- 商家提現賬戶API
- 獲取指定錢包的提現賬戶:GET /business/withdraw-accounts
- 添加提現賬戶:POST /business/withdraw-accounts
- 將指定類型的提現賬號設為默認:PATCH /business/withdraw-accounts/{withdraw-account_id}/default
- 刪除提現賬戶:DELETE /business/withdraw-accounts/{id}
- 商戶統計API
- 拉取報表
- 系統調用API
- 活動相關API
- 分享統計:POST /shares
- 商家相關 API
- 商家審核 POST /system/api/approve-producer
- 商家禁用 POST /system/api/disable-producer
- 發送短信API
- 后臺發送任務API
- 后臺支付任務API
- 更新記錄
- 版本 1.6.4
- JS互調文檔
- 公共信息
- 分享調用
- 是否登錄
- 創建任務
- 點贊商品
- 跳轉商家詳情