package com.red.circle.other.app.command.user;


import com.red.circle.other.app.dto.cmd.user.user.UserImCountCmd;
import com.red.circle.other.infra.database.rds.service.user.user.ImCountService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 标记已点亮爱心
 *
 * @author zongpubin on 2023/11/17
 */
@Component
@AllArgsConstructor
public class UserImCountLightLoveCmdExe {

  private final ImCountService imCountService;

  public void execute(UserImCountCmd cmd) {
    imCountService.updateByIds(cmd.getReqUserId(), cmd.getAcceptUserId(),cmd.getReqSysOrigin().getOrigin());
  }
}
