新增多个功能模块
This commit is contained in:
61
apps/web-antd/src/api/property/meet/index.ts
Normal file
61
apps/web-antd/src/api/property/meet/index.ts
Normal 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>>('/property/meet/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出会议室管理列表
|
||||
* @param params
|
||||
* @returns 会议室管理列表
|
||||
*/
|
||||
export function meetExport(params?: MeetQuery) {
|
||||
return commonExport('/property/meet/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会议室管理详情
|
||||
* @param id id
|
||||
* @returns 会议室管理详情
|
||||
*/
|
||||
export function meetInfo(id: ID) {
|
||||
return requestClient.get<MeetVO>(`/property/meet/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会议室管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meetAdd(data: MeetForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meet', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新会议室管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meetUpdate(data: MeetForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meet', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会议室管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meetRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meet/${id}`);
|
||||
}
|
119
apps/web-antd/src/api/property/meet/model.d.ts
vendored
Normal file
119
apps/web-antd/src/api/property/meet/model.d.ts
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeetForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 会议室名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 容纳人数
|
||||
*/
|
||||
personNumber?: number;
|
||||
|
||||
/**
|
||||
* 基础服务
|
||||
*/
|
||||
baseServiceId?: string | number;
|
||||
|
||||
/**
|
||||
* 基础价格
|
||||
*/
|
||||
basePrice?: number;
|
||||
|
||||
/**
|
||||
* 增值服务是否启用
|
||||
*/
|
||||
attach?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface MeetQuery extends PageQuery {
|
||||
/**
|
||||
* 会议室名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 容纳人数
|
||||
*/
|
||||
personNumber?: number;
|
||||
|
||||
/**
|
||||
* 基础服务
|
||||
*/
|
||||
baseServiceId?: string | number;
|
||||
|
||||
/**
|
||||
* 基础价格
|
||||
*/
|
||||
basePrice?: number;
|
||||
|
||||
/**
|
||||
* 增值服务是否启用
|
||||
*/
|
||||
attach?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user