From e018e23189eb9520f6f28ae515b17333351267ff Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期六, 06 八月 2022 05:30:21 +0800 Subject: [PATCH] 完善推送管理功能 --- src/api/event.ts | 58 +++++++++++++++------------------------------------------- 1 files changed, 15 insertions(+), 43 deletions(-) diff --git a/src/api/event.ts b/src/api/event.ts index 90b86b9..f2d6694 100644 --- a/src/api/event.ts +++ b/src/api/event.ts @@ -1,18 +1,5 @@ -import request from "@/scripts/httpRequest"; -import qs from "qs"; - -/** - * 浜嬩欢鎺ㄩ�佷繚瀛� - */ -export const eventPushsSave = (query: any) => { - return request({ - url: "/data/api-v/eventPush/save", - method: "post", - data: query - }); -}; - - +import request from "@/scripts/httpRequest" +import qs from "qs" /** * 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛� */ @@ -21,19 +8,8 @@ url: "/data/api-v/eventPush/findByEventTopic", method: "get", params: query - }); -}; - -/** - * 鏌ヨ浜嬩欢鍒楄〃 - */ -export const findAll = (query: any) => { - return request({ - url: "/data/api-v/eventPush/findAll", - method: "get", - params: query - }); -}; + }) +} /** * 鏀瑰彉enable鐘舵�� @@ -43,9 +19,8 @@ url: "/data/api-v/eventPush/changeStatus", method: "post", data: query - }); -}; - + }) +} /** * 鏍规嵁浜嬩欢id鑾峰彇浜嬩欢璇︽儏 @@ -55,8 +30,8 @@ url: "/data/api-v/eventPush/getById", method: "get", params: query - }); -}; + }) +} /** * 鏍规嵁id鍒犻櫎 @@ -66,18 +41,16 @@ url: "/data/api-v/eventPush/delete", method: "post", data: qs.stringify(query) - }); -}; + }) +} //鑾峰彇浜嬩欢澹伴煶鍒楄〃 export const getSoundList = () => { return request({ url: "/saas/api-s/voice/findAll", method: "get" - }) } - export const uploadSound = (data: any) => { return request({ @@ -87,19 +60,18 @@ }) } - //鑾峰彇鎵�鏈夌殑鎺ㄩ�佸瓧娈甸厤缃� -export const getPushSet = ()=>{ +export const getPushSet = () => { return request({ - url:'/data/api-v/eventPush/getPushSet', - method:'get' + url: "/data/api-v/eventPush/getPushSet", + method: "get" }) } -export const deleteSound = (q:any) => { +export const deleteSound = (q: any) => { return request({ url: "/data/api-v/voice/del", method: "get", - params:q + params: q }) } -- Gitblit v1.8.0