From 8a1c08baaf0ee002b471996b195e7da180b90209 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期一, 21 七月 2025 09:38:47 +0800 Subject: [PATCH] 增加了前端代码库 --- src/api/system/records.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/src/api/system/records.js b/src/api/system/records.js new file mode 100644 index 0000000..d2057e8 --- /dev/null +++ b/src/api/system/records.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 鏌ヨ妗f璁板綍鍒楄〃 +export function listRecords(query) { + return request({ + url: '/system/records/list', + method: 'get', + params: query + }) +} + +// 鏌ヨ妗f璁板綍璇︾粏 +export function getRecords(id) { + return request({ + url: '/system/records/' + id, + method: 'get' + }) +} + +// 鏂板妗f璁板綍 +export function addRecords(data) { + return request({ + url: '/system/records', + method: 'post', + data: data + }) +} + +// 淇敼妗f璁板綍 +export function updateRecords(data) { + return request({ + url: '/system/records', + method: 'put', + data: data + }) +} + +// 鍒犻櫎妗f璁板綍 +export function delRecords(id) { + return request({ + url: '/system/records/' + id, + method: 'delete' + }) +} -- Gitblit v1.9.1