package com.crm.manager.service.task;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.sales.SalesCommissionFilterDto;
import com.crm.rely.backend.core.entity.sales.SalesCommissionFilterUpdateEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "TASK-SERVICE", path = "/manage/service/sales/commission/filter")
public interface SalesCommissionFilterFeignService {

    @PostMapping("/search/data")
    BaseResultDto<SalesCommissionFilterDto> searchData() throws ServiceException;

    @PostMapping("/update")
    BaseResultDto<Object> update(SalesCommissionFilterUpdateEntity entity) throws ServiceException;

}
