You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.1 KiB
69 lines
1.1 KiB
import request from '@/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/blade-develop/code/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
|
|
export const build = ids => { |
|
return request({ |
|
url: '/blade-develop/code/gen-code', |
|
method: 'post', |
|
params: { |
|
ids, |
|
system: 'saber', |
|
}, |
|
}); |
|
}; |
|
export const remove = ids => { |
|
return request({ |
|
url: '/blade-develop/code/remove', |
|
method: 'post', |
|
params: { |
|
ids, |
|
}, |
|
}); |
|
}; |
|
|
|
export const add = row => { |
|
return request({ |
|
url: '/blade-develop/code/submit', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
export const update = row => { |
|
return request({ |
|
url: '/blade-develop/code/submit', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
export const copy = id => { |
|
return request({ |
|
url: '/blade-develop/code/copy', |
|
method: 'post', |
|
params: { |
|
id, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getCode = id => { |
|
return request({ |
|
url: '/blade-develop/code/detail', |
|
method: 'get', |
|
params: { |
|
id, |
|
}, |
|
}); |
|
};
|
|
|