init
This commit is contained in:
commit
1ab9f9c458
1319 files changed
+137505
No files matched your search
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { HallReservationVO, HallReservationForm, HallReservationQuery } from '@/api/hq/hallReservation/types';
|
||||
|
||||
/**
|
||||
* 查询报告厅预约列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listHallReservation = (query?: HallReservationQuery): AxiosPromise<HallReservationVO[]> => {
|
||||
return request({
|
||||
url: '/hq/hallReservation/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询报告厅预约详细
|
||||
* @param id
|
||||
*/
|
||||
export const getHallReservation = (id: string | number): AxiosPromise<HallReservationVO> => {
|
||||
return request({
|
||||
url: '/hq/hallReservation/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增报告厅预约
|
||||
* @param data
|
||||
*/
|
||||
export const addHallReservation = (data: HallReservationForm) => {
|
||||
return request({
|
||||
url: '/hq/hallReservation',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改报告厅预约
|
||||
* @param data
|
||||
*/
|
||||
export const updateHallReservation = (data: HallReservationForm) => {
|
||||
return request({
|
||||
url: '/hq/hallReservation',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除报告厅预约
|
||||
* @param id
|
||||
*/
|
||||
export const delHallReservation = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/hq/hallReservation/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,201 @@
|
||||
export interface HallReservationVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 报告厅ID
|
||||
*/
|
||||
hallId: string | number;
|
||||
|
||||
/**
|
||||
* 报告厅名称
|
||||
*/
|
||||
hallName: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 预约用途
|
||||
*/
|
||||
reservationPurpose: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicantId: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
applicantName: string;
|
||||
|
||||
/**
|
||||
* 申请人电话
|
||||
*/
|
||||
applicantPhone: string;
|
||||
|
||||
/**
|
||||
* 预约状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
auditBy: number;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
auditName?: string;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
auditTime: string;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
*/
|
||||
auditRemark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface HallReservationForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 报告厅ID
|
||||
*/
|
||||
hallId?: string | number;
|
||||
|
||||
/**
|
||||
* 报告厅名称
|
||||
*/
|
||||
hallName?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 预约用途
|
||||
*/
|
||||
reservationPurpose?: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicantId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
applicantName?: string;
|
||||
|
||||
/**
|
||||
* 申请人电话
|
||||
*/
|
||||
applicantPhone?: string;
|
||||
|
||||
/**
|
||||
* 预约状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 审核人id
|
||||
*/
|
||||
auditBy?: number;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
auditName?: string;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
auditTime?: string;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
*/
|
||||
auditRemark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface HallReservationQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 报告厅ID
|
||||
*/
|
||||
hallId?: string | number;
|
||||
|
||||
/**
|
||||
* 报告厅名称
|
||||
*/
|
||||
hallName?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 开始时间查询参数(字符串格式)
|
||||
*/
|
||||
startTimeStr?: string;
|
||||
|
||||
/**
|
||||
* 结束时间查询参数(字符串格式)
|
||||
*/
|
||||
endTimeStr?: string;
|
||||
|
||||
/**
|
||||
* 申请人ID
|
||||
*/
|
||||
applicantId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
applicantName?: string;
|
||||
|
||||
/**
|
||||
* 预约状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user