import request from '../utils/request.js'
let teacherPrefix = import.meta.env.VITE_API_TEACHER_PRE 

// 查询问卷模板数据
export const getQuestionnaireTemplateListApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/teacherTemplate/queryTeacherEvaluationTemplate/${evaluationId}`,
        method: 'get',
    })
}

// 保存问卷模板数据
// unifyTemplateStatus   统一模板状态，0-否(未勾选),1-是(已勾选)
export const saveQuestionnaireTemplateListApi = (data:any,unifyTemplateStatus:number) => {
    return request({
        url: `${teacherPrefix}/api/v1/teacherTemplate/modifyTemplateInfo/${unifyTemplateStatus}`,
        method: 'post',
        data
    })
}
