qwDept.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import request from '@/utils/request'
  2. // 查询企业微信部门列表
  3. export function listQwDept(query) {
  4. return request({
  5. url: '/qw/qwDept/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询企业微信部门详细
  11. export function getQwDept(id) {
  12. return request({
  13. url: '/qw/qwDept/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增企业微信部门
  18. export function addQwDept(data) {
  19. return request({
  20. url: '/qw/qwDept',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 同步企业微信部门
  26. export function syncDept() {
  27. return request({
  28. url: '/qw/qwDept/syncDept',
  29. method: 'get'
  30. })
  31. }
  32. // 修改企业微信部门
  33. export function updateQwDept(data) {
  34. return request({
  35. url: '/qw/qwDept',
  36. method: 'put',
  37. data: data
  38. })
  39. }
  40. // 删除企业微信部门
  41. export function delQwDept(id) {
  42. return request({
  43. url: '/qw/qwDept/' + id,
  44. method: 'delete'
  45. })
  46. }
  47. // 导出企业微信部门
  48. export function exportQwDept(query) {
  49. return request({
  50. url: '/qw/qwDept/export',
  51. method: 'get',
  52. params: query
  53. })
  54. }