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

import com.red.circle.console.app.dto.clienobject.team.TeamApplicationProcessApprovalCO;
import com.red.circle.console.app.service.app.team.TeamApplicationProcessApprovalBackService;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.team.TeamApplicationProcessApprovalQryCmd;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 团队申请审核日志.
 *
 * @author pengshigang on 2022/12/19
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/team/application/process/approval")
public class TeamApplicationProcessApprovalRestController extends BaseController {

  private final TeamApplicationProcessApprovalBackService teamApplicationProcessApprovalBackService;

  /**
   * 日志列表.
   */
  @GetMapping("/list")
  public List<TeamApplicationProcessApprovalCO> listByCondition(
      TeamApplicationProcessApprovalQryCmd query) {
    return teamApplicationProcessApprovalBackService.listByCondition(query);
  }

}
