添加朋友圈功能
This commit is contained in:
@@ -197,3 +197,46 @@ export const getUserTradeRecordList = data => {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 发布朋友圈 */
|
||||
export const addUserMoments = data => {
|
||||
return http({
|
||||
url: '/api/service/userMoments',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 获取朋友圈列表 */
|
||||
export const getUserMomentsList = data => {
|
||||
return http({
|
||||
url: '/api/service/userMoments/list',
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 点赞 */
|
||||
export const likeUserMoments = id => {
|
||||
return http({
|
||||
url: `/api/service/userMoments/like/${id}`,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
/** 发布评论 */
|
||||
export const addUserMomentsComment = data => {
|
||||
return http({
|
||||
url: '/api/service/userMoments/comment',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 删除 */
|
||||
export const deleteUserMoments = id => {
|
||||
return http({
|
||||
url: `/api/service/userMoments/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user