package com.njcn.csharmonic.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.csharmonic.api.fallback.WavePicClientFallbackFactory;
import com.njcn.csharmonic.pojo.vo.CsEventVO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xy
 */
@FeignClient(value = ServerInfo.CS_HARMONIC_BOOT, path = "/event", fallbackFactory = WavePicClientFallbackFactory.class,contextId = "event")

public interface WavePicFeignClient {

    @GetMapping("/getWavePics")
    HttpResult<CsEventVO> getWavePics(@RequestParam("eventId") String eventId);

    @PostMapping("/updateEventById")
    HttpResult<Boolean> updateEventById(@RequestParam("id") String id);

}
