export const rpTypeOptions = [
  { label: '奖励', value: 'REWARD', elTagType: 'success' },
  { label: '惩罚', value: 'PUNISH', elTagType: 'danger' }
];

export const rpCategoryOptions = [
  { label: '学业优秀', value: 'ACADEMIC', elTagType: 'primary' },
  { label: '进步显著', value: 'PROGRESS', elTagType: 'success' },
  { label: '课堂表现', value: 'CLASSROOM', elTagType: 'warning' },
  { label: '作业完成', value: 'HOMEWORK', elTagType: 'primary' },
  { label: '考勤', value: 'ATTENDANCE', elTagType: 'info' },
  { label: '纪律', value: 'DISCIPLINE', elTagType: 'danger' },
  { label: '其他', value: 'OTHER', elTagType: 'info' }
];

export const rpStatusOptions = [
  { label: '已生效', value: '0', elTagType: 'success' },
  { label: '已撤销', value: '1', elTagType: 'info' }
];

export interface RewardPunishVO extends BaseEntity {
  id: number | string;
  studentId: number | string;
  studentName: string;
  type: string;
  category: string;
  title: string;
  occurTime: string;
  scoreChange: number;
  handlerId: number | string;
  handlerName: string;
  description: string;
  attachments: string;
  status: string;
  remark: string;
}

export interface RewardPunishQuery extends PageQuery {
  studentId: number | string;
  type: string;
  category: string;
  status: string;
}

export interface RewardPunishForm {
  id?: number | string;
  studentId: number | string;
  type: string;
  category?: string;
  title: string;
  occurTime?: string;
  scoreChange?: number;
  description?: string;
  attachments?: string;
  status?: string;
  remark?: string;
}
