添加朋友圈功能

This commit is contained in:
bobobobo
2026-01-13 01:12:29 +08:00
parent ac67fa30f4
commit 06e026c8b8
8 changed files with 319 additions and 44 deletions

View File

@@ -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'
})
}