/**
 * 运行记录查询参数
 */
export interface RRobotRunRecordQuery {
  uuid?: string;
  robotUuid?: string;
  robotAccount?: string;
  configType?: string;
  configName?: string;
  configUuid?: string;
  notes?: string;
  executeStartTime?: string;
  executeEndTime?: string;
  executeStatus?: number;
  executeDesc?: string;
  executeLog?: string;
  creator?: string;
  creatorUuid?: string;
  createTime?: string;
  updateTime?: string;
}

/**
 * 运行记录实体
 */
export interface RRobotRunRecord {
  id?: number;
  uuid?: string;
  robotUuid?: string;
  robotAccount?: string;
  configType?: string;
  configName?: string;
  configUuid?: string;
  notes?: string;
  executeStartTime?: string;
  executeEndTime?: string;
  executeStatus?: number;
  executeDesc?: string;
  executeLog?: string;
  creator?: string;
  creatorUuid?: string;
  createTime?: string;
  updateTime?: string;
}

/**
 * 运行记录分页响应
 */
export interface RRobotRunRecordPageResponse {
  list: RRobotRunRecord[];
  total: number;
  current: number;
  size: number;
}

/**
 * 运行记录列表响应
 */
export interface RRobotRunRecordListResponse {
  list: RRobotRunRecord[];
}

/**
 * 运行记录创建请求
 */
export interface RRobotRunRecordCreateRequest {
  robotUuid: string;
  robotAccount: string;
  configType: string;
  configName: string;
  configUuid: string;
  notes?: string;
  executeStartTime?: string;
  executeEndTime?: string;
  executeStatus: number;
  executeDesc?: string;
  executeLog?: string;
  creator: string;
  creatorUuid: string;
}

/**
 * 运行记录更新请求
 */
export interface RRobotRunRecordUpdateRequest {
  uuid: string;
  robotUuid?: string;
  robotAccount?: string;
  configType?: string;
  configName?: string;
  configUuid?: string;
  notes?: string;
  executeStartTime?: string;
  executeEndTime?: string;
  executeStatus?: number;
  executeDesc?: string;
  executeLog?: string;
  creator?: string;
  creatorUuid?: string;
}

/**
 * 执行状态选项
 */
export const executeStatusOptions = [
  { label: '未开始', value: 0 },
  { label: '执行中', value: 1 },
  { label: '失败', value: 2 },
  { label: '异常', value: 3 },
  { label: '成功', value: 4 }
];

/**
 * 配置类型选项
 */
export const configTypeOptions = [
  { label: '运行配置', value: 'v1' },
  { label: '送礼配置', value: 'v2' },
  { label: '聊天配置', value: 'v3' }
];