export interface SatisfactionModel {
  id: string; //	满意度调研问卷ID
  name: string; //满意度调研问卷名称
  satisfiesyContent: {
    name: string; //问卷名称
    startSentence: string; //开头语
    endSentence: string; //结束语
    suggestion: string; //其他意见
    groups: Array<{
      name: string; //	问题组名称
      items: Array<{
        name: string;
        score: string;
      }>;
    }>;
  };
  satisfiesyPmr: {
    triggerType: string; //触发方式 0-就诊后 1-调养付款后 2-调养结束后
    triggerIntervalHours: number; //触发间隔小时数
  };
  triggerStr: string; //触发条件
  pushType: string; //推送类型 0-站内 1-企业微信
  status: string; //状态 0-启用 1-禁用
  createTime: string; //创建时间
  sendCount: number; //已发送条数
}

export type SatisfactionQuery = Partial<SatisfactionModel>;

//发送记录
export interface SatisfactionSendRecordModel {
  id: string; //满意度调研问卷ID
  name: string; //满意度调研问卷名称
  sendTime: string; //发送时间
  submitTime: string; //问卷提交时间
  patientName: string; //姓名
  phone: string; //手机号码
  score: number; //得分
  sendTimeStart: string; //发送开始时间
  sendTimeEnd: string; //发送结束时间
  isFilled: boolean; //是否已填写
}
export type SatisfactionSendRecordQuery = Partial<SatisfactionSendRecordModel>;

//满意度问卷统计
export interface SatisfactionStatisticsModel {
  id: string; //满意度调研问卷ID
  ids: string[]; //满意度调研问卷ID集合
  name: string; //满意度调研问卷名称
  sendTimeStart: string; // 发送起始时间
  sendTimeEnd: string; // 发送结束时间
  xaxis: string[]; //x轴数据
  yaxis: number[]; //y轴数据
}
export type SatisfactionStatisticsQuery = Partial<SatisfactionStatisticsModel>;
