package net.northking.cctp.common.feign;

import com.hzbank.testteam.autotest.dependencies.monsterDependency.dto.UserDTO;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
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;

@FeignClient(contextId = "MonsterCommonFeignClient", name = "monster-common", configuration = {FeignCctpConfig.class})
public interface MonsterCommonFeignClient {

    @ApiOperation(value = "根据条件获取用户列表", notes = "根据条件获取用户列表")
    @PostMapping(value = "/monster-common/api/user/selectByMap")
    List<UserDTO> selectByMap(@RequestBody Map<String, Object> params);

    /**
     * 根据用户ID列表获取用户基础信息列表
     *
     * @param ids
     * @return
     */
    @ApiOperation("根据用户ID列表获取用户基础信息列表")
    @PostMapping(value = "/monster-common/api/user/getUserByIds")
    List<UserDTO> getUserByIds(@ApiParam("用户ID列表") @RequestBody List<Long> ids);

}
