no message

This commit is contained in:
hajimi
2026-06-11 12:15:29 +08:00
parent 10ebe39c30
commit 96efa1d905
5859 changed files with 815501 additions and 5 deletions
+50
View File
@@ -0,0 +1,50 @@
import request from '@/utils/request'
export function getUserCenter(header?: any) {
return request.get({ url: '/user/center', header }, { ignoreCancel: true })
}
// 个人信息
export function getUserInfo() {
return request.get({ url: '/user/info' }, { isAuth: true })
}
// 个人编辑
export function userEdit(data: any) {
return request.post({ url: '/user/setInfo', data }, { isAuth: true })
}
// 绑定手机
export function userBindMobile(data: any, header?: any) {
return request.post({ url: '/user/bindMobile', data, header }, { isAuth: true })
}
// 微信电话
export function userMnpMobile(data: any) {
return request.post({ url: '/user/getMobileByMnp', data }, { isAuth: true })
}
// 更改手机号
export function userChangePwd(data: any) {
return request.post({ url: '/user/changePassword', data }, { isAuth: true })
}
//忘记密码
export function forgotPassword(data: Record<string, any>) {
return request.post({ url: '/user/resetPassword', data })
}
//余额明细
export function accountLog(data: any) {
return request.get({ url: '/account_log/lists', data })
}
// 获取用户频道配置
export function getUserChannels() {
return request.get({ url: '/user/getChannels' }, { isAuth: true })
}
// 保存用户频道配置
export function setUserChannels(data: { channel_ids: any[] }) {
return request.post({ url: '/user/setChannels', data }, { isAuth: true })
}