staff.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import request from '@/router/axios';
  2. export const getList = (current, size, params) => {
  3. return request({
  4. url: '/api/cyzh-enterprise/staff/list',
  5. method: 'get',
  6. params: {
  7. ...params,
  8. current,
  9. size,
  10. }
  11. })
  12. }
  13. export const getDetail = (id) => {
  14. return request({
  15. url: '/api/cyzh-enterprise/staff/detail',
  16. method: 'get',
  17. params: {
  18. id
  19. }
  20. })
  21. }
  22. export const remove = (ids) => {
  23. return request({
  24. url: '/api/cyzh-enterprise/staff/remove',
  25. method: 'post',
  26. params: {
  27. ids,
  28. }
  29. })
  30. }
  31. export const add = (row) => {
  32. return request({
  33. url: '/api/cyzh-enterprise/staff/submit',
  34. method: 'post',
  35. data: row
  36. })
  37. }
  38. export const update = (row) => {
  39. return request({
  40. url: '/api/cyzh-enterprise/staff/submit',
  41. method: 'post',
  42. data: row
  43. })
  44. }
  45. export const pushUserFace = (row) => {
  46. return request({
  47. url: '/api/cyzh-enterprise/staff/pushUserFace',
  48. method: 'post',
  49. data: row
  50. })
  51. }
  52. export const pushUserFaceBatch = (ids) => {
  53. return request({
  54. url: '/api/cyzh-enterprise/staff/pushUserFaceBatch',
  55. method: 'post',
  56. params: {
  57. ids,
  58. }
  59. })
  60. }