package com.cf.imes.module.system.api.assemblyconfig;

import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.system.api.assemblyconfig.dto.AssemblyConfigRespDTO;
import com.cf.imes.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 *
 *
 * @author Gqr
 * @since 2026/2/28 15:12
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 装配设置")
public interface AssemblyConfigApi {

    String PREFIX = ApiConstants.PREFIX + "/assembly/config";

    @PostMapping("/getOrgAssemblySettingByComponentNames")
    @Operation(summary = "根据部件名称列表查询组织下对应的装配设置")
    CommonResult<List<AssemblyConfigRespDTO>> getAssemblyConfigByPartNameList(@RequestBody List<String> componentNameList);

    @PostMapping("/getOrgNotProcessAssemblySettingByComponentNames")
    @Operation(summary = "根据部件名称列表查询组织下对应不加工的装配设置")
    CommonResult<List<AssemblyConfigRespDTO>> getNotProcessAssemblyConfigByPartNameList(@RequestBody List<String> componentNameList);
}
