ソースを参照

推送相关接口修改

wukai 3 ヶ月 前
コミット
9bb82436d0
2 ファイル変更5 行追加5 行削除
  1. 4 4
      src/api/push/pushConfig.js
  2. 1 1
      src/api/push/pushRecord.js

+ 4 - 4
src/api/push/pushConfig.js

@@ -12,7 +12,7 @@ export function listPushConfig(query) {
 // 查询推送配置详细
 export function getPushConfig(pcId) {
     return request({
-        url: '/push/pushConfig/' + pcId,
+        url: '/push/pushConfig/detail?pcId=' + pcId,
         method: 'get'
     })
 }
@@ -38,14 +38,14 @@ export function updatePushConfig(data) {
 // 删除推送配置
 export function delPushConfig(pcId) {
     return request({
-        url: '/push/pushConfig/del/' + pcId,
+        url: '/push/pushConfig/del' + pcId,
         method: 'get'
     })
 }
 
-export function sendTestConfig(type,query){
+export function sendTestConfig(type, query) {
     return request({
-        url: '/push/pushConfig/'+type,
+        url: '/push/pushConfig/' + type,
         method: 'get',
         params: query
     })

+ 1 - 1
src/api/push/pushRecord.js

@@ -38,7 +38,7 @@ export function updatePushRecord(data) {
 // 删除推送记录
 export function delPushRecord(prId) {
     return request({
-        url: '/push/pushRecord/del/' + prId,
+        url: '/push/pushRecord/del?prIds=' + prId,
         method: 'get'
     })
 }