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.GoldenRewardQuestionListDto;
import com.crm.rely.backend.model.entity.golden.question.GoldenRewardQuestionAddEntity;
import com.crm.rely.backend.model.entity.golden.question.GoldenRewardQuestionDeleteEntitys;
import com.crm.rely.backend.model.entity.golden.question.GoldenRewardQuestionSearchEntity;
import com.crm.rely.backend.model.entity.golden.question.GoldenRewardQuestionUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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

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

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

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

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

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