Blame view

src/http/api.js 1.24 KB
simon committed
1 2 3 4
module.exports = {
  login: "/login", //  post 通过wxcode换取sessionId
  register: '/register', //  post 注册(用户授权)

simon committed
5 6 7 8
  // dataList: '/dataList', // 测试接口
  bannerList: '/banner/list', // 轮播图
  tabList: '/tab/list', // 获取标签
  videoList: '/video/list', // 视频列表
simon committed
9
  videoAcccout: '/video/account', // 帐号下的视频
simon committed
10
  videoDetail: '/video/detail', // 视频详情
simon committed
11
  rewardOrder: '/hide/order', // 打赏成功获取视频
simon committed
12
  hideDetail: '/hide/detail', // 获得隐藏视频详情
simon committed
13
  videoMore: '/video/more', // 更多推荐
simon committed
14
  accountDetail: '/account/detail', // 帐号详情
simon committed
15 16
  wxPay: '/wx/pay', // 帐号详情
  stat: '/dot', //  打点
simon committed
17

simon committed
18 19 20 21 22 23
  // 拜年相关
  blessDetail: "/bless/detail", // 获取祝福语详情
  blessMade: "/bless/made", // 标记定制
  blessUpdateUserInfo: "/bless/update/name", // 修改名称
  blessUpdateRoom: "/bless/update/info", // 修改房间信息
  blessJoin: "/bless/join", // 加入房间
simon committed
24

simon committed
25 26 27 28 29
  /**
   * 通用接口
   * 请求时 "mode"传"custom"
   */
  areaQuery: 'https://api.k.wxpai.cn/bizproxy/kdapi/area', // post 区域查询
simon committed
30

simon committed
31
  wxacodeGet: "/wx/create/wxacode", // 通用上传  ?path=/pages/index/index?pa=1
simon committed
32
  uploadFile: '/kdapi/file/upload', //上传图片通用接口
simon committed
33

simon committed
34
}