From 470153d1cd1f5043a4f0c55370e8f641839d5269 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: 星期二, 30 一月 2024 10:46:57 +0800
Subject: [PATCH] bug修改
---
src/api/backManage/notice.js | 48 +++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 45 insertions(+), 3 deletions(-)
diff --git a/src/api/backManage/notice.js b/src/api/backManage/notice.js
index 014c25e..585c1b3 100644
--- a/src/api/backManage/notice.js
+++ b/src/api/backManage/notice.js
@@ -1,8 +1,50 @@
import request from '@/utils/request'
-export function getNoticeList() {
+export function getNoticeList(params) {
return request({
- url: 'api/system/notice/noticeList',
- method: 'get'
+ url: '/system/notice/noticeList',
+ method: 'get',
+ params: params
+
})
}
+
+export function addNotice(data) {
+ return request({
+ url: '/system/notice/addNotice',
+ method: 'post',
+ data: data
+ })
+}
+
+export function getNoticeDetail(params) {
+ return request({
+ url: '/system/notice/getNoticeById',
+ method: 'get',
+ params: params
+ })
+}
+
+export function editNotice(params) {
+ return request({
+ url: `/system/notice/editNotice`,
+ method: 'put',
+ data: params
+ })
+}
+
+export function delNotice(data) {
+ return request({
+ url: `/system/notice/remove/` + data.id,
+ method: 'delete'
+ })
+}
+
+export function upload(data) {
+ return request({
+ url: '/system/common/uploadFile',
+ method: 'post',
+ data
+ })
+}
+
--
Gitblit v1.9.2