1、意见反馈
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-22 20:52:22 +08:00
parent 3008b88629
commit 2ad20e8ccb
5 changed files with 658 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
import type { FeedbacksVO, FeedbacksForm, FeedbacksQuery } 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 feedbacksList(params?: FeedbacksQuery) {
return requestClient.get<PageResult<FeedbacksVO>>('/system/feedbacks/list', { params });
}
/**
* 导出意见反馈列表
* @param params
* @returns 意见反馈列表
*/
export function feedbacksExport(params?: FeedbacksQuery) {
return commonExport('/system/feedbacks/export', params ?? {});
}
/**
* 查询意见反馈详情
* @param id id
* @returns 意见反馈详情
*/
export function feedbacksInfo(id: ID) {
return requestClient.get<FeedbacksVO>(`/system/feedbacks/${id}`);
}
/**
* 新增意见反馈
* @param data
* @returns void
*/
export function feedbacksAdd(data: FeedbacksForm) {
return requestClient.postWithMsg<void>('/system/feedbacks', data);
}
/**
* 更新意见反馈
* @param data
* @returns void
*/
export function feedbacksUpdate(data: FeedbacksForm) {
return requestClient.putWithMsg<void>('/system/feedbacks', data);
}
/**
* 删除意见反馈
* @param id id
* @returns void
*/
export function feedbacksRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/system/feedbacks/${id}`);
}

View File

@@ -0,0 +1,159 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface FeedbacksVO {
/**
* 主键
*/
id: string | number;
/**
* 反馈类型(0保修1保洁2会议)
*/
feedbackType: string;
/**
* 反馈人
*/
feedbackPersion: number;
/**
* 反馈人电话
*/
feedbackPersionPhone: string;
/**
* 反馈内容
*/
feedbackContent: string;
/**
* 反馈位置
*/
feedbackLocation: string;
/**
* 反馈图片
*/
feedbackImg: string;
/**
* 是否转至工单
*/
isWorkOrder: string;
/**
* 状态(1待处理2处理中3处理完成)
*/
status: string;
/**
* 客服电话
*/
serviceName: string;
}
export interface FeedbacksForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 反馈类型(0保修1保洁2会议)
*/
feedbackType?: string;
/**
* 反馈人
*/
feedbackPersion?: number;
/**
* 反馈人电话
*/
feedbackPersionPhone?: string;
/**
* 反馈内容
*/
feedbackContent?: string;
/**
* 反馈位置
*/
feedbackLocation?: string;
/**
* 反馈图片
*/
feedbackImg?: string;
/**
* 是否转至工单
*/
isWorkOrder?: string;
/**
* 状态(1待处理2处理中3处理完成)
*/
status?: string;
/**
* 客服电话
*/
serviceName?: string;
}
export interface FeedbacksQuery extends PageQuery {
/**
* 反馈类型(0保修1保洁2会议)
*/
feedbackType?: string;
/**
* 反馈人
*/
feedbackPersion?: number;
/**
* 反馈人电话
*/
feedbackPersionPhone?: string;
/**
* 反馈内容
*/
feedbackContent?: string;
/**
* 反馈位置
*/
feedbackLocation?: string;
/**
* 反馈图片
*/
feedbackImg?: string;
/**
* 是否转至工单
*/
isWorkOrder?: string;
/**
* 状态(1待处理2处理中3处理完成)
*/
status?: string;
/**
* 客服电话
*/
serviceName?: string;
/**
* 日期范围参数
*/
params?: any;
}