住户信息结构完成
This commit is contained in:
@@ -95,3 +95,10 @@ export function EditHouseApi(data: addHouseType) {
|
||||
data
|
||||
});
|
||||
}
|
||||
/** 根据小区id,获取当前小区的树状结构 */
|
||||
export function getVillageTree(id: number) {
|
||||
return request({
|
||||
url: `/house/villageTree/${id}`,
|
||||
method: 'GET'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export const getResident = (id: string | number): AxiosPromise<ResidentVO> => {
|
||||
*/
|
||||
export const addResident = (data: ResidentForm) => {
|
||||
return request({
|
||||
url: '////resident',
|
||||
url: '/resident',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
@@ -61,3 +61,14 @@ export const delResident = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 添加住户管理-上传身份证
|
||||
* @param id
|
||||
*/
|
||||
export const UploadidCardApi = () => {
|
||||
return request({
|
||||
url: '/resident/uploadImage',
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
@@ -47,7 +47,7 @@ export interface ResidentVO {
|
||||
/**
|
||||
* 房屋表id
|
||||
*/
|
||||
houseId: string | number;
|
||||
houseId: number;
|
||||
|
||||
/**
|
||||
* 0审核中 1 已认证
|
||||
@@ -68,6 +68,9 @@ export interface ResidentVO {
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/** 具体住址 */
|
||||
houseAddress?: string;
|
||||
}
|
||||
|
||||
export interface ResidentForm extends BaseEntity {
|
||||
@@ -119,7 +122,7 @@ export interface ResidentForm extends BaseEntity {
|
||||
/**
|
||||
* 房屋表id
|
||||
*/
|
||||
houseId?: string | number;
|
||||
houseId?: number;
|
||||
|
||||
/**
|
||||
* 0审核中 1 已认证
|
||||
@@ -143,68 +146,24 @@ export interface ResidentForm extends BaseEntity {
|
||||
}
|
||||
|
||||
export interface ResidentQuery extends PageQuery {
|
||||
/**
|
||||
* 住户编号
|
||||
*/
|
||||
code?: number;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 0业主 1租户
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 0 男性 1女性
|
||||
*/
|
||||
gender?: number;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
idCard?: string | number;
|
||||
|
||||
/**
|
||||
* 手机号码
|
||||
*/
|
||||
phone?: number;
|
||||
|
||||
/**
|
||||
* 小区id
|
||||
*/
|
||||
villageId?: string | number;
|
||||
|
||||
/**
|
||||
* 楼栋id
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 房屋表id
|
||||
*/
|
||||
houseId?: string | number;
|
||||
|
||||
/**
|
||||
* 0审核中 1 已认证
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 身份证正面照url
|
||||
*/
|
||||
cardImageFront?: string;
|
||||
|
||||
/**
|
||||
* 身份证背面照url
|
||||
*/
|
||||
cardImageBack?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
date?: any;
|
||||
|
||||
/**
|
||||
* 住户类型
|
||||
* 0业主 1租户
|
||||
*/
|
||||
type: 0 | 1;
|
||||
/**
|
||||
* 住户状态
|
||||
* 0审核中 1 已认证
|
||||
*/
|
||||
status: 0 | 1;
|
||||
|
||||
houseId: number;
|
||||
villageId: number;
|
||||
buildingId: number;
|
||||
unitNo: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user