msg.js 875 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import request from '@/utils/request'
  2. // 查询系统消息列表
  3. export function listMsg(query) {
  4. return request({
  5. url: '/doc/msg/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询系统消息详细
  11. export function getMsg(msgId) {
  12. return request({
  13. url: '/doc/msg/' + msgId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增系统消息
  18. export function addMsg(data) {
  19. return request({
  20. url: '/doc/msg',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改系统消息
  26. export function updateMsg(data) {
  27. return request({
  28. url: '/doc/msg',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除系统消息
  34. export function delMsg(msgId) {
  35. return request({
  36. url: '/doc/msg/' + msgId,
  37. method: 'delete'
  38. })
  39. }
  40. // 查询部门下拉树结构
  41. export function deptTreeSelect() {
  42. return request({
  43. url: '/system/user/deptTree',
  44. method: 'get'
  45. })
  46. }