12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import ajax from '@/utils/request.js';
- export function getUsers() {
- return ajax({
- url: 'http://172.16.101.11:8081/user-list',
- method: 'GET',
- urlType: 'default',
- next: true,
- errorToast: '当前访问人数过多,请重试。',
- });
- }
- export function createScheduling(data) {
- return ajax({
- url: 'http://172.16.101.11:8081/create-duty',
- method: 'GET',
- urlType: 'default',
- next: true,
- errorToast: '当前访问人数过多,请重试。',
- data: data,
- });
- }
- export function getHistory(data) {
- return ajax({
- url: 'http://172.16.101.11:8081/history',
- method: 'POST',
- urlType: 'default',
- next: true,
- errorToast: '当前访问人数过多,请重试。',
- data: data,
- });
- }
- export function createUser(data) {
- return ajax({
- url: 'http://172.16.101.11:8081/custom-create-duty',
- method: 'POST',
- urlType: 'default',
- next: true,
- errorToast: '当前访问人数过多,请重试。',
- data: data,
- });
- }
|