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

import com.red.circle.console.app.service.app.user.UserLogoutLogService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.user.UserLogoutLogQryCmd;
import com.red.circle.other.inner.model.dto.user.UserLogoutLogDTO;
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>
 * 用户注销记录 前端控制器.
 * </p>
 *
 * @author zongpubin on 2023-09-11 12:23
 */
@RestController
@AllArgsConstructor
@RequestMapping(value = "/user-logout-log",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class UserLogoutLogRestController extends BaseController {

  private final UserLogoutLogService userLogoutLogService;

  /**
   * 注销日志.
   */
  @GetMapping("/page")
  public PageResult<UserLogoutLogDTO> pageLogoutInfo(UserLogoutLogQryCmd query) {
    return userLogoutLogService.pageUserLogoutLog(query);
  }

}
