From 448ebe0754e006d5a1ad37f87bd8fe961eb58277 Mon Sep 17 00:00:00 2001 From: 安瑾然 <107107765@qq.com> Date: 星期四, 21 七月 2022 16:57:37 +0800 Subject: [PATCH] login --- src/api/common.js | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/api/common.js b/src/api/common.js index 28a70b4..3a514a6 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -16,4 +16,19 @@ fileName: val } }) -} \ No newline at end of file +} + +export function report(params) { + return request({ + url: '/report', + method: 'post', + data: params + }) +} + +export function getReportById(id) { + return request({ + url: `/report/${id}`, + method: 'get', + }) +} -- Gitblit v1.8.0