From 9206b1f38256e09948a656276f9c5f9a1f3a0bbc Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 03 七月 2024 18:38:20 +0800 Subject: [PATCH] 作弊api --- src/api/cheatRecord.js | 61 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/src/api/cheatRecord.js b/src/api/cheatRecord.js new file mode 100644 index 0000000..ed4de07 --- /dev/null +++ b/src/api/cheatRecord.js @@ -0,0 +1,61 @@ +import axios from "./request"; + +// 鑾峰彇浣滃紛璁板綍鍒嗛〉 +export const getCheatRecords = (params) => { + return axios({ + url: "/api/cheat-record/page", + method: "GET", + params: params + }) +} + +// 鑾峰彇浣滃紛璁板綍鍒楄〃 +export const getCheatRecordList = () => { + return axios({ + url: "/api/cheat-record/list", + method: "GET" + }) +} + +// 閫氳繃id鑾峰彇浣滃紛璁板綍 +export const getCheatRecordById = (params) => { + return axios({ + url: "/api/cheat-record/" + params, + method: "GET" + }) +} + +// 閫氳繃id鍒犻櫎浣滃紛璁板綍 +export const deleteCheatRecordById = (params) => { + return axios({ + url: "/api/cheat-record/" + params, + method: "DELETE" + }) +} + +// 鎵归噺鍒犻櫎浣滃紛璁板綍 +export const deleteCheatRecordByIds = (params) => { + return axios({ + url: "/api/cheat-record/batch", + method: "DELETE", + data: params + }) +} + +// 淇敼浣滃紛璁板綍 +export const editCheatRecord = (params) => { + return axios({ + url: "/api/cheat-record/", + method: "PUT", + data: params + }) +} + +// 娣诲姞浣滃紛璁板綍 +export const addCheatRecord = (params) => { + return axios({ + url: "/api/cheat-record/", + method: "POST", + data: params + }) +} -- Gitblit v1.8.0