/*
 * @Author: your name
 * @Date: 2021-09-09 16:00:09
 * @LastEditTime: 2021-12-09 16:05:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/pages/GradeHospitalAccreditation/accreditationDetail/typings.d.ts
 */




declare namespace API {
       
      type RequestResult = {
          status: number,
          msg?: string,
          [propsName: string]: any
      }

      type ResultTreeDataItem = {
        title: string,
        id: string,
        code: string,
        isLeaf: boolean,
        levelNum: number,
        version: string,
        children?: ResultTreeData[]
      }
      type RuleDetailListItem = {
        evaluation: string,
        detail: {
          title: string|number,
        }[]|[]
      }

      type AddDetailRule = {
        parentId: number,
        name: string,
        detail: RuleDetailListItem[]
      }

      type EditDetailRule = {
        id: number,
        name: string,
        detail: {
          evaluation: string,
          detail: {
            title: string|number,
          }[]|[]
        }[]|[]
      }

      type DetailRuleList = {
        evaluation: string,
        detail: {
          title: string
        }[]
      }
    
      type ResultTreeData =ResultTreeDataItem[]

      type GetMaterialListApiParams = {
        numStr: string,// 四码
        version: string,// 版本
        current?: number,// 当前页码
        grade?: string,// 档次
        keyword?: string,// 关键词
        pageSize?: number,
      }

      type MaterialDirListItem = {  // 资料目录表格项数据
        directory: string,
        grade: string,
        id: number,
        note: string,
        numStr: string,
        profileName: string,
        ruleId: number,
        sort: number
      }

      type GetMaterialListApiResult = {  // 资料目录获取表格数据接口返回
          current: number,
          list: MaterialDirListItem[],
          pageSize: number,
          totalCount: number,
          totalPage: number,
      }

  

}
