userApi.js
1.15 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
import {
GlAxios
} from 'glsx-vue-common'
const path = '/admin-operating-auth/user'
const __sBatcheDel = `${path}/batcheDel`
const __sFindAll = `${path}/findAll`
const __sGet = `${path}/get`
const __sGetWithRoles = `${path}/getWithRoles`
const __sOperatUser = `${path}/operatUser`
const __sUpdateUser = `${path}/updateUser`
const __sExistsByName = `${path}/existsByName`
const batcheDelUser = {
p: [__sBatcheDel],
req: params => GlAxios.post(__sBatcheDel, params)
}
const findAll = {
p: [__sFindAll],
req: params => GlAxios.get(__sFindAll, { params })
}
const getUser = {
p: [__sGet],
req: params => GlAxios.get(__sGet, { params })
}
const getWithRoles = {
p: [__sGetWithRoles],
req: params => GlAxios.get(__sGetWithRoles, { params })
}
const operatUser = {
p: [__sOperatUser],
req: params => GlAxios.post(__sOperatUser, params)
}
const updateUser = {
p: [__sUpdateUser],
req: params => GlAxios.post(__sUpdateUser, params)
}
const existsByName = {
p: [__sExistsByName],
req: params => GlAxios.get(__sExistsByName, { params })
}
export {
batcheDelUser,
findAll,
getUser,
getWithRoles,
operatUser,
updateUser,
existsByName
}