package com.crm.manager.service.golden;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.exception.ServiceException;
import com.crm.rely.backend.model.dto.golden.question.GoldenCommonQuestionListDto;
import com.crm.rely.backend.model.entity.golden.question.GoldenCommonQuestionAddEntity;
import com.crm.rely.backend.model.entity.golden.question.GoldenCommonQuestionDeleteEntitys;
import com.crm.rely.backend.model.entity.golden.question.GoldenCommonQuestionSearchEntity;
import com.crm.rely.backend.model.entity.golden.question.GoldenCommonQuestionUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "GOLDEN-CUSTOM-SERVICE", path = "/common/question/manager")
public interface GoldenCommonQuestionFeignService {

    @PostMapping("/add")
    BaseResultDto add(GoldenCommonQuestionAddEntity entity) throws ServiceException;

    @PostMapping("/delete")
    BaseResultDto delete(GoldenCommonQuestionDeleteEntitys entitys) throws ServiceException;

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

    @PostMapping("/search/list")
    ResultWithPagerDto<GoldenCommonQuestionListDto> searchPageList(GoldenCommonQuestionSearchEntity entity) throws ServiceException;

    @PostMapping("/search/single")
    BaseResultDto searchSingle(SingleLongEntity entity) throws ServiceException;
    
}
