package com.crm.manager.service.custom;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.custom.account.CustomAccountDemoDto;
import com.crm.rely.backend.core.entity.custom.login.demo.CustomLoginDemoSearchListByCustomEntity;
import com.crm.rely.backend.core.entity.custom.login.demo.CustomLoginDemoSearchListEntity;
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;

/**
 * @description:
 * @author: houn
 * @create: 2020-07-19 16:25
 **/
@FeignClient(name = "CUSTOM-SERVICE")
public interface CustomLoginDemoFeignService {
    @PostMapping("/custom/login/demo/manage/search/custom/list")
    BaseResultDto<List<CustomAccountDemoDto>> searchCustomList(CustomLoginDemoSearchListByCustomEntity entity) throws ServiceException;

    @PostMapping("/custom/login/demo/manage/search/list")
    BaseResultWithPagerDto<List<CustomAccountDemoDto>> searchList(CustomLoginDemoSearchListEntity entity) throws ServiceException;
}
