|
@@ -1,13 +1,6 @@
|
|
|
import { http } from '@/utils/http/axios';
|
|
import { http } from '@/utils/http/axios';
|
|
|
import { RuleFormAdd, RuleFormView } from '@/views/message/sysnotion-config/type';
|
|
import { RuleFormAdd, RuleFormView } from '@/views/message/sysnotion-config/type';
|
|
|
-// export interface queryReportConfigListParams {
|
|
|
|
|
-// content?: string;
|
|
|
|
|
-// title?: string;
|
|
|
|
|
-// pushChannel?: number[];
|
|
|
|
|
-// recipientType?: number;
|
|
|
|
|
-// userGroupList?: number[];
|
|
|
|
|
-// customUserList?: number[];
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+
|
|
|
export function addSystemMessage(params: RuleFormAdd) {
|
|
export function addSystemMessage(params: RuleFormAdd) {
|
|
|
return http.request<number>({
|
|
return http.request<number>({
|
|
|
url: '/systemMessage/addSystemMessage',
|
|
url: '/systemMessage/addSystemMessage',
|
|
@@ -15,12 +8,14 @@ export function addSystemMessage(params: RuleFormAdd) {
|
|
|
params,
|
|
params,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
export function confirmReportConfig(id: number) {
|
|
export function confirmReportConfig(id: number) {
|
|
|
return http.request({
|
|
return http.request({
|
|
|
url: `/systemMessage/confirmSend?id=${id}`,
|
|
url: `/systemMessage/confirmSend?id=${id}`,
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
export function viewSystemMessage(id: number) {
|
|
export function viewSystemMessage(id: number) {
|
|
|
return http.request<RuleFormView>({
|
|
return http.request<RuleFormView>({
|
|
|
url: `/systemMessage/viewSystemMessage?id=${id}`,
|
|
url: `/systemMessage/viewSystemMessage?id=${id}`,
|
|
@@ -28,6 +23,9 @@ export function viewSystemMessage(id: number) {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+ * @description: V4版本 新建系统消息
|
|
|
|
|
+ */
|
|
|
export function updateSystemMessage(params: RuleFormAdd) {
|
|
export function updateSystemMessage(params: RuleFormAdd) {
|
|
|
return http.request({
|
|
return http.request({
|
|
|
url: '/systemMessage/updateSystemMessage',
|
|
url: '/systemMessage/updateSystemMessage',
|