package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.custom.activity.exceptional.manager.CustomActivityExceptionalManagerDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.exceptional.manager.CustomActivityExceptionalManagerAddEntity;
import com.crm.rely.backend.core.entity.custom.exceptional.manager.CustomActivityExceptionalManagerSearchEntity;
import com.crm.rely.backend.core.entity.custom.exceptional.manager.CustomActivityExceptionalManagerUpdateEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "ACTIVITY-SERVICE", path = "/custom/activity/exceptional/manager")
public interface CustomActivityExceptionalManageFeignService {


    @PostMapping("/add")
    BaseResultDto<Object> add(@RequestBody @Validated CustomActivityExceptionalManagerAddEntity entity) throws ServiceException;

    @PostMapping("/search/single")
    BaseResultDto<CustomActivityExceptionalManagerDto> single(@RequestBody SingleLongEntity entity) throws ServiceException;

    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivityExceptionalManagerDto> searchPageList(@RequestBody CustomActivityExceptionalManagerSearchEntity entity) throws ServiceException;

    @PostMapping("/close")
    BaseResultDto close(@RequestBody CustomActivityExceptionalManagerUpdateEntity entity) throws ServiceException;

    @PostMapping("/update")
    BaseResultDto update(@RequestBody CustomActivityExceptionalManagerUpdateEntity entity) throws ServiceException;


}

