完成动态删除功能

This commit is contained in:
KilLze
2025-12-18 21:11:45 +08:00
parent c01824513b
commit 84e8fe4ff6
7 changed files with 48 additions and 2 deletions

View File

@@ -92,4 +92,15 @@ public class PostServiceImpl implements PostService {
postMapper.insert(post);
return post;
}
/**
* 删除动态
*
* @param postId 动态ID
* @return 删除的动态对象
*/
@Override
public void deletePostById(Integer postId) {
postMapper.deletePostById(postId);
}
}