客户服务
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
import type { ContingenPlanVO, ContingenPlanForm, ContingenPlanQuery } 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 contingenPlanList(params?: ContingenPlanQuery) {
|
||||
return requestClient.get<PageResult<ContingenPlanVO>>('/property/contingenPlan/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出应急预案管理列表
|
||||
* @param params
|
||||
* @returns 应急预案管理列表
|
||||
*/
|
||||
export function contingenPlanExport(params?: ContingenPlanQuery) {
|
||||
return commonExport('/property/contingenPlan/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询应急预案管理详情
|
||||
* @param id id
|
||||
* @returns 应急预案管理详情
|
||||
*/
|
||||
export function contingenPlanInfo(id: ID) {
|
||||
return requestClient.get<ContingenPlanVO>(`/property/contingenPlan/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增应急预案管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanAdd(data: ContingenPlanForm) {
|
||||
return requestClient.postWithMsg<void>('/property/contingenPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新应急预案管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanUpdate(data: ContingenPlanForm) {
|
||||
return requestClient.putWithMsg<void>('/property/contingenPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除应急预案管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/contingenPlan/${id}`);
|
||||
}
|
159
apps/web-antd/src/api/property/customerService/contingenPlan/model.d.ts
vendored
Normal file
159
apps/web-antd/src/api/property/customerService/contingenPlan/model.d.ts
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ContingenPlanVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ContingenPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType?: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName?: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent?: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion?: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade?: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ContingenPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType?: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName?: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent?: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion?: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade?: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user