package com.crm.manager.service.ucard;

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.ucard.CardOperateDto;
import com.crm.rely.backend.core.entity.ucard.CardOperatePageEntity;
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 = "UCARD-SERVICE", path = "/ucard/operate/manager")
public interface UcardOperateFeignService {

    /**
     * 操作记录分页列表
     */
    @PostMapping("/page")
    ResultWithPagerDto<CardOperateDto> queryOperatePageList(CardOperatePageEntity entity) throws ServiceException;

    /**
     * 操作记录导出
     */
    @PostMapping("/record/export")
    BaseResultDto<List<CardOperateDto>> cardOperateRecordExport(CardOperatePageEntity entity) throws ServiceException;

}
