fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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()