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
| import http from "./http";
| import store from "@/store";
| let isDebug = store.getters.isDebug();
|
| //获取验证码接口
| export const getCodeImg = () => http.get('api/User/getVierificationCode')
|
| //用户登录接口
| export const login = (data, tenantId) => {
| if(isDebug){
| return new Promise((resolve, reject)=>{
| let responseData = {
| status: true,
| data:{
| token:'sdfadfjaljdfladjf',
| userName:'lhio',
| id:99,
| roleId:1,
| roleName:'张三',
| depid:1,
| headImageUrl:'image.png'
| }
| };
| resolve(responseData);
| });
| }else{
| return http.post(`/api/User/login`, data);
| }
| }
|
| //用户注册接口
| export const register = (data) => http.post('api/Registry/UserRegistry', data)
|
| //设置退出的时间
| export const setTimeOut = (data) => http.post(`/api/Loginhsy/OutLoginTime?account=${data.account}`)
| //删除saveFace的照片
| export const CleanUnusedImages = () => http.get('/api/User/CleanUnusedImages')
|
|