package com.red.circle.other.inner.endpoint.user.user.api;

import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.user.UserPasswordLogQryCmd;
import com.red.circle.other.inner.model.dto.user.PasswordLogDTO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 密码日志.
 *
 * @author pengliang on 2024/1/5
 */
public interface PasswordLogClientApi {

  String API_PREFIX = "/password/log/client";

  /**
   * 保存日志.
   */
  @PostMapping("/save")
  ResultResponse<Boolean> save(@RequestBody @Validated PasswordLogDTO dto);

  @PostMapping("/pageListQuery")
  ResultResponse<PageResult<PasswordLogDTO>> pageListQuery(
      @RequestBody UserPasswordLogQryCmd query);
}
