'init_again'
Change-Id: Ib7ecdb9f5baeab1e4681152a57b936edf7475b35
diff --git a/src/services/system/notice.ts b/src/services/system/notice.ts
new file mode 100644
index 0000000..2c86a08
--- /dev/null
+++ b/src/services/system/notice.ts
@@ -0,0 +1,49 @@
+import { request } from '@umijs/max';
+import { downLoadXlsx } from '@/utils/downloadfile';
+
+// 查询通知公告列表
+export async function getNoticeList(params?: API.System.NoticeListParams) {
+ return request<API.System.NoticePageResult>('/api/system/notice/list', {
+ method: 'GET',
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8',
+ },
+ params
+ });
+}
+
+// 查询通知公告详细
+export function getNotice(noticeId: number) {
+ return request<API.System.NoticeInfoResult>(`/api/system/notice/${noticeId}`, {
+ method: 'GET'
+ });
+}
+
+// 新增通知公告
+export async function addNotice(params: API.System.Notice) {
+ return request<API.Result>('/api/system/notice', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8',
+ },
+ data: params
+ });
+}
+
+// 修改通知公告
+export async function updateNotice(params: API.System.Notice) {
+ return request<API.Result>('/api/system/notice', {
+ method: 'PUT',
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8',
+ },
+ data: params
+ });
+}
+
+// 删除通知公告
+export async function removeNotice(ids: string) {
+ return request<API.Result>(`/api/system/notice/${ids}`, {
+ method: 'DELETE'
+ });
+}