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.UserConfessionRecordQryCmd;
import com.red.circle.other.inner.model.dto.user.UserConfessionDTO;
import com.red.circle.other.inner.model.dto.user.UserConfessionRecordDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zongpubin on 2024/1/30
 */
public interface UserConfessionRecordClientApi {

  String API_PREFIX = "/user-confession/client";

  @PostMapping("/pageListQuery")
  ResultResponse<PageResult<UserConfessionRecordDTO>> pageListQuery(
      @RequestBody UserConfessionRecordQryCmd query);

  @PostMapping("/auditUserConfession")
  ResultResponse<Void> auditUserConfession(@RequestBody UserConfessionDTO dto);
}
