first
This commit is contained in:
23
src/api/modules/email/content.ts
Normal file
23
src/api/modules/email/content.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ResPage, ResultData } from "@/api/interface/index";
|
||||
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);
|
||||
};
|
||||
26
src/api/modules/email/event.ts
Normal file
26
src/api/modules/email/event.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { ResPage, ResultData } from "@/api/interface/index";
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user