package com.zt.plat.module.api;

import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.module.api.dto.internalsupplyfactory.InternalSupplyFactoryDTO;
import com.zt.plat.module.base.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - base")
public interface InternalSupplyFactoryApi {
    String PREFIX = ApiConstants.PREFIX + "/internal-supply-factory";
    //批量创建
    @PostMapping(PREFIX + "/batch-create")
    CommonResult<List<InternalSupplyFactoryDTO>> batchCreate(@Valid @RequestBody List<InternalSupplyFactoryDTO> reqVO);
}
