package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.user.info.CustomLoginHistoryDto;
import com.crm.rely.backend.core.entity.user.info.CustomHistoryListSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "CUSTOM-SERVICE", path = "/custom/login/history/manager")
public interface CustomLoginHistoryFeignService {

    @PostMapping("/searcher/list")
    ResultWithPagerDto searcherList(CustomHistoryListSearchEntity entity);

    @PostMapping("/searcher/list/export")
    List<CustomLoginHistoryDto> export(CustomHistoryListSearchEntity entity);

}
