package com.cf.imes.module.executor.api.orderProcess;

import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.executor.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = ApiConstants.NAME) // TODO 晨丰：fallbackFactory =
@Tag(name = "RPC 服务 - 多组织")
public interface OrderProcessApi {

    String PREFIX = ApiConstants.PREFIX + "/order-process";

    @GetMapping(PREFIX +"/get")
    @Operation(summary = "获得生产单中的加工组信息表")
    @Parameter(name = "id", description = "加工组id", required = true, example = "1024")
    CommonResult<Boolean> getOrderProcessByProcessGroupId(@RequestParam("id") Long id);
}
