公告,活动,投诉接口对接完成

This commit is contained in:
Zy
2026-04-14 17:34:33 +08:00
parent 2701b02c59
commit 40f13be704
41 changed files with 2499 additions and 220 deletions

View File

@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { NoticeVO, NoticeForm, NoticeQuery } from '@/api/system/NoticePc/type';
/**
* 查询公告信息列表
* @param query
* @returns {*}
*/
export const listNotice = (query?: NoticeQuery): AxiosPromise<NoticeVO[]> => {
return request({
url: '/notice/list',
method: 'get',
params: query
});
};
/**
* 查询公告信息详细
* @param noticeId
*/
export const getNotice = (noticeId: string | number): AxiosPromise<NoticeVO> => {
return request({
url: '/notice/' + noticeId,
method: 'get'
});
};
/**
* 新增公告信息
* @param data
*/
export const addNotice = (data: NoticeForm) => {
return request({
url: '/notice',
method: 'post',
data: data
});
};
/**
* 修改公告信息
* @param data
*/
export const updateNotice = (data: NoticeForm) => {
return request({
url: '/notice',
method: 'put',
data: data
});
};
/**
* 删除公告信息
* @param noticeId
*/
export const delNotice = (noticeId: string | number | Array<string | number>) => {
return request({
url: '/notice/' + noticeId,
method: 'delete'
});
};

View File

@@ -0,0 +1,125 @@
export interface NoticeVO {
/**
* 公告ID
*/
noticeId: string | number;
/**
* 公告标题
*/
noticeTitle: string;
/**
* 公告内容
*/
noticeContent: string;
/**
* 作者
*/
author: string;
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel: string;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus: string;
/**
* 发布人
*/
publishBy: string;
/**
* 发布日期
*/
publishTime: string;
}
export interface NoticeForm extends BaseEntity {
/**
* 公告ID
*/
noticeId?: string | number;
/**
* 公告标题
*/
noticeTitle?: string;
/**
* 公告内容
*/
noticeContent?: string;
/**
* 作者
*/
author?: string;
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel?: string;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus?: string;
/**
* 发布人
*/
publishBy?: string;
/**
* 发布日期
*/
publishTime?: string;
}
export interface NoticeQuery extends PageQuery {
/**
* 公告标题
*/
noticeTitle?: string;
/**
* 公告内容
*/
noticeContent?: string;
/**
* 作者
*/
author?: string;
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel?: string;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus?: string;
/**
* 发布人
*/
publishBy?: string;
/**
* 发布日期
*/
publishTime?: string;
/**
* 日期范围参数
*/
params?: any;
}