recruitment.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import request from '@/utils/request'
  2. import constant from '@/constant'
  3. function pageList(formData){
  4. return request.post(constant.serverUrl + "/job/recruitment/pageList", formData);
  5. }
  6. function pageListHR(formData){
  7. return request.post(constant.serverUrl + "/job/recruitment/pageListHR", formData);
  8. }
  9. function create(){
  10. return request.get(constant.serverUrl + "/job/recruitment/create");
  11. }
  12. function edit(id){
  13. return request.get(constant.serverUrl + "/job/recruitment/edit/" + id);
  14. }
  15. function add(formModel){
  16. return request.post(constant.serverUrl + "/job/recruitment/add", formModel,{
  17. headers: {
  18. "Content-Type": "application/json"
  19. }
  20. });
  21. }
  22. function update(formModel){
  23. return request.post(constant.serverUrl + "/job/recruitment/update", formModel,{
  24. headers: {
  25. "Content-Type": "application/json"
  26. }
  27. });
  28. }
  29. function remove(id){
  30. return request.post(constant.serverUrl + "/job/recruitment/delete/" + id);
  31. }
  32. function down(id){
  33. return request.post(constant.serverUrl + "/job/recruitment/down/" + id);
  34. }
  35. function up(id){
  36. return request.post(constant.serverUrl + "/job/recruitment/up/" + id);
  37. }
  38. function batchRemove(idList){
  39. return request.post(constant.serverUrl + "/job/recruitment/batchDelete",idList,{
  40. headers: {
  41. "Content-Type": "application/json"
  42. }
  43. });
  44. }
  45. function batchDown(idList){
  46. return request.post(constant.serverUrl + "/job/recruitment/batchDown",idList,{
  47. headers: {
  48. "Content-Type": "application/json"
  49. }
  50. });
  51. }
  52. function batchUp(idList){
  53. return request.post(constant.serverUrl + "/job/recruitment/batchUp",idList,{
  54. headers: {
  55. "Content-Type": "application/json"
  56. }
  57. });
  58. }
  59. function offShelf(id){
  60. return request.post(constant.serverUrl + "/job/recruitment/offShelf/" + id);
  61. }
  62. function batchOffShelf(idList){
  63. return request.post(constant.serverUrl + "/job/recruitment/batchOffShelf",idList,{
  64. headers: {
  65. "Content-Type": "application/json"
  66. }
  67. });
  68. }
  69. export default {
  70. pageList,pageListHR,create,edit,add,update,remove,batchRemove,offShelf,batchOffShelf,down,batchDown,up,batchUp
  71. }