公告,活动,投诉接口对接完成
This commit is contained in:
63
src/api/system/Decoration/index.ts
Normal file
63
src/api/system/Decoration/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DecorationVO, DecorationForm, DecorationQuery } from '@/api/system/Decoration/type';
|
||||
|
||||
/**
|
||||
* 查询装修管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDecoration = (query?: DecorationQuery): AxiosPromise<DecorationVO[]> => {
|
||||
return request({
|
||||
url: '/decoration/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询装修管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDecoration = (id: string | number): AxiosPromise<DecorationVO> => {
|
||||
return request({
|
||||
url: '/decoration/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增装修管理
|
||||
* @param data
|
||||
*/
|
||||
export const addDecoration = (data: DecorationForm) => {
|
||||
return request({
|
||||
url: '/decoration',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改装修管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateDecoration = (data: DecorationForm) => {
|
||||
return request({
|
||||
url: '/decoration',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除装修管理
|
||||
* @param id
|
||||
*/
|
||||
export const delDecoration = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/decoration/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
150
src/api/system/Decoration/type.ts
Normal file
150
src/api/system/Decoration/type.ts
Normal file
@@ -0,0 +1,150 @@
|
||||
export interface DecorationVO {
|
||||
/**
|
||||
* 装修管理表id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 所属小区id
|
||||
*/
|
||||
villageId: string | number;
|
||||
|
||||
/**
|
||||
* 所属房屋id
|
||||
*/
|
||||
houseId: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
applyName: string;
|
||||
|
||||
/**
|
||||
* 装修公司
|
||||
*/
|
||||
decorationCompany: string;
|
||||
|
||||
/**
|
||||
* 装修内容
|
||||
*/
|
||||
decorationContent: string;
|
||||
|
||||
/**
|
||||
* 装修押金
|
||||
*/
|
||||
decorationDeposit: number;
|
||||
|
||||
/**
|
||||
* 装修验收结果 0通过 1未通过
|
||||
*/
|
||||
inspectionResult: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 验收人
|
||||
*/
|
||||
inspectionName: string;
|
||||
}
|
||||
|
||||
export interface DecorationForm extends BaseEntity {
|
||||
/**
|
||||
* 装修管理表id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 所属小区id
|
||||
*/
|
||||
villageId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属房屋id
|
||||
*/
|
||||
houseId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
applyName?: string;
|
||||
|
||||
/**
|
||||
* 装修公司
|
||||
*/
|
||||
decorationCompany?: string;
|
||||
|
||||
/**
|
||||
* 装修内容
|
||||
*/
|
||||
decorationContent?: string;
|
||||
|
||||
/**
|
||||
* 装修押金
|
||||
*/
|
||||
decorationDeposit?: number;
|
||||
|
||||
/**
|
||||
* 装修验收结果 0通过 1未通过
|
||||
*/
|
||||
inspectionResult?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 验收人
|
||||
*/
|
||||
inspectionName?: string;
|
||||
}
|
||||
|
||||
export interface DecorationQuery extends PageQuery {
|
||||
/**
|
||||
* 所属小区id
|
||||
*/
|
||||
villageId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属房屋id
|
||||
*/
|
||||
houseId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
applyName?: string;
|
||||
|
||||
/**
|
||||
* 装修公司
|
||||
*/
|
||||
decorationCompany?: string;
|
||||
|
||||
/**
|
||||
* 装修内容
|
||||
*/
|
||||
decorationContent?: string;
|
||||
|
||||
/**
|
||||
* 装修押金
|
||||
*/
|
||||
decorationDeposit?: number;
|
||||
|
||||
/**
|
||||
* 装修验收结果 0通过 1未通过
|
||||
*/
|
||||
inspectionResult?: string;
|
||||
|
||||
/**
|
||||
* 验收人
|
||||
*/
|
||||
inspectionName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
Reference in New Issue
Block a user