package com.red.circle.other.app.inner.endpoint.team;

import com.red.circle.other.app.inner.service.team.TeamApplicationProcessApprovalClientService;
import com.red.circle.other.inner.endpoint.approval.api.TeamApplicationProcessApprovalClientApi;
import com.red.circle.other.inner.endpoint.team.target.api.TeamBillCycleClientApi;
import com.red.circle.other.inner.model.dto.agency.agency.TeamApplicationProcessApprovalDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * bd 团队成员
 *
 * @author longli on 2024/03/12
 */
@Validated
@RestController
@RequestMapping(value = TeamApplicationProcessApprovalClientApi.API_PREFIX, produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class TeamApplicationProcessApprovalClientEndpoint implements TeamApplicationProcessApprovalClientApi {

    private final TeamApplicationProcessApprovalClientService teamApplicationProcessApprovalClientService;
    @Override
    public TeamApplicationProcessApprovalDTO add(TeamApplicationProcessApprovalDTO param) {

        return teamApplicationProcessApprovalClientService.add(param);
    }
}
