NotifyService.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import request from '@/utils/httpRequest'
  2. import { BUSINESS_PATH as prefix } from "../AppPath";
  3. export default class NotifyService {
  4. save (inputForm) {
  5. return request({
  6. url: prefix+`/jy/notify/save`,
  7. method: 'post',
  8. data: inputForm
  9. })
  10. }
  11. delete (ids) {
  12. return request({
  13. url: prefix+'/jy/notify/delete',
  14. method: 'delete',
  15. params: {ids: ids}
  16. })
  17. }
  18. close (id) {
  19. return request({
  20. url:prefix+ '/jy/notify/close',
  21. method: 'delete',
  22. params: {id: id}
  23. })
  24. }
  25. queryById (id) {
  26. return request({
  27. url:prefix+ `/jy/notify/queryById`,
  28. method: 'get',
  29. params: {id: id}
  30. })
  31. }
  32. query (params) {
  33. return request({
  34. url:prefix+ `/jy/notify/query`,
  35. method: 'get',
  36. params: params
  37. })
  38. }
  39. list (params) {
  40. return request({
  41. url:prefix+ '/jy/notify/list',
  42. method: 'get',
  43. params: params
  44. })
  45. }
  46. myNotifyList (params) {
  47. return request({
  48. url:prefix+ '/jy/notify/myNotifyList',
  49. method: 'get',
  50. params: params
  51. })
  52. }
  53. updateStatusById (data) {
  54. return request({
  55. url:prefix+ '/jy/notify/updateStatusById',
  56. method: 'post',
  57. data: data
  58. })
  59. }
  60. pushNotifyRecord (id) {
  61. return request({
  62. url:prefix+ '/jy/notify/pushNotifyRecord',
  63. method: 'post',
  64. data: {id: id}
  65. })
  66. }
  67. saveForm (inputForm) {
  68. return request({
  69. url: prefix+`/jy/notify/saveForm`,
  70. method: 'post',
  71. data: inputForm
  72. })
  73. }
  74. addComment (param) {
  75. return request({
  76. url:prefix+ '/jy/notify/addComment',
  77. method: 'post',
  78. data: param
  79. })
  80. }
  81. findComment (notifyId) {
  82. return request({
  83. url:prefix+ '/jy/notify/findComment',
  84. method: 'get',
  85. params: {notifyId:notifyId}
  86. })
  87. }
  88. delComment (id) {
  89. return request({
  90. url:prefix+ '/jy/notify/delComment',
  91. method: 'get',
  92. params: {id: id}
  93. })
  94. }
  95. portionRead (ids) {
  96. return request({
  97. url:prefix+ '/jy/notify/portionRead',
  98. method: 'post',
  99. params: {ids: ids}
  100. })
  101. }
  102. readAll () {
  103. return request({
  104. url:prefix+ '/jy/notify/readAll',
  105. method: 'post'
  106. })
  107. }
  108. saveLog(inputForm){
  109. return request({
  110. url: prefix+`/jy/notify/saveLog`,
  111. method: 'post',
  112. data: inputForm
  113. })
  114. }
  115. }