package com.crm.manager.service.activity;

import com.crm.manager.configuration.FeignMultipartSupportConfig;
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.web.live.WebLiveInstructorDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.web.live.WebLiveInstructorAddEntity;
import com.crm.rely.backend.core.entity.web.live.WebLiveInstructorDeleteEntity;
import com.crm.rely.backend.core.entity.web.live.WebLiveInstructorSearchListEntity;
import com.crm.rely.backend.core.entity.web.live.WebLiveInstructorUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "ACTIVITY-SERVICE", configuration = FeignMultipartSupportConfig.class, path = "/web/live/instructor/manager")
public interface WebLiveInstructorFeignService {

    @PostMapping("/add")
    BaseResultDto add(WebLiveInstructorAddEntity entity) throws Exception;

    @PostMapping("/update")
    BaseResultDto update(WebLiveInstructorUpdateEntity entity) throws Exception;

    @PostMapping("/delete")
    BaseResultDto delete(WebLiveInstructorDeleteEntity entity) throws Exception;

    @PostMapping("/search/list")
    ResultWithPagerDto<WebLiveInstructorDto> pageSearchList(WebLiveInstructorSearchListEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto<WebLiveInstructorDto> single(SingleLongEntity entity) throws Exception;

    @PostMapping("/all/list")
    BaseResultDto<List<WebLiveInstructorDto>> getAllList(WebLiveInstructorSearchListEntity entity) throws Exception;
}
