RemoteBeanApi.java 729 Bytes
package com.dituhui.pea.bean;

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;

import javax.validation.Valid;

/**
 * BEAN 回调接口 跨服务调用入口
 */
@FeignClient(value = "project-order", contextId = "BEAN")
@Validated
public interface RemoteBeanApi {

    /**
     * 服务工单派单结果更新
     *
     * @param allotResultParam 更新参数
     * @return 是否回调BEAN成功
     */
    @PostMapping("/task/updateAllotResult")
    boolean allotResultUpdate(@Valid @RequestBody AllotResultParam allotResultParam);
}