Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 1.38 KB

接口.md

File metadata and controls

87 lines (62 loc) · 1.38 KB

baseURL: https://www.koocv.com

接口

  1. 获取商铺列表

path: /article/shoplist?page=1&rows=10

query: page 第几页 rows 一页多少条数据

method: POST category_id: 商铺分类 id 40 美食 45 KTV 48 足疗按摩 41 酒店 49 丽人美发 order: desc(降序)/asc(升序) 默认:desc distance: 过滤显示多少米范围的商品, 如: 500 sort: 按照 distance(距离)/ score(评分) 排序

  1. 获取商铺详情

path: /article/detail

method: POST id: 商品 id

  1. 添加收藏

path: /fav/addfav

method: POST open_id: 用户 openid, 登录后获得 article_id: 商铺 id

返回: { "code": 4, "msg": "已收藏" }, { "code": 0, "fav_id": 66, "msg": "收藏成功" }, { "code": 2, "msg": "收藏内容不存在" }

  1. 获取收藏列表

path: /fav/getlist

method: POST open_id: 用户 openid, 登录后获得

  1. 删除收藏

path: /fav/delfav

method: POST open_id article_id fav_id: 收藏后获得

  1. 检测是否收藏

path: /fav/getfavid

method: POST open_id: 用户 openid, 登录后获得 article_id: 商铺 id

  1. 登录

path: https://wx.miaov.com/login

method: GET

header: { 'X-WX-Code': code, 'X-WX-Encrypted-Data': userInfo.encryptedData, 'X-WX-IV': userInfo.iv, }