init: 合并代码

This commit is contained in:
bao
2025-12-24 23:55:00 +08:00
parent d8b16e0287
commit d20ce917a2
2 changed files with 3 additions and 4 deletions

View File

@@ -17,11 +17,11 @@ public interface PostService {
/** /**
* 创建动态 * 创建动态
* @param userId 用户ID *
* @param postRequestDTO 动态数据传输对象 * @param postRequestDTO 动态数据传输对象
* @return 创建的动态对象 * @return 创建的动态对象
*/ */
Post createPost(Long userId, PostRequestDTO postRequestDTO); Post createPost(PostRequestDTO postRequestDTO);
/** /**
* 删除动态 * 删除动态

View File

@@ -79,12 +79,11 @@ public class PostServiceImpl implements PostService {
/** /**
* 创建动态 * 创建动态
* *
* @param userId 用户ID
* @param postRequestDTO 动态数据传输对象 * @param postRequestDTO 动态数据传输对象
* @return 创建的动态对象 * @return 创建的动态对象
*/ */
@Override @Override
public Post createPost(Long userId, PostRequestDTO postRequestDTO) { public Post createPost(PostRequestDTO postRequestDTO) {
// 创建动态对象 // 创建动态对象
Post post = new Post(); Post post = new Post();