1、入驻管理
This commit is contained in:
61
apps/web-antd/src/api/property/resident/person/index.ts
Normal file
61
apps/web-antd/src/api/property/resident/person/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { PersonVO, PersonForm, PersonQuery } 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 personList(params?: PersonQuery) {
|
||||
return requestClient.get<PageResult<PersonVO>>('/property/person/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入驻员工列表
|
||||
* @param params
|
||||
* @returns 入驻员工列表
|
||||
*/
|
||||
export function personExport(params?: PersonQuery) {
|
||||
return commonExport('/property/person/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入驻员工详情
|
||||
* @param id id
|
||||
* @returns 入驻员工详情
|
||||
*/
|
||||
export function personInfo(id: ID) {
|
||||
return requestClient.get<PersonVO>(`/property/person/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入驻员工
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function personAdd(data: PersonForm) {
|
||||
return requestClient.postWithMsg<void>('/property/person', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新入驻员工
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function personUpdate(data: PersonForm) {
|
||||
return requestClient.putWithMsg<void>('/property/person', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入驻员工
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function personRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/person/${id}`);
|
||||
}
|
199
apps/web-antd/src/api/property/resident/person/model.d.ts
vendored
Normal file
199
apps/web-antd/src/api/property/resident/person/model.d.ts
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface PersonVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone: string;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender: number;
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img: string;
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId: string | number;
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName: string;
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon: string;
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time: string;
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PersonForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender?: number;
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img?: string;
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName?: string;
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon?: string;
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PersonQuery extends PageQuery {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender?: number;
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img?: string;
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName?: string;
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon?: string;
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
61
apps/web-antd/src/api/property/resident/unit/index.ts
Normal file
61
apps/web-antd/src/api/property/resident/unit/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { Resident_unitVO, Resident_unitForm, Resident_unitQuery } 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 resident_unitList(params?: Resident_unitQuery) {
|
||||
return requestClient.get<PageResult<Resident_unitVO>>('/property/resident_unit/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入驻单位列表
|
||||
* @param params
|
||||
* @returns 入驻单位列表
|
||||
*/
|
||||
export function resident_unitExport(params?: Resident_unitQuery) {
|
||||
return commonExport('/property/resident_unit/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入驻单位详情
|
||||
* @param id id
|
||||
* @returns 入驻单位详情
|
||||
*/
|
||||
export function resident_unitInfo(id: ID) {
|
||||
return requestClient.get<Resident_unitVO>(`/property/resident_unit/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入驻单位
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function resident_unitAdd(data: Resident_unitForm) {
|
||||
return requestClient.postWithMsg<void>('/property/resident_unit', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新入驻单位
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function resident_unitUpdate(data: Resident_unitForm) {
|
||||
return requestClient.putWithMsg<void>('/property/resident_unit', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入驻单位
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function resident_unitRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/resident_unit/${id}`);
|
||||
}
|
169
apps/web-antd/src/api/property/resident/unit/model.d.ts
vendored
Normal file
169
apps/web-antd/src/api/property/resident/unit/model.d.ts
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface Resident_unitVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 入驻单位名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 单位编号
|
||||
*/
|
||||
unitNumber: number;
|
||||
|
||||
/**
|
||||
* 企业类型
|
||||
*/
|
||||
type: number;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contactPerson: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone: number;
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
location: string;
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number;
|
||||
|
||||
/**
|
||||
* 员工人数
|
||||
*/
|
||||
number: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface Resident_unitForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 入驻单位名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 单位编号
|
||||
*/
|
||||
unitNumber?: number;
|
||||
|
||||
/**
|
||||
* 企业类型
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contactPerson?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: number;
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 员工人数
|
||||
*/
|
||||
number?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface Resident_unitQuery extends PageQuery {
|
||||
/**
|
||||
* 入驻单位名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 单位编号
|
||||
*/
|
||||
unitNumber?: number;
|
||||
|
||||
/**
|
||||
* 企业类型
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contactPerson?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: number;
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 员工人数
|
||||
*/
|
||||
number?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user