login.js
1.17 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import request from '@/utils/request'
export function doLogin (data) {
return request({
method: 'post',
url: '/doLogin',
data
})
}
export function verifyCode () {
return request({
method: 'get',
url: '/verifyCode',
})
}
// 获取当前用户登录的信息
export function getCurrentUserInfo () {
return request({
method: 'get',
url: '/getSysUserDo',
})
}
// 忘记密码
export function forgetPassword (data) {
return request({
method: 'post',
url: '/system/sysUser/forgetPassword',
data
})
}
// 入驻
export function settle (data) {
return request({
method: 'post',
url: '/settle',
data: data
})
}
// 获取当前登录用户有权限的分店列表
export function getOrganizationUserList () {
return request({
url: '/getOrganizationUserList',
method: 'get'
})
}
// 重新设置当前登录用户信息
export function setOrganizationId (organizationId) {
return request({
url: '/setOrganizationId',
method: 'get',
params: {
organizationId: organizationId
}
})
}