| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import request from '@/utils/request'
- import constant from '@/constant'
- function pageList(formData){
- return request.post(constant.serverUrl + "/job/recruitment/pageList", formData);
- }
- function pageListHR(formData){
- return request.post(constant.serverUrl + "/job/recruitment/pageListHR", formData);
- }
- function create(){
- return request.get(constant.serverUrl + "/job/recruitment/create");
- }
- function edit(id){
- return request.get(constant.serverUrl + "/job/recruitment/edit/" + id);
- }
- function add(formModel){
- return request.post(constant.serverUrl + "/job/recruitment/add", formModel,{
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function update(formModel){
- return request.post(constant.serverUrl + "/job/recruitment/update", formModel,{
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function remove(id){
- return request.post(constant.serverUrl + "/job/recruitment/delete/" + id);
- }
- function down(id){
- return request.post(constant.serverUrl + "/job/recruitment/down/" + id);
- }
- function up(id){
- return request.post(constant.serverUrl + "/job/recruitment/up/" + id);
- }
- function batchRemove(idList){
- return request.post(constant.serverUrl + "/job/recruitment/batchDelete",idList,{
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function batchDown(idList){
- return request.post(constant.serverUrl + "/job/recruitment/batchDown",idList,{
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function batchUp(idList){
- return request.post(constant.serverUrl + "/job/recruitment/batchUp",idList,{
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function offShelf(id){
- return request.post(constant.serverUrl + "/job/recruitment/offShelf/" + id);
- }
- function batchOffShelf(idList){
- return request.post(constant.serverUrl + "/job/recruitment/batchOffShelf",idList,{
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- export default {
- pageList,pageListHR,create,edit,add,update,remove,batchRemove,offShelf,batchOffShelf,down,batchDown,up,batchUp
- }
|