import service from '../service'
|
//忘记密码----修改密码
|
const axiosConfig = {
|
url: null,
|
method: 'post',
|
data: null,
|
showLoading: null,
|
headers: {
|
'Content-Type': 'application/json'
|
}
|
}
|
export class ChangePwdApi {
|
//根据用户账户获取用户信息
|
getInfo = (params, showLoading = true) => {
|
return service.get(`/wly-customization-service/user/self/accountToFindPsCode`, { params, showLoading })
|
}
|
//根据手机号获取用户信息
|
userByPhone = (params, showLoading = false) => {
|
return service.get(`/wly-customization-service/user/self/userByPhone`, { params, showLoading })
|
}
|
//找回密码-发送验证码
|
sendVerificationCode = (params) => {
|
return service.post('/wly-customization-service/user/self/sendVerificationCode', params)
|
}
|
//核销验证码并生成token
|
checkVerificationCodeAndGetToken = (params, showLoading) => {
|
axiosConfig.url = '/wly-customization-service/user/self/checkVerificationCodeAndGetToken'
|
axiosConfig.data = params
|
axiosConfig.showLoading = showLoading
|
return service(axiosConfig)
|
}
|
//修改密码
|
changePsCode = (params, showLoading) => {
|
axiosConfig.url = '/wly-customization-service/user/self/changePsCode'
|
axiosConfig.data = params
|
axiosConfig.showLoading = showLoading
|
return service(axiosConfig)
|
}
|
}
|
export default new ChangePwdApi()
|