package net.northking.cctp.executePlan.feign;

import io.swagger.annotations.ApiOperation;
import net.northking.cctp.common.feign.FeignCctpConfig;
import net.northking.cctp.common.http.ResultWrapper;
import net.northking.cctp.executePlan.feign.dto.UserQueryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

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

@FeignClient(name = "cctp-platform", configuration = {FeignCctpConfig.class}, path = "/cctp-platform")
public interface PlatformFeignClient {

    @ApiOperation(value = "查询标签名")
    @PostMapping(value = "/v1/query/findLabelName",
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
            consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public ResultWrapper<Map<String, Object>> findLabelName(@RequestBody List<String> ids);
    @ApiOperation(value = "查询标签名")
    @PostMapping(value = "/query/common/queryUserInfoByLoginNo",
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
            consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public Map<String, Object> queryUserInfoByLoginNo(@RequestBody List<String> loginNoList);

    @ApiOperation(value = "根据名称模糊查询用户ID列表")
    @PostMapping(value = "/v1/query/selectUserId",
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
            consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public List<String> selectUserId(@RequestBody UserQueryDto userQueryDto);
}
