import request from '@/utils/request';
//课程详情
export const kc_detail = (data = {}) =>
    request({
        url: '/khfw/kcbkb/detail_mix',
        data,
    })
//课程出勤
export const kccq_detail = (data = {}) =>
    request({
        url: '/khfw/kccq/index',
        data: {
            kxq_code: data.kxq_code,

        }
    })
//课程登记点名
export const djdm_detail = (data = {}) =>
    request({
        url: '/khfw/kccq/checkin',
        data: {
            kkbk_id: data.kkbk_id,
            sendmsg: data.sendmsg,
            kccq_sfydm: data.kccq_sfydm,
            member: {
                kccq_cqycxsbh: data.kccq_cqycxsbh,
                kccq_cqycxsxm: data.kccq_cqycxsxm,
                kccq_cqycztbh: data.kccq_cqycztbh
            }
        },


    })
//课程情况反馈
export const kcqkfk_add = (data = {}) =>
    request({
        url: '/khfw/kcbkb/detail_mix/khfw/kcbkb_kcqkfk/add',
        data: {
            issubmit: '1',
            khfw_kcbkb_kcqkfk: {
                kkk_keyword: data.kkk_keyword,
                kkb_id: data.kkb_id,
                kkbk_id: data.kkbk_id,
                kkbk_sszt: data.kkbk_sszt,
                kkk_content: data.kkk_content,
                kkk_img: data.kkk_img,
                kkq_qnzt: data.kkq_qnzt,

            }

        }
    })
//课程签到
export const kcqd_detail = (data = {}) =>
    request({
        url: '/khfw/kcbkb/detail_mix',
        data: {
            kkbk_id: data.kkbk_id,

        }
    })
