LFPay app项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

84 lines
1.6 KiB

import upload from '@/utils/upload'
import request from '@/utils/request'
// 用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
const data = {
oldPassword:oldPassword,
newPassword:newPassword
}
return request({
url: '/appSystem/user/profile/updatePwd',
method: 'post',
data: data
})
}
// 查询用户个人信息
export function getUserProfile() {
return request({
url: '/appSystem/user/profile/user',
method: 'get'
})
}
// 修改用户个人信息
export function updateUserProfile(data) {
return request({
url: '/appVerification/user',
method: 'post',
data: data
})
}
// 查询商户用户信息
export function getMerchantProfile() {
return request({
url: '/appSystem/user/profile/merchant',
method: 'get'
})
}
// 修改商户信息
export function updateMerchantProfile(data) {
return request({
url: '/appVerification/merchant',
method: 'post',
data: data
})
}
// 查询商户用户信息
export function getAgentProfile() {
return request({
url: '/appSystem/user/profile/agent',
method: 'get'
})
}
// 修改商户信息
export function updateAgentProfile(data) {
return request({
url: '/appVerification/agent',
method: 'post',
data: data
})
}
// 用户头像上传
export function uploadAvatar(data) {
return upload({
url: '/appSystem/user/profile/avatar',
name: data.name,
filePath: data.filePath
})
}
// 验证手机号
export function verifyPhoneNumber (data) {
return request({
url: '/appSystem/user/profile/verifyPhone',
method: 'put',
data: data
})
}