{"size": 573, "ext": "js", "max_stars_repo_path": "src/network/comment.js", "max_stars_repo_name": "phk422/videoproject-vue", "max_stars_repo_stars_event_min_datetime": "2020-08-18T03:06:53.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-10T14:06:44.000Z", "max_issues_repo_path": "src/network/comment.js", "max_issues_repo_name": "phk422/videoproject-vue", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/network/comment.js", "max_forks_repo_name": "phk422/videoproject-vue", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.3714285714, "max_line_length": 48, "alphanum_fraction": 0.5497382199}
import { request } from './request'

// 添加评论
export function addComment(uid, vid, content) {
  return request({
    url: '/comment/addComment',
    method: 'post',
    data: {
      uid, vid, content
    }
  })
}

// 获取评论
export function getComments(vid) {
  return request({
    url: '/comment/getComments',
    method: 'post',
    data: {
      vid
    }
  })
}

// 删除评论
export function deleteCommentById(commentId) {
  return request({
    url: '/comment/deleteCommentById',
    method: 'post',
    data: {
      commentId
    }
  })
}
