27 lines
560 B
TypeScript
27 lines
560 B
TypeScript
import { request } from '@/plugins/http-fetch';
|
|
|
|
type OperationLogType = {
|
|
account_name: string;
|
|
account_type: string; //type:int
|
|
op_ip: string;
|
|
subsys_tag: string;
|
|
op_type: string;
|
|
op_content: string;
|
|
op_result: string;
|
|
begin_time: string;
|
|
end_time: string;
|
|
vnf_flag: string; //0-物理设备 1-虚拟化设备
|
|
};
|
|
|
|
/**
|
|
* 操作日志
|
|
* @returns object
|
|
*/
|
|
export function operationLog(opt: OperationLogType) {
|
|
return request({
|
|
url: '/databaseManagement/v1/insert/omc_db/operation_log',
|
|
method: 'post',
|
|
data: [opt],
|
|
});
|
|
}
|