package com.prolog.upcloud.base.wh.operate.resource;

import com.prolog.cs.platform.power.model.Employee;
import com.prolog.cs.platform.power.model.enterprise.UserBasicVO;
import com.prolog.framework.common.message.RestMessage;
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(value = "${prolog.service.platform-power}")
public interface PlatformPowerClient {
    /**
     * 批量查询库位基础信息
     *
     * @return 库位基础信息
     */
    @GetMapping("/employee/basic/list")
    RestMessage<List<Employee>> getEmployeeBasicInfo(@RequestParam("employeeIds") String[] employeeIds);

    @GetMapping("/userpower/getEnterpriseUserByUserIds")
    RestMessage<List<UserBasicVO>> getEnterpriseUserByUserIds(@RequestParam("userIds") String[] userIds);

    /**
     *
     * @param jobnumber
     * @param warehouseId
     * @param enterpriseId
     * @return
     */
    @GetMapping("/employee/bynum")
    RestMessage<Employee> getByNum(@RequestParam(value = "jobnumber")String jobnumber, @RequestParam(value = "warehouseId") String warehouseId, @RequestParam(value = "enterpriseId") String enterpriseId);

}
