mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
50 lines
1.5 KiB
JavaScript
50 lines
1.5 KiB
JavaScript
/**课程标签模块的相关处理*/
|
|
// import ajax from '@/utils/xajax.js'
|
|
import http from "@/api/configPublic";
|
|
|
|
/**
|
|
* 分页查询:标签列表
|
|
* @param {Object} query
|
|
*/
|
|
const portalPageList = (query = {}) => http.post(`/systemapi/xboe/m/coursetag/page`, query);
|
|
|
|
//改变标签的公共属性
|
|
const changeTagPublic = (row = {}) => http.post(`/systemapi/xboe/m/coursetag/changePublicStatus`, {
|
|
id: row.id,
|
|
isPublic: row.isPublic
|
|
});
|
|
|
|
//改变标签的热点属性
|
|
const changeTagHot = (row = {}) => http.post(`/systemapi/xboe/m/coursetag/changeHotStatus`, {
|
|
id: row.id,
|
|
isPublic: row.isHot
|
|
});
|
|
|
|
//查询指定id的标签关联的所有课程
|
|
const showCourseByTag = (query = {}) => http.post(`/systemapi/xboe/m/coursetag/showCourseByTag`, query);
|
|
|
|
|
|
//解除指定id的课程和某个标签之间的关联关系
|
|
const unbindCourseTagRelation = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/unbind`, params);
|
|
|
|
//编辑课程:标签模糊查询
|
|
const searchTags = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/searchTags`, params);
|
|
|
|
|
|
//编辑课程:创建标签(与当前课程关联)
|
|
const createTag = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/createTag`, params);
|
|
|
|
//获取最新前10个热点标签
|
|
const getHotTagList = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/getHotTagList`, params);
|
|
|
|
export default {
|
|
portalPageList,
|
|
changeTagPublic,
|
|
changeTagHot,
|
|
showCourseByTag,
|
|
unbindCourseTagRelation,
|
|
searchTags,
|
|
createTag,
|
|
getHotTagList
|
|
}
|