From cce203363b1c71d4efc7e405370deb8f27348a5a Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Wed, 18 Aug 2021 17:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/src/api/reportShare.js | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 report-ui/src/api/reportShare.js diff --git a/report-ui/src/api/reportShare.js b/report-ui/src/api/reportShare.js new file mode 100644 index 00000000..578b4215 --- /dev/null +++ b/report-ui/src/api/reportShare.js @@ -0,0 +1,42 @@ +import request from '@/utils/request' + +export function reportShareList(params) { + return request({ + url: 'reportShare/pageList', + method: 'GET', + params, + }) +} + +export function reportShareAdd(data) { + return request({ + url: 'reportShare', + method: 'post', + data + }) +} + +export function reportShareDeleteBatch(data) { +return request({ +url: 'reportShare/delete/batch', +method: 'post', +data +}) +} + +export function reportShareUpdate(data) { + return request({ + url: 'reportShare', + method: 'put', data, + }) +} + +export function reportShareDetail(data) { + return request({ + url: 'reportShare/' + data.id, + method: 'get', + params: { accessKey: data.accessKey } + }) +} + +export default { reportShareList, reportShareAdd, reportShareDeleteBatch, reportShareUpdate, reportShareDetail }