package jnpf.personnels;

import jnpf.model.personnels.vo.employeetype.FtbPersonnelsEmployeeTypeVO;
import jnpf.personnels.fallback.FtbPersonnelsEmployeeTypeRemoteFallBackApi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * 员工类型模块
 *
 * @author wangchunxiang
 * @date 2025/09/30
 */
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsEmployeeTypeRemoteFallBackApi.class, path = "/web/employee-type")
public interface FtbPersonnelsEmployeeTypeRemoteApi {

    /**
     * 根据用户ID集合查询员工类型ID、名称
     *
     * @param userIds 用户ID集合
     * @return key为用户Id，value为员工类型
     */
    @PostMapping("/get-employee-type-by-user-ids")
    Map<String, FtbPersonnelsEmployeeTypeVO> getEmployeeTypeByUserIds(@RequestBody List<String> userIds);

}
