package jnpf.personnels;

import jnpf.base.ActionResult;
import jnpf.model.personnels.dto.oa.FtbPersonnelsEmployInfoForOA;
import jnpf.personnels.fallback.FtbPersonnelsEmploymentApplyFallBackApi;
import jnpf.util.NoDataSourceBind;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsEmploymentApplyFallBackApi.class, path = "/web/personnels-staff-employment-apply")
public interface FtbPersonnelsEmploymentApplyApi {

    @GetMapping("/updateEmploymentApplyStatus")
    @NoDataSourceBind
    public ActionResult updateEmploymentApplyStatus(@RequestParam("tenantId") String tenantId);

    /**
     *  入职办理列表查询 ForOA 回显 姓名 手机
     */
    @GetMapping("/inquire-about-the-entry-list")
    ActionResult<List<FtbPersonnelsEmployInfoForOA>> inquireAboutTheEntryList(@RequestParam(required = false, name = "keyWords") String keyWords,
                                                                                     @RequestParam(required = false,name =  "phone")String phone,
                                                                                     @RequestParam(required = false,name =  "workerName")String workerName);
}
