12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import request from '../index'
- /**
- * 获取用户大会员、超级订阅权限等信息
- * @type {post}
- */
- export function ajaxGetUserPower() {
- return request({
- url: '/bigmember/use/isAdd',
- method: 'post'
- })
- }
- /**
- * 获取用户头像、昵称等信息
- * @type {post}
- */
- export function ajaxGetUserInfo() {
- return request({
- url: '/jypay/user/getSimpleData',
- method: 'post'
- })
- }
- /**
- * 退出登录
- * @type {post}
- * @param data
- */
- export function ajaxSetSignOut(data) {
- return request({
- url: '/front/signOut',
- method: 'post',
- data
- })
- }
- /**
- * 检查是否登录状态
- * @type {post}
- * @param data
- */
- export function ajaxCheckUserLoginStatus(data) {
- return request({
- url: '/front/hasSign',
- method: 'post',
- data
- })
- }
- /**
- * 获取用户身份列表
- * @type {post}
- */
- export function ajaxGetIdentityList() {
- return request({
- url: '/publicapply/identity/list',
- method: 'post'
- })
- }
- /**
- * 根据Token切换用户身份
- * @type {post}
- * @param data.token - 选中身份对应的Token
- */
- export function ajaxSwitchIdentity(data) {
- return request({
- url: '/publicapply/identity/switch',
- method: 'post',
- headers: {
- 'Content-Type': 'multipart/form-data'
- },
- data
- })
- }
|