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

import com.red.circle.console.app.service.app.user.UserLogoutApplyService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.user.UserLogoutApplyQryCmd;
import com.red.circle.other.inner.model.dto.user.UserLogoutApplyDTO;
import lombok.AllArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户注销web页面申请 前端控制器.
 * </p>
 *
 * @author zongpubin on 2023-09-18 15:11
 */
@RestController
@AllArgsConstructor
@RequestMapping(value = "/user-logout-apply",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class UserLogoutApplyRestController extends BaseController {

  private final UserLogoutApplyService userLogoutApplyService;

  /**
   * 注销申请.
   */
  @GetMapping("/page")
  public PageResult<UserLogoutApplyDTO> pageLogoutApplyInfo(UserLogoutApplyQryCmd query) {
    return userLogoutApplyService.pageUserLogoutApply(query);
  }

}
