会议管理
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
FLL
2025-07-04 17:56:14 +08:00
parent e21c76cc6f
commit e28ddabf57
20 changed files with 1433 additions and 520 deletions

View File

@@ -0,0 +1,61 @@
import type { MeetVO, MeetForm, MeetQuery } 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 meetList(params?: MeetQuery) {
return requestClient.get<PageResult<MeetVO>>('/system/meet/list', { params });
}
/**
* 导出会议室设置列表
* @param params
* @returns 会议室设置列表
*/
export function meetExport(params?: MeetQuery) {
return commonExport('/system/meet/export', params ?? {});
}
/**
* 查询会议室设置详情
* @param id id
* @returns 会议室设置详情
*/
export function meetInfo(id: ID) {
return requestClient.get<MeetVO>(`/system/meet/${id}`);
}
/**
* 新增会议室设置
* @param data
* @returns void
*/
export function meetAdd(data: MeetForm) {
return requestClient.postWithMsg<void>('/system/meet', data);
}
/**
* 更新会议室设置
* @param data
* @returns void
*/
export function meetUpdate(data: MeetForm) {
return requestClient.putWithMsg<void>('/system/meet', data);
}
/**
* 删除会议室设置
* @param id id
* @returns void
*/
export function meetRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/system/meet/${id}`);
}

View File

@@ -0,0 +1,159 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface MeetVO {
/**
* 主键
*/
id: string | number;
/**
* 会议室名称
*/
name: string;
/**
* 位置
*/
location: string;
/**
* 容纳人数
*/
personNumber: number;
/**
* 基础服务
*/
baseServiceId: string | number;
/**
* 基础价格
*/
basePrice: number;
/**
* 增值服务是否启用
*/
attach: number;
/**
* 创建人id
*/
createById: string | number;
/**
* 更新人id
*/
updateById: string | number;
/**
* 搜索值
*/
searchValue: string;
}
export interface MeetForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 会议室名称
*/
name?: string;
/**
* 位置
*/
location?: string;
/**
* 容纳人数
*/
personNumber?: number;
/**
* 基础服务
*/
baseServiceId?: string | number;
/**
* 基础价格
*/
basePrice?: number;
/**
* 增值服务是否启用
*/
attach?: number;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface MeetQuery extends PageQuery {
/**
* 会议室名称
*/
name?: string;
/**
* 位置
*/
location?: string;
/**
* 容纳人数
*/
personNumber?: number;
/**
* 基础服务
*/
baseServiceId?: string | number;
/**
* 基础价格
*/
basePrice?: number;
/**
* 增值服务是否启用
*/
attach?: number;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}