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

import com.red.circle.console.app.dto.clienobject.user.UserPasswordLogCO;
import com.red.circle.console.app.service.app.user.UserPasswordLogService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.user.UserPasswordLogQryCmd;
import lombok.AllArgsConstructor;
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-12-07 11:19
 */
@RestController
@AllArgsConstructor
@RequestMapping("/user-password-log")
public class UserPasswordLogRestController extends BaseController {

  private final UserPasswordLogService userPasswordLogService;

  /**
   * 密码日志分页列表.
   */
  @GetMapping("/page")
  public PageResult<UserPasswordLogCO> userPasswordLogPage(
      UserPasswordLogQryCmd query) {
    return userPasswordLogService.pageListQuery(query);
  }

}
