import type { BaseModel, ReduceForPageQuery, ReduceForSaveVO, ReduceForUpdateVO } from '@/apis';
import type { Nullable } from '@/types';

export interface NdmCallLog extends BaseModel {
  /**
   * 调用者国标码
   */
  sourceGbId: string;
  /**
   * 用户所属类别
   */
  sourceType: string;
  /**
   * 被调用设备国标码
   */
  targetGbId: string;
  /**
   * 被调用设备名称
   */
  targetName: string;
  /**
   * 调用方法
   */
  method: string;
  /**
   * message类型
   */
  messageType: string;
  /**
   * 操作类型
   */
  cmdType: string;
  /**
   * 日志类型
   */
  logType: string;
}

export type NdmCallLogResultVO = Nullable<NdmCallLog>;

export type NdmCallLogSaveVO = Partial<Omit<NdmCallLog, ReduceForSaveVO>>;

export type NdmCallLogUpdateVO = Partial<Omit<NdmCallLog, ReduceForUpdateVO>>;

export type NdmCallLogPageQuery = Partial<Omit<NdmCallLog, ReduceForPageQuery>>;
