export const alertTypeOptions = [
  { label: '课时不足', value: 'HOURS_LOW', elTagType: 'warning' },
  { label: '即将到期', value: 'EXPIRING', elTagType: 'danger' },
  { label: '已过期', value: 'EXPIRED', elTagType: 'danger' }
];

export const alertLevelOptions = [
  { label: '提醒', value: 'INFO', elTagType: 'info' },
  { label: '警告', value: 'WARN', elTagType: 'warning' },
  { label: '紧急', value: 'URGENT', elTagType: 'danger' }
];

export const alertStatusOptions = [
  { label: '待处理', value: '0', elTagType: 'warning' },
  { label: '已处理', value: '1', elTagType: 'success' },
  { label: '已忽略', value: '2', elTagType: 'info' }
];

export interface AlertVO extends BaseEntity {
  id: number | string;
  studentId: number | string;
  contractId: number | string;
  contractNo: string;
  alertType: string;
  level: string;
  title: string;
  content: string;
  thresholdValue: number;
  currentValue: number;
  housekeeperId: number | string;
  status: string;
  handledBy: number | string;
  handledAt: string;
  handleRemark: string;
}

export interface AlertQuery extends PageQuery {
  studentId: number | string;
  contractId: number | string;
  contractNo: string;
  alertType: string;
  level: string;
  status: string;
  housekeeperId: number | string;
}

export interface AlertHandleForm {
  id: number | string;
  handleRemark: string;
}
