|
12345678910111213141516171819202122232425262728293031323334353637383940 |
- import request from '@/utils/request'
-
- export function getAllJob() {
- const params = {
- page: 0,
- size: 9999,
- enabled: true
- }
- return request({
- url: 'api/job',
- method: 'get',
- params
- })
- }
-
- export function add(data) {
- return request({
- url: 'api/job',
- method: 'post',
- data
- })
- }
-
- export function del(ids) {
- return request({
- url: 'api/job',
- method: 'delete',
- data: ids
- })
- }
-
- export function edit(data) {
- return request({
- url: 'api/job',
- method: 'put',
- data
- })
- }
-
- export default { add, edit, del }
|