api.js 1.1 KB

1234567891011121314151617181920212223242526
  1. const { WxApiRoot } = require('./config')
  2. module.exports = {
  3. GetSessionKey: WxApiRoot + 'auth/jscode2session', // 获取session_key unionId/openid
  4. LoginByWeixin: WxApiRoot + 'auth/loginByWeixin', // 微信登录
  5. Logout: WxApiRoot + 'auth/logout', // 账号登出
  6. UserIndex: WxApiRoot + 'user/index', // 我的
  7. UserInfo: WxApiRoot + 'user/getById', // 个人信息
  8. UserUpdate: WxApiRoot + 'user/updateUser', // 修改我的信息
  9. CollectList: WxApiRoot + 'collect/list', // 收藏/订阅列表
  10. CollectAdd: WxApiRoot + 'collect/add', // 收藏
  11. CollectDelete: WxApiRoot + 'collect/delete', // 取消收藏
  12. FootprintList: WxApiRoot + 'footprint/list', // 足迹列表
  13. FootprintDelete: WxApiRoot + 'footprint/delete', // 删除足迹
  14. AddBrowse: WxApiRoot + 'browse/add', // 新增足迹
  15. IndexUrl: WxApiRoot + 'home/index', // 首页数据接口
  16. GetfloorGoods: WxApiRoot + 'home/floorGoodsList', // 首页底部分类商品
  17. CatalogList: WxApiRoot + 'catalog/index', // 分类左侧一级目录
  18. CatalogGoodsList: WxApiRoot + 'catalog/goodsList', // 分类商品
  19. GoodsDetail: WxApiRoot + 'goods/detail', // 商品详情
  20. }