package com.base.api.client;

import com.base.api.model.PointRpcDTO;
import com.base.api.model.request.PointListRpcReqDTO;
import com.base.api.model.request.TaskStateNotice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

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

    @RequestMapping(value = "/point/list", method = RequestMethod.POST)
    List<PointRpcDTO> getPointDTOList(@RequestBody PointListRpcReqDTO req);

    @RequestMapping(value = "/point/add", method = RequestMethod.POST)
    void addPointList(@RequestBody List<PointRpcDTO> sortPointInfos);

    @PostMapping("/point/delete")
    public void deletePointDTO(@RequestBody PointListRpcReqDTO pointListRpcReqDTO);

    @PostMapping("/point/deleteByIds")
    public Boolean deleteByIds(@RequestBody List<String> ids);


}
