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


import com.red.circle.other.app.dto.cmd.user.user.UserLogoutLogCmd;
import com.red.circle.other.infra.database.rds.service.user.user.LogoutLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 查询用户注销记录
 *
 * @author zongpubin on 2023/9/12
 */
@Component
@RequiredArgsConstructor
public class UserLogoutLogQryExe {

  private final LogoutLogService logoutLogService;


  public Boolean execute(UserLogoutLogCmd cmd) {
    return logoutLogService.getByUserId(cmd.requiredReqUserId(), cmd.getLogoutType());
  }
}
