1234567891011121314151617181920 |
- import {
- request
- } from "../utils/request";
- module.exports = {
- // 用户登录
- userLogin: data => request('/user/register', 'post', data),
- // 获取用户session_key和open_id
- getUserSO: data => request('/user/openId', 'get', data),
- //获取用户信息
- getUserInfo: data => request('/v3/user/my', 'get', data),
- // 设置用户信息
- setUserInfo: data => request('/user', 'post', data),
- //获取是否vip及过期时间
- getVipInfo: data => request('/auth', 'get', data),
- //获取自己朗读的作品
- getSelfRead: data => request('/userRead/my', 'get', data),
- //获取其他用户朗读的作品
- getUserRead: data => request('/userRead', 'get', data),
- }
|