package com.njcn.prepare.harmonic.api.line;

import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.constant.OperateType;
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.prepare.harmonic.api.line.fallback.HarmOverLimitFeignClientFallbackFactory;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        value = ServerInfo.PREPARE_BOOT,//对应模块名
        path = "/harmonicOverLimit",//对应controller请求类
        fallbackFactory = HarmOverLimitFeignClientFallbackFactory.class//服务降级处理类
)
public interface HarmOverLimitFeignClient {

    @PostMapping("/harmonicDetailDay1")
    HttpResult<Boolean> harmonicDetailDay1(@RequestBody LineParam lineParam);

    @PostMapping("/harmonicDetailDay2")
    HttpResult<Boolean> harmonicDetailDay2(@RequestBody LineParam lineParam);

    @PostMapping("/harmonicDetailMonth1")
    HttpResult<Boolean> harmonicDetailMonth1(@RequestBody @Validated LineParam lineParam);

    @PostMapping("/harmonicDetailMonth2")
    HttpResult<Boolean> harmonicDetailMonth2(@RequestBody @Validated LineParam lineParam);

    @PostMapping("/harmonicThdDay")
    HttpResult<Boolean> harmonicThdDay(@RequestBody @Validated LineParam lineParam);

}
