userCenter.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export function selectPushMsg(msgType,keyWord,pageSize,currentPage,readStatus) {
  4. return new request({
  5. url: './uc/sysPushMessages/selectMsgInfo/',
  6. method: 'get',
  7. params: {
  8. msgType,
  9. keyWord,
  10. pageSize,
  11. currentPage,
  12. readStatus
  13. }
  14. });
  15. }
  16. export function selectPushMsgNum(readStatus) {
  17. return new request({
  18. url: './uc/sysPushMessages/selectMsgInfoNum/',
  19. method: 'get',
  20. params: {
  21. readStatus
  22. }
  23. });
  24. }
  25. export function selectNoticeInfoNum(readStatus) {
  26. return new request({
  27. url: './uc/platformNotify/selectNoticeInfoNum/',
  28. method: 'get',
  29. params: {
  30. readStatus
  31. }
  32. });
  33. }
  34. export function deleteMsgItems(array) {
  35. return new request({
  36. url: './uc/sysPushMessages/deleteMsg?arr='+array,
  37. method: 'get',
  38. params: {
  39. // array
  40. }
  41. });
  42. }
  43. export function updateReadStatus(array) {
  44. return new request({
  45. url: './uc/sysPushMessages/updateReadStatus?arr=' + array,
  46. method: 'get',
  47. params: {
  48. // array
  49. }
  50. });
  51. }
  52. export function selectPlatFormNotifyNotice(query,size,page) {
  53. return new request({
  54. url: './uc/platformNotify/findAll/',
  55. method: 'get',
  56. params: {
  57. query,
  58. size,
  59. page
  60. }
  61. });
  62. }
  63. export function deleteNoticeItems(array) {
  64. return new request({
  65. url: './uc/platformNotify/deleteByIds?ids='+array,
  66. method: 'delete',
  67. params: {
  68. // array
  69. }
  70. });
  71. }
  72. export function changeNoticeReadStatus(array) {
  73. return new request({
  74. url: './uc/platformNotify/isRead?ids=' + array,
  75. method: 'get',
  76. params: {
  77. // array
  78. }
  79. });
  80. }
  81. export function getUnitInfo(language) {
  82. return new request({
  83. url: './uc/userCenter/dwInfo' ,
  84. method: 'get',
  85. params: {
  86. language:language
  87. }
  88. });
  89. }
  90. export function getUserInfoStatus() {
  91. return new request({
  92. url: './uc/userCenter/getUserInfoStatus' ,
  93. method: 'get'
  94. });
  95. }
  96. export function getUserInfoStatusByLanuage(language) {
  97. return new request({
  98. url: './uc/userCenter/getUserInfoStatusByLanuage?language='+language ,
  99. method: 'get'
  100. });
  101. }