This commit is contained in:
Your Name
2026-04-15 12:00:09 +08:00
parent 2962da0907
commit 845d68110b
426 changed files with 43961 additions and 34179 deletions

View File

@@ -3,21 +3,12 @@ import { ContentList } from "@/api/interface/email/content";
import { EMAIL_PORT } from "@/api/config/servicePort";
import http from "@/api";
/**
* @name 邮件事件列表
*/
export const getList = (params: ContentList.ReqParams) => {
return http.get<ResPage<ContentList.ResList>>(EMAIL_PORT + `/content/list`, params);
};
/**
* @name 设置邮件事件
*/
export const saveData = (params: ContentList.saveParams) => {
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/content/save`, params);
};
/**
* @name 删除邮件事件
*/
export const deleteItem = (params: ContentList.delParams) => {
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/content/del`, params);
};

View File

@@ -3,24 +3,15 @@ import { EventList } from "@/api/interface/email/event";
import { EMAIL_PORT } from "@/api/config/servicePort";
import http from "@/api";
/**
* @name 邮件事件列表
*/
export const getList = (params: EventList.ReqParams) => {
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, params);
};
export const getAllList = () => {
return http.get<ResPage<EventList.ResList>>(EMAIL_PORT + `/event/list`, { limit: 365, page: 1 });
};
/**
* @name 设置邮件事件
*/
export const saveData = (params: EventList.saveParams) => {
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/event/save`, params);
};
/**
* @name 删除邮件事件
*/
export const deleteItem = (params: EventList.delParams) => {
return http.post<ResPage<ResultData>>(EMAIL_PORT + `/event/del`, params);
};