package com.base.api.client;


import com.base.api.model.TargetDemandRpcDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Set;

@FeignClient(name = "orbit-base-biz", contextId = "tragetDemand")
public interface TragetDemandRpcService {

    @PostMapping({"/rpc/tragetDemand/selTargetDemandByParentId"})
    List<TargetDemandRpcDTO> selTargetDemandByParentId(Set<String> parents);


    @PostMapping({"/rpc/tragetDemand/demand/commit"})
    void batchStatus(@RequestBody List<TargetDemandRpcDTO> list);
}
