feat:会议参会人员
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
import type { ParticipantsVO, ParticipantsForm, ParticipantsQuery } 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 participantsList(params?: ParticipantsQuery) {
|
||||
return requestClient.get<PageResult<ParticipantsVO>>('/property/participants/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出会议室参会记录列表
|
||||
* @param params
|
||||
* @returns 会议室参会记录列表
|
||||
*/
|
||||
export function participantsExport(params?: ParticipantsQuery) {
|
||||
return commonExport('/property/participants/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会议室参会记录详情
|
||||
* @param id id
|
||||
* @returns 会议室参会记录详情
|
||||
*/
|
||||
export function participantsInfo(id: ID) {
|
||||
return requestClient.get<ParticipantsVO>(`/property/participants/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会议室参会记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function participantsAdd(data: ParticipantsForm) {
|
||||
return requestClient.postWithMsg<void>('/property/participants', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新会议室参会记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function participantsUpdate(data: ParticipantsForm) {
|
||||
return requestClient.putWithMsg<void>('/property/participants', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会议室参会记录
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function participantsRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/participants/${id}`);
|
||||
}
|
54
apps/web-antd/src/api/property/roomBooking/participants/model.d.ts
vendored
Normal file
54
apps/web-antd/src/api/property/roomBooking/participants/model.d.ts
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ParticipantsVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 会议室id
|
||||
*/
|
||||
meetId: string | number;
|
||||
|
||||
/**
|
||||
* 入驻人员id
|
||||
*/
|
||||
residentPersonId: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface ParticipantsForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 会议室id
|
||||
*/
|
||||
meetId?: string | number;
|
||||
|
||||
/**
|
||||
* 入驻人员id
|
||||
*/
|
||||
residentPersonId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface ParticipantsQuery extends PageQuery {
|
||||
/**
|
||||
* 会议室id
|
||||
*/
|
||||
meetId?: string | number;
|
||||
|
||||
/**
|
||||
* 入驻人员id
|
||||
*/
|
||||
residentPersonId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user