import request from '@/config/axios'

// 评估报告-评语 VO
export interface ManageVO {
  brcId: number // 主键id
  brcReportCourseMin: number // 开课率最小
  brcReportCourseMax: number // 开课率最大
  brcReportQuestMin: number // 互动最小
  brcReportQuestMax: number // 互动最大
  brcReportAiCountMin: number // ai问答次数最小
  brcReportAiCountMax: number // ai问答次数最大
  brcReportLevel: string // 等级
  brcReportComment: string // 评语
  tenantId: Number // 租户id
}

// 评估报告-评语 API
export const ManageApi = {
  // 查询评估报告-评语分页
  getManagePage: async (params: any) => {
    return await request.get({ url: `/bjdxReport/manage/page`, params })
  },

  // 查询评估报告-评语详情
  getManage: async (id: number) => {
    return await request.get({ url: `/bjdxReport/manage/get?id=` + id })
  },

  // 新增评估报告-评语
  createManage: async (data: ManageVO) => {
    return await request.post({ url: `/bjdxReport/manage/create`, data })
  },

  // 修改评估报告-评语
  updateManage: async (data: ManageVO) => {
    return await request.put({ url: `/bjdxReport/manage/update`, data })
  },

  // 删除评估报告-评语
  deleteManage: async (id: number) => {
    return await request.delete({ url: `/bjdxReport/manage/delete?id=` + id })
  },

  // 导出评估报告-评语 Excel
  exportManage: async (params) => {
    return await request.download({ url: `/bjdxReport/manage/export-excel`, params })
  }
}
