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

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.job.dto.JobInfoDTO;
import cn.ey.biz.module.system.enums.ApiConstants;
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;

import javax.validation.Valid;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - Job")
public interface JobApi {

    String PREFIX = ApiConstants.PREFIX + "/job";

    @PostMapping(PREFIX + "/update-status")
    R<Boolean> updateJobStatus(@Valid @RequestBody JobInfoDTO jobInfoDTO);

}
