package com.crm.manager.service.task;

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

@FeignClient(value = "TASK-SERVICE", path = "/manage/service/sales/dps/basic/salary")
public interface SalesDpsBasicSalaryFeignService {

    @PostMapping("/save")
    BaseResultDto<Object> save(SalesDpsBasicSalaryAddEntity entity) throws ServiceException;

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

    @PostMapping("/delete")
    BaseResultDto<Object> deleteById(SingleLongEntity entity) throws ServiceException;

}
