1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import { axios } from '@/utils/request'
- export function fetchCommentLists (query) {
- return axios({
- url: '/comments/comments/v1/list',
- method: 'get',
- params: query
- })
- }
- export function fetchCommentList (query) {
- return axios({
- url: '/comments/comments/v1/list',
- method: 'get',
- params: query
- })
- }
- export function replyComment (data) {
- return axios({
- url: '/comments/admin/v1/reply',
- method: 'post',
- data
- })
- }
- export function fetchComment (id) {
- return axios({
- url: `/comments/comments/v1/${id}`,
- method: 'get'
- })
- }
- export function updateComment (data) {
- return axios({
- url: '/comments/comments/v1/update',
- method: 'put',
- data
- })
- }
- export function deleteComment (id) {
- return axios({
- url: `/comments/comments/v1/${id}`,
- method: 'delete'
- })
- }
|