package com.njcn.system.api;


import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.enums.common.LogEnum;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.common.utils.HttpResultUtil;
import com.njcn.system.api.fallback.CsStatistiacalFeignClientFallbackFactory;
import com.njcn.system.pojo.po.CsStatisticalSetPO;
import com.njcn.system.pojo.po.EleEpdPqd;
import com.njcn.system.pojo.vo.CsStatisticalSetVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xuyang
 * @since 2023-05-24
 */

@FeignClient(value = ServerInfo.SYSTEM, path = "/csstatisticalset", fallbackFactory = CsStatistiacalFeignClientFallbackFactory.class,contextId = "csstatisticalset")
public interface CsStatisticalSetFeignClient  {


    @PostMapping("/addStatistical")
     HttpResult<Boolean> addStatistical(@RequestParam("id")String id,@RequestParam("ids")List<String> ids);

    @PostMapping("/queryStatistical")
     HttpResult<CsStatisticalSetVO> queryStatistical(@RequestParam("id")String id);

    @PostMapping("/queryStatisticalSelect")
    @ApiOperation("根据统计类型id组查询已绑定指标")
    HttpResult<List<EleEpdPqd>> queryStatisticalSelect(@RequestBody List<String> list);

    @PostMapping("/queryStatisticalById")
    @ApiOperation("根据id查询数据")
    HttpResult<List<CsStatisticalSetPO>> queryStatisticalById(@RequestBody List<String> list);

}

