import type { Tongzhi as TongzhiDto } from '@authcore/commons';
import type { TongzhiContent } from './tongzhiContent';

/** 通知列表/详情中 push_info 常见展示键（其余键仍可存在） */
export type TongzhiPushInfo = Record<string, unknown> & {
  course_name?: string;
  course_section_name?: string;
  jihua_id?: string;
  lianxi_id?: string;
  daka_id?: string;
  clazz_id?: string;
  ref_id?: string;
  serial?: string;
  comment_id?: string;
};

/** 业务侧强类型 Tongzhi（commons 仅 DTO） */
export type Tongzhi = Omit<TongzhiDto, 'content' | 'push_info'> & {
  content: TongzhiContent;
  push_info?: TongzhiPushInfo;
};
