package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.activity.ucoin.CustomActivityUcoinRewardDto;
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.entity.custom.activity.ucoin.CustomActivityUcoinRewardSearchEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

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

    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivityUcoinRewardDto> pageList(CustomActivityUcoinRewardSearchEntity entity) throws ServiceException ;

    @PostMapping("/complete")
    BaseResultDto complete(SingleLongEntity entity) throws ServiceException;

    @PostMapping("/withdraw")
    BaseResultDto withdraw(SingleLongEntity entity) throws ServiceException;

    @PostMapping("/cancel")
    BaseResultDto cancel(SingleLongEntity entity) throws ServiceException;

    @PostMapping("/export")
    List<CustomActivityUcoinRewardDto> searcherListExport(CustomActivityUcoinRewardSearchEntity entity) throws ServiceException;
}
