api.js 656 Bytes
Newer Older
yanzhongrong's avatar
yanzhongrong committed
1 2 3
import request from '@/utils/request'

const path = {
4 5 6 7
  list: 'api/user/selectUserPage',
  create: 'api/user/saveUser',
  updatePwd: 'api/user/updatePwd',
  updateInfo: 'api/user/updateUserBaseInfo',
neogcg's avatar
neogcg committed
8
 
9
  logList: 'api/sysLog/selectLogPage',
yanzhongrong's avatar
yanzhongrong committed
10 11 12
}

export function list() {
yanzhongrong's avatar
yanzhongrong committed
13
  return request.post(path.list, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
14 15 16
}

export function create() {
yanzhongrong's avatar
yanzhongrong committed
17
  return request.post(path.create, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
18 19 20
}

export function updatePwd() {
yanzhongrong's avatar
yanzhongrong committed
21
  return request.post(path.updatePwd, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
22 23 24
}

export function updateInfo() {
yanzhongrong's avatar
yanzhongrong committed
25
  return request.post(path.updateInfo, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
26 27
}

28
export function logList() {
yanzhongrong's avatar
yanzhongrong committed
29
  return request.post(path.logList, ...arguments);
30
}
neogcg's avatar
neogcg committed
31