Blame view

admin-web-master/src/api/comment.js 1.19 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  import request from '@/utils/request'
  
  // 评论
  // 敏感词查询
  export function sensitiveGetAll(data) {
    return request({
      url: '/sensitive/get',
      method: 'post',
      data
    })
  }
  
  // 添加敏感词设置
  export function sensitiveAdd(data) {
    return request({
      url: '/sensitive/save',
      method: 'post',
      data
    })
  }
  // 添加敏感词设置
  export function sensitiveUpdate(data) {
    return request({
      url: '/sensitive/update',
      method: 'post',
      data
    })
  }
  
  // 评论管理
  // 评论管理查询
  export function commentSysGetall(data) {
    return request({
      url: '/comment/getAll',
      method: 'post',
      data
    })
  }
  
  // 评论详情查询
  export function commentSysGetById(data) {
    return request({
      url: '/comment/getById',
      method: 'post',
      data
    })
  }
  
  // 修改评论
  export function commentSysUpdate(data) {
    return request({
      url: '/comment/update',
      method: 'post',
      data
    })
  }
  
  // 删除评论
  export function commentSysDelete(data) {
    return request({
      url: '/comment/delete',
      method: 'post',
      data
    })
  }
  // 允许展示评论
  export function commentAllow(data) {
    return request({
      url: '/comment/allow',
      method: 'post',
      data
    })
  }