新增多个功能模块

This commit is contained in:
2025-06-23 09:27:28 +08:00
parent c783f365c8
commit 255481861a
66 changed files with 8555 additions and 6 deletions

View File

@@ -0,0 +1,61 @@
import type { AttachVO, AttachForm, AttachQuery } 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 attachList(params?: AttachQuery) {
return requestClient.get<PageResult<AttachVO>>('/property/attach/list', { params });
}
/**
* 导出会议室增值服务列表
* @param params
* @returns 会议室增值服务列表
*/
export function attachExport(params?: AttachQuery) {
return commonExport('/property/attach/export', params ?? {});
}
/**
* 查询会议室增值服务详情
* @param id id
* @returns 会议室增值服务详情
*/
export function attachInfo(id: ID) {
return requestClient.get<AttachVO>(`/property/attach/${id}`);
}
/**
* 新增会议室增值服务
* @param data
* @returns void
*/
export function attachAdd(data: AttachForm) {
return requestClient.postWithMsg<void>('/property/attach', data);
}
/**
* 更新会议室增值服务
* @param data
* @returns void
*/
export function attachUpdate(data: AttachForm) {
return requestClient.putWithMsg<void>('/property/attach', data);
}
/**
* 删除会议室增值服务
* @param id id
* @returns void
*/
export function attachRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/attach/${id}`);
}

View File

@@ -0,0 +1,119 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface AttachVO {
/**
* 主键
*/
id: string | number;
/**
* 会议室id
*/
meetId: string | number;
/**
* 产品名称
*/
projectName: string;
/**
* 单价
*/
price: number;
/**
* 单位
*/
unit: string;
/**
* 类型
*/
type: string;
/**
* 状态
*/
state: number;
/**
* 创建时间
*/
createTime: string;
}
export interface AttachForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 会议室id
*/
meetId?: string | number;
/**
* 产品名称
*/
projectName?: string;
/**
* 单价
*/
price?: number;
/**
* 单位
*/
unit?: string;
/**
* 类型
*/
type?: string;
/**
* 状态
*/
state?: number;
}
export interface AttachQuery extends PageQuery {
/**
* 会议室id
*/
meetId?: string | number;
/**
* 产品名称
*/
projectName?: string;
/**
* 单价
*/
price?: number;
/**
* 单位
*/
unit?: string;
/**
* 类型
*/
type?: string;
/**
* 状态
*/
state?: number;
/**
* 日期范围参数
*/
params?: any;
}