1、入驻管理
This commit is contained in:
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