物业代码生成
This commit is contained in:
61
apps/web-antd/src/api/property/e8Config/index.ts
Normal file
61
apps/web-antd/src/api/property/e8Config/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { E8ConfigVO, E8ConfigForm, E8ConfigQuery } 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';
|
||||
|
||||
/**
|
||||
* 查询E8服务地址列表
|
||||
* @param params
|
||||
* @returns E8服务地址列表
|
||||
*/
|
||||
export function e8ConfigList(params?: E8ConfigQuery) {
|
||||
return requestClient.get<PageResult<E8ConfigVO>>('/property/e8Config/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出E8服务地址列表
|
||||
* @param params
|
||||
* @returns E8服务地址列表
|
||||
*/
|
||||
export function e8ConfigExport(params?: E8ConfigQuery) {
|
||||
return commonExport('/property/e8Config/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询E8服务地址详情
|
||||
* @param id id
|
||||
* @returns E8服务地址详情
|
||||
*/
|
||||
export function e8ConfigInfo(id: ID) {
|
||||
return requestClient.get<E8ConfigVO>(`/property/e8Config/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增E8服务地址
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function e8ConfigAdd(data: E8ConfigForm) {
|
||||
return requestClient.postWithMsg<void>('/property/e8Config', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新E8服务地址
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function e8ConfigUpdate(data: E8ConfigForm) {
|
||||
return requestClient.putWithMsg<void>('/property/e8Config', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除E8服务地址
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function e8ConfigRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/e8Config/${id}`);
|
||||
}
|
99
apps/web-antd/src/api/property/e8Config/model.d.ts
vendored
Normal file
99
apps/web-antd/src/api/property/e8Config/model.d.ts
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface E8ConfigVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* E8 名称
|
||||
*/
|
||||
e8Name: string;
|
||||
|
||||
/**
|
||||
* E8服务地址
|
||||
*/
|
||||
e8ServerUrl: string;
|
||||
|
||||
/**
|
||||
* E8服务提供的secret
|
||||
*/
|
||||
e8Secret: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState: number;
|
||||
|
||||
}
|
||||
|
||||
export interface E8ConfigForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* E8 名称
|
||||
*/
|
||||
e8Name?: string;
|
||||
|
||||
/**
|
||||
* E8服务地址
|
||||
*/
|
||||
e8ServerUrl?: string;
|
||||
|
||||
/**
|
||||
* E8服务提供的secret
|
||||
*/
|
||||
e8Secret?: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface E8ConfigQuery extends PageQuery {
|
||||
/**
|
||||
* E8 名称
|
||||
*/
|
||||
e8Name?: string;
|
||||
|
||||
/**
|
||||
* E8服务地址
|
||||
*/
|
||||
e8ServerUrl?: string;
|
||||
|
||||
/**
|
||||
* E8服务提供的secret
|
||||
*/
|
||||
e8Secret?: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user