1、通知公告
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-23 16:28:30 +08:00
parent db8186d055
commit ae098aa1e0
13 changed files with 842 additions and 129 deletions

View File

@@ -12,7 +12,7 @@ import { requestClient } from '#/api/request';
* @returns 意见反馈列表
*/
export function feedbacksList(params?: FeedbacksQuery) {
return requestClient.get<PageResult<FeedbacksVO>>('/system/feedbacks/list', { params });
return requestClient.get<PageResult<FeedbacksVO>>('/property/feedbacks/list', { params });
}
/**
@@ -21,7 +21,7 @@ export function feedbacksList(params?: FeedbacksQuery) {
* @returns 意见反馈列表
*/
export function feedbacksExport(params?: FeedbacksQuery) {
return commonExport('/system/feedbacks/export', params ?? {});
return commonExport('/property/feedbacks/export', params ?? {});
}
/**
@@ -30,7 +30,7 @@ export function feedbacksExport(params?: FeedbacksQuery) {
* @returns 意见反馈详情
*/
export function feedbacksInfo(id: ID) {
return requestClient.get<FeedbacksVO>(`/system/feedbacks/${id}`);
return requestClient.get<FeedbacksVO>(`/property/feedbacks/${id}`);
}
/**
@@ -39,7 +39,7 @@ export function feedbacksInfo(id: ID) {
* @returns void
*/
export function feedbacksAdd(data: FeedbacksForm) {
return requestClient.postWithMsg<void>('/system/feedbacks', data);
return requestClient.postWithMsg<void>('/property/feedbacks', data);
}
/**
@@ -48,7 +48,7 @@ export function feedbacksAdd(data: FeedbacksForm) {
* @returns void
*/
export function feedbacksUpdate(data: FeedbacksForm) {
return requestClient.putWithMsg<void>('/system/feedbacks', data);
return requestClient.putWithMsg<void>('/property/feedbacks', data);
}
/**
@@ -57,5 +57,5 @@ export function feedbacksUpdate(data: FeedbacksForm) {
* @returns void
*/
export function feedbacksRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/system/feedbacks/${id}`);
return requestClient.deleteWithMsg<void>(`/property/feedbacks/${id}`);
}

View File

@@ -1,4 +1,4 @@
import type { PageQuery, BaseEntity } from '#/api/common';
import type {PageQuery, BaseEntity} from '#/api/common';
export interface FeedbacksVO {
/**
@@ -104,6 +104,11 @@ export interface FeedbacksForm extends BaseEntity {
*/
serviceName?: string;
/**
* 工单id
*/
orderId?: string;
}
export interface FeedbacksQuery extends PageQuery {
@@ -153,7 +158,7 @@ export interface FeedbacksQuery extends PageQuery {
serviceName?: string;
/**
* 日期范围参数
*/
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { NoticesVO, NoticesForm, NoticesQuery } from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询客户服务-通知公告列表
* @param params
* @returns 客户服务-通知公告列表
*/
export function noticesList(params?: NoticesQuery) {
return requestClient.get<PageResult<NoticesVO>>('/property/notices/list', { params });
}
/**
* 导出客户服务-通知公告列表
* @param params
* @returns 客户服务-通知公告列表
*/
export function noticesExport(params?: NoticesQuery) {
return commonExport('/property/notices/export', params ?? {});
}
/**
* 查询客户服务-通知公告详情
* @param id id
* @returns 客户服务-通知公告详情
*/
export function noticesInfo(id: ID) {
return requestClient.get<NoticesVO>(`/property/notices/${id}`);
}
/**
* 新增客户服务-通知公告
* @param data
* @returns void
*/
export function noticesAdd(data: NoticesForm) {
return requestClient.postWithMsg<void>('/property/notices', data);
}
/**
* 更新客户服务-通知公告
* @param data
* @returns void
*/
export function noticesUpdate(data: NoticesForm) {
return requestClient.putWithMsg<void>('/property/notices', data);
}
/**
* 删除客户服务-通知公告
* @param id id
* @returns void
*/
export function noticesRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/notices/${id}`);
}

View File

@@ -0,0 +1,139 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface NoticesVO {
/**
* 主键
*/
id: string | number;
/**
* 标题
*/
title: string;
/**
* 类型
*/
type: string;
/**
* 备注
*/
remark: string;
/**
* 是否全小区公告
*/
isAll: string;
/**
* 开始时间
*/
startTime: string;
/**
* 结束时间
*/
endTime: string;
/**
* 公告内容
*/
afficheContent: string;
/**
* 发布人
*/
issuers: number;
}
export interface NoticesForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 标题
*/
title?: string;
/**
* 类型
*/
type?: string;
/**
* 备注
*/
remark?: string;
/**
* 是否全小区公告
*/
isAll?: string;
/**
* 开始时间
*/
startTime?: string;
/**
* 结束时间
*/
endTime?: string;
/**
* 公告内容
*/
afficheContent?: string;
/**
* 发布人
*/
issuers?: number;
}
export interface NoticesQuery extends PageQuery {
/**
* 标题
*/
title?: string;
/**
* 类型
*/
type?: string;
/**
* 是否全小区公告
*/
isAll?: string;
/**
* 开始时间
*/
startTime?: string;
/**
* 结束时间
*/
endTime?: string;
/**
* 公告内容
*/
afficheContent?: string;
/**
* 发布人
*/
issuers?: number;
/**
* 日期范围参数
*/
params?: any;
}