fjrcloud-community-app/sheep/api/community/knowledge.js

31 lines
590 B
JavaScript
Raw Normal View History

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;