linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
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
import http from '@/http/api.js'
 
//发布圈子内容
export const handlePublish = (params) => {
    return http.request({
        url: '/blade-circle/circle/save',
        method: 'POST',
        data: params
    })
}
 
//获取圈子列表
export const getList = (params) => {
    return http.request({
        url: '/blade-circle/circle/page',
        method: 'GET',
        params: {
            ...params
        }
    })
}
 
//获取圈子详情
export const getDetail = (params) => {
    return http.request({
        url: '/blade-circle/circle/detail',
        method: 'GET',
        params: {
            ...params
        }
    })
}
 
//圈子点赞
export const handleLike = (params) => {
    return http.request({
        url: '/blade-circleLike/circleLike/submit',
        method: 'POST',
        data: params
    })
}
 
//圈子评论
export const handleAddComment = (params) => {
    return http.request({
        url: '/blade-circleComment/circleComment/save',
        method: 'POST',
        data: params
    })
}
 
//评论列表
export const getComment = (params) => {
    return http.request({
        url: '/blade-circleComment/circleComment/page',
        method: 'GET',
        params: {
            ...params
        }
    })
}