import request from '@/sheep/request';

const KnowledgeApi = {
  // 查询知识课堂列表
  getPage: (params) => {
    return request({
      url: '/community/knowledge-class/page',
      method: 'GET',
      data: params,
      custom: {
        showLoading: false,
        auth: true,
      },
    });
  },
  // 查询知识课堂详情
  getDetail: (id) => {
    return request({
      url: '/community/knowledge-class/get',
      method: 'GET',
      data: { id },
      custom: {
        showLoading: true,
        auth: true,
      },
    });
  },
};

export default KnowledgeApi;
