package com.red.circle.other.inner.endpoint.team.logs.api;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.dto.agency.agency.TeamApplicationProcessApprovalDTO;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author pengliang on 2023/11/21
 */
public interface TeamProcessApprovalClientApi {

  String API_PREFIX = "/team/application/process-approval/client";

  /**
   * 添加, 审批处理日志.
   */
  @PostMapping("/addProcessLog")
  ResultResponse<Void> addProcessLog(
      @RequestBody @Validated TeamApplicationProcessApprovalDTO dto);

  /**
   * 添加, 审批处理日志(批量).
   */
  @PostMapping("/addBatchProcessLog")
  ResultResponse<Void> addBatchProcessLog(
      @RequestBody List<TeamApplicationProcessApprovalDTO> list);

}
