package cn.ey.biz.module.system.api.job;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.job.dto.ReportInfoDTO;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "job-server")
@Api(tags = "RPC 服务 - job")
public interface ReportApi {

    String JOB_URL = "/rpc-api/openApi/reportInstanceStatus";

    @PostMapping(JOB_URL)
    R<Void> reportInstanceStatus(@RequestBody ReportInfoDTO flowJobInfoDTO);

}
