init: 合并代码
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除动态
|
* 删除动态
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user