物业代码生成
This commit is contained in:
61
apps/web-antd/src/api/property/operationLog/index.ts
Normal file
61
apps/web-antd/src/api/property/operationLog/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { OperationLogVO, OperationLogForm, OperationLogQuery } 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 operationLogList(params?: OperationLogQuery) {
|
||||
return requestClient.get<PageResult<OperationLogVO>>('/property/operationLog/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出请求日志列表
|
||||
* @param params
|
||||
* @returns 请求日志列表
|
||||
*/
|
||||
export function operationLogExport(params?: OperationLogQuery) {
|
||||
return commonExport('/property/operationLog/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询请求日志详情
|
||||
* @param id id
|
||||
* @returns 请求日志详情
|
||||
*/
|
||||
export function operationLogInfo(id: ID) {
|
||||
return requestClient.get<OperationLogVO>(`/property/operationLog/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增请求日志
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function operationLogAdd(data: OperationLogForm) {
|
||||
return requestClient.postWithMsg<void>('/property/operationLog', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新请求日志
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function operationLogUpdate(data: OperationLogForm) {
|
||||
return requestClient.putWithMsg<void>('/property/operationLog', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除请求日志
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function operationLogRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/operationLog/${id}`);
|
||||
}
|
274
apps/web-antd/src/api/property/operationLog/model.d.ts
vendored
Normal file
274
apps/web-antd/src/api/property/operationLog/model.d.ts
vendored
Normal file
@@ -0,0 +1,274 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface OperationLogVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 操作员code
|
||||
*/
|
||||
userCode: string;
|
||||
|
||||
/**
|
||||
* 操作员姓名
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
/**
|
||||
* 域名
|
||||
*/
|
||||
sysArea: string;
|
||||
|
||||
/**
|
||||
* 方法
|
||||
*/
|
||||
method: string;
|
||||
|
||||
/**
|
||||
* 方法
|
||||
*/
|
||||
methodDesc: string;
|
||||
|
||||
/**
|
||||
* 类方法
|
||||
*/
|
||||
classMethod: string;
|
||||
|
||||
/**
|
||||
* ip地址
|
||||
*/
|
||||
requestIp: string;
|
||||
|
||||
/**
|
||||
* 请求入参
|
||||
*/
|
||||
requestArgs: string;
|
||||
|
||||
/**
|
||||
* 响应类型 0 正常 1 异常
|
||||
*/
|
||||
responseType: number;
|
||||
|
||||
/**
|
||||
* 响应原始数据-包含正常异常
|
||||
*/
|
||||
responseBody: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState: number;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
createEmpId: string | number;
|
||||
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
createEmpName: string;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
modifyEmpId: string | number;
|
||||
|
||||
/**
|
||||
* 修改人名称
|
||||
*/
|
||||
modifyEmpName: string;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface OperationLogForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 操作员code
|
||||
*/
|
||||
userCode?: string;
|
||||
|
||||
/**
|
||||
* 操作员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 域名
|
||||
*/
|
||||
sysArea?: string;
|
||||
|
||||
/**
|
||||
* 方法
|
||||
*/
|
||||
method?: string;
|
||||
|
||||
/**
|
||||
* 方法
|
||||
*/
|
||||
methodDesc?: string;
|
||||
|
||||
/**
|
||||
* 类方法
|
||||
*/
|
||||
classMethod?: string;
|
||||
|
||||
/**
|
||||
* ip地址
|
||||
*/
|
||||
requestIp?: string;
|
||||
|
||||
/**
|
||||
* 请求入参
|
||||
*/
|
||||
requestArgs?: string;
|
||||
|
||||
/**
|
||||
* 响应类型 0 正常 1 异常
|
||||
*/
|
||||
responseType?: number;
|
||||
|
||||
/**
|
||||
* 响应原始数据-包含正常异常
|
||||
*/
|
||||
responseBody?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
createEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
createEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
modifyEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 修改人名称
|
||||
*/
|
||||
modifyEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface OperationLogQuery extends PageQuery {
|
||||
/**
|
||||
* 操作员code
|
||||
*/
|
||||
userCode?: string;
|
||||
|
||||
/**
|
||||
* 操作员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 域名
|
||||
*/
|
||||
sysArea?: string;
|
||||
|
||||
/**
|
||||
* 方法
|
||||
*/
|
||||
method?: string;
|
||||
|
||||
/**
|
||||
* 方法
|
||||
*/
|
||||
methodDesc?: string;
|
||||
|
||||
/**
|
||||
* 类方法
|
||||
*/
|
||||
classMethod?: string;
|
||||
|
||||
/**
|
||||
* ip地址
|
||||
*/
|
||||
requestIp?: string;
|
||||
|
||||
/**
|
||||
* 请求入参
|
||||
*/
|
||||
requestArgs?: string;
|
||||
|
||||
/**
|
||||
* 响应类型 0 正常 1 异常
|
||||
*/
|
||||
responseType?: number;
|
||||
|
||||
/**
|
||||
* 响应原始数据-包含正常异常
|
||||
*/
|
||||
responseBody?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
createEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
createEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
modifyEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 修改人名称
|
||||
*/
|
||||
modifyEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user