index.js 960 字节
import {
  request
} from '@/utils/http'


// 论坛列表 /api/forum/forum/list
export const getList = params => request({ url: '/api/forum/forum/list', method: 'post', data: params })

// 论坛详情 /api/forum/forum/detail
export const getDetail = (id) => request({ url: '/api/forum/forum/detail', method: 'post', data: id })

// 获取论坛类型 /api/forum/ftype/index
export const getTabsCate = (data) => request({ url: '/api/forum/ftype/index', method: 'post', data })

// 论坛评论列表 /api/forum/comment/list
export const getCommentList = (data) => request({ url: '/api/forum/comment/list', method: 'post', data })

// 点赞评论收藏 /api/forum/forum/favorite
export const getFavorite = (data) => request({ url: '/api/forum/forum/favorite', method: 'post', data })

// 评论点赞 /api/forum/Comment/comment_favorite
export const getCommentFavorite = (data) => request({ url: '/api/forum/Comment/comment_favorite', method: 'post', data })