点赞处理我的点赞图片
This commit is contained in:
parent
82cc8d3b89
commit
6ded4a43e3
@ -13,6 +13,7 @@ import com.red.circle.other.infra.database.rds.entity.dynamic.DynamicMessage;
|
|||||||
import com.red.circle.other.infra.database.rds.service.dynamic.DynamicCommentLikeService;
|
import com.red.circle.other.infra.database.rds.service.dynamic.DynamicCommentLikeService;
|
||||||
import com.red.circle.other.infra.database.rds.service.dynamic.DynamicContentService;
|
import com.red.circle.other.infra.database.rds.service.dynamic.DynamicContentService;
|
||||||
import com.red.circle.other.infra.database.rds.service.dynamic.DynamicMessageService;
|
import com.red.circle.other.infra.database.rds.service.dynamic.DynamicMessageService;
|
||||||
|
import com.red.circle.other.infra.database.rds.service.dynamic.DynamicPictureService;
|
||||||
import com.red.circle.other.inner.asserts.DynamicErrorCode;
|
import com.red.circle.other.inner.asserts.DynamicErrorCode;
|
||||||
import com.red.circle.tool.core.date.TimestampUtils;
|
import com.red.circle.tool.core.date.TimestampUtils;
|
||||||
import com.red.circle.tool.core.num.NumUtils;
|
import com.red.circle.tool.core.num.NumUtils;
|
||||||
@ -39,6 +40,7 @@ public class DynamicCommentLikeCmdExe {
|
|||||||
private final DynamicPopularService dynamicPopularService;
|
private final DynamicPopularService dynamicPopularService;
|
||||||
private final DynamicCommentLikeService dynamicCommentLikeService;
|
private final DynamicCommentLikeService dynamicCommentLikeService;
|
||||||
private final DynamicMessageService dynamicMessageService;
|
private final DynamicMessageService dynamicMessageService;
|
||||||
|
private final DynamicPictureService dynamicPictureService;
|
||||||
|
|
||||||
public Long execute(DynamicLikeCmd cmd) {
|
public Long execute(DynamicLikeCmd cmd) {
|
||||||
|
|
||||||
@ -131,6 +133,7 @@ public class DynamicCommentLikeCmdExe {
|
|||||||
message.setId(IdWorkerUtils.getId());
|
message.setId(IdWorkerUtils.getId());
|
||||||
message.setDynamicContentId(cmd.getDynamicId());
|
message.setDynamicContentId(cmd.getDynamicId());
|
||||||
message.setDynamicCommentId(cmd.getCommentId());
|
message.setDynamicCommentId(cmd.getCommentId());
|
||||||
|
message.setContent(dynamicPictureService.getFirstNormalPic(cmd.getDynamicId()));
|
||||||
message.setType(type.name());
|
message.setType(type.name());
|
||||||
message.setToUserId(cmd.getToUserId());
|
message.setToUserId(cmd.getToUserId());
|
||||||
message.setCreateTime(TimestampUtils.now());
|
message.setCreateTime(TimestampUtils.now());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user