package jnpf.personnels.controller.app.uchisuike;

import jnpf.base.ActionResult;
import jnpf.model.personnels.dto.uchisuike.app.FtbRecommendationInvitationAppDTO;
import jnpf.personnels.service.FtbPersonnelsUchisuikePondService;
import jnpf.util.NoDataSourceBind;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * app人事调离内推池模块
 *
 * @author wcx
 */
@RestController
@RequestMapping("/app/personnels-uchisuike-pond")
public class FtbPersonnelsUchisuikePondAppController {

    @Resource
    private FtbPersonnelsUchisuikePondService ftbPersonnelsUchisuikePondService;

    /**
     * 内推邀请填写
     *
     * @param ftbRecommendationInvitationAppDTO
     * @return {@link ActionResult}
     */
    @PostMapping("/invite-fill-in")
    @NoDataSourceBind
    public ActionResult internalRecommendationInvitationAdded(@RequestBody @Validated FtbRecommendationInvitationAppDTO ftbRecommendationInvitationAppDTO) {
        ftbPersonnelsUchisuikePondService.internalRecommendationInvitationAdded(ftbRecommendationInvitationAppDTO);
        return ActionResult.success();
    }


}
