package com.red.circle.console.app.service.app.user;

import com.red.circle.framework.core.asserts.ResponseAssert;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.other.inner.endpoint.user.user.UserLogoutApplyClient;
import com.red.circle.other.inner.model.cmd.user.UserLogoutApplyQryCmd;
import com.red.circle.other.inner.model.dto.user.UserLogoutApplyDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 用户注销web页面申请
 *
 * @author zongpubin on 2024/2/27
 */
@RequiredArgsConstructor
@Service
public class UserLogoutApplyServiceImpl implements UserLogoutApplyService {

  private final UserLogoutApplyClient userLogoutApplyClient;

  @Override
  public PageResult<UserLogoutApplyDTO> pageUserLogoutApply(UserLogoutApplyQryCmd query) {
    return ResponseAssert.requiredSuccess(userLogoutApplyClient.pageUserLogoutApply(query));
  }
}
