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

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 { DecorationVO, DecorationForm, DecorationQuery } from '@/api/system/Decoration/type';
/**
* 查询装修管理列表
* @param query
* @returns {*}
*/
export const listDecoration = (query?: DecorationQuery): AxiosPromise<DecorationVO[]> => {
return request({
url: '/decoration/list',
method: 'get',
params: query
});
};
/**
* 查询装修管理详细
* @param id
*/
export const getDecoration = (id: string | number): AxiosPromise<DecorationVO> => {
return request({
url: '/decoration/' + id,
method: 'get'
});
};
/**
* 新增装修管理
* @param data
*/
export const addDecoration = (data: DecorationForm) => {
return request({
url: '/decoration',
method: 'post',
data: data
});
};
/**
* 修改装修管理
* @param data
*/
export const updateDecoration = (data: DecorationForm) => {
return request({
url: '/decoration',
method: 'put',
data: data
});
};
/**
* 删除装修管理
* @param id
*/
export const delDecoration = (id: string | number | Array<string | number>) => {
return request({
url: '/decoration/' + id,
method: 'delete'
});
};

View File

@@ -0,0 +1,150 @@
export interface DecorationVO {
/**
* 装修管理表id
*/
id: string | number;
/**
* 所属小区id
*/
villageId: string | number;
/**
* 所属房屋id
*/
houseId: string | number;
/**
* 申请人姓名
*/
applyName: string;
/**
* 装修公司
*/
decorationCompany: string;
/**
* 装修内容
*/
decorationContent: string;
/**
* 装修押金
*/
decorationDeposit: number;
/**
* 装修验收结果 0通过 1未通过
*/
inspectionResult: string;
/**
* 备注
*/
remark: string;
/**
* 验收人
*/
inspectionName: string;
}
export interface DecorationForm extends BaseEntity {
/**
* 装修管理表id
*/
id?: string | number;
/**
* 所属小区id
*/
villageId?: string | number;
/**
* 所属房屋id
*/
houseId?: string | number;
/**
* 申请人姓名
*/
applyName?: string;
/**
* 装修公司
*/
decorationCompany?: string;
/**
* 装修内容
*/
decorationContent?: string;
/**
* 装修押金
*/
decorationDeposit?: number;
/**
* 装修验收结果 0通过 1未通过
*/
inspectionResult?: string;
/**
* 备注
*/
remark?: string;
/**
* 验收人
*/
inspectionName?: string;
}
export interface DecorationQuery extends PageQuery {
/**
* 所属小区id
*/
villageId?: string | number;
/**
* 所属房屋id
*/
houseId?: string | number;
/**
* 申请人姓名
*/
applyName?: string;
/**
* 装修公司
*/
decorationCompany?: string;
/**
* 装修内容
*/
decorationContent?: string;
/**
* 装修押金
*/
decorationDeposit?: number;
/**
* 装修验收结果 0通过 1未通过
*/
inspectionResult?: string;
/**
* 验收人
*/
inspectionName?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { HandleLogVO, HandleLogForm, HandleLogQuery } from '@/api/system/HandleLog/type';
/**
* 查询办事记录列表
* @param query
* @returns {*}
*/
export const listHandleLog = (query?: HandleLogQuery): AxiosPromise<HandleLogVO[]> => {
return request({
url: '/handleLog/list',
method: 'get',
params: query
});
};
/**
* 查询办事记录详细
* @param id
*/
export const getHandleLog = (id: string | number): AxiosPromise<HandleLogVO> => {
return request({
url: '/handleLog/' + id,
method: 'get'
});
};
/**
* 新增办事记录
* @param data
*/
export const addHandleLog = (data: HandleLogForm) => {
return request({
url: '/handleLog',
method: 'post',
data: data
});
};
/**
* 修改办事记录
* @param data
*/
export const updateHandleLog = (data: HandleLogForm) => {
return request({
url: '/handleLog',
method: 'put',
data: data
});
};
/**
* 删除办事记录
* @param id
*/
export const delHandleLog = (id: string | number | Array<string | number>) => {
return request({
url: '/handleLog/' + id,
method: 'delete'
});
};

View File

@@ -0,0 +1,95 @@
export interface HandleLogVO {
/**
* 办事记录表id
*/
id: string | number;
/**
* 办事内容
*/
content: string;
/**
* 求助人
*/
seekName: string;
/**
* 联系方式
*/
phone: string;
/**
* 办事时间
*/
handleTime: string;
/**
* 办事地点
*/
handlePosition: string;
}
export interface HandleLogForm extends BaseEntity {
/**
* 办事记录表id
*/
id?: string | number;
/**
* 办事内容
*/
content?: string;
/**
* 求助人
*/
seekName?: string;
/**
* 联系方式
*/
phone?: string;
/**
* 办事时间
*/
handleTime?: string;
/**
* 办事地点
*/
handlePosition?: string;
}
export interface HandleLogQuery extends PageQuery {
/**
* 办事内容
*/
content?: string;
/**
* 求助人
*/
seekName?: string;
/**
* 联系方式
*/
phone?: string;
/**
* 办事时间
*/
handleTime?: string;
/**
* 办事地点
*/
handlePosition?: string;
/**
* 日期范围参数
*/
params?: any;
}

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;
}