Commit 74620730 authored by yyh's avatar yyh

user api

parent 73698791
import axios from '@/utils/http';
const base = process.env.VUE_APP_SERVER + '/user';
const user = {
isSetPasswd(params: any) {
return axios.post(`${base}/isSetPasswd`,{
country: '86',
phone: '',
email: '',
...params,
});
},
login(params: any) {
return axios.post(`${base}/login`, {
login_type: 1,
......@@ -19,5 +27,21 @@ const user = {
...params,
});
},
sendEmail(email: string, templateId: number, params: any) {
return axios.post(`${base}/sendEmail`, {
email,
template_id: templateId,
...params,
});
},
setPwd(sendType: number, pwd: string, code: string, params: any) {
return axios.post(`${base}/setPwd`, {
send_type: sendType,
pwd,
code,
country: '86',
...params,
});
}
};
export default user;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment