package com.crm.custom.service;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.system.push.massage.SysPushMassageSearchDto;
import com.crm.rely.backend.core.dto.system.reasons.refusal.SysReasonsRefusalSearchDto;
import com.crm.rely.backend.core.entity.system.push.massage.SysPushMassageSearchEntity;
import com.crm.rely.backend.core.entity.system.reasons.refusal.SysReasonsRefusalSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @Author: houn
 * @Date: 2020/9/11 1:34
 * @Description:
 */
@FeignClient(name = "MANAGER-SERVICE", path = "/push/message/custom")
public interface SysPushMessageFeignService {
    @PostMapping("/list")
    BaseResultDto<Map<String, SysPushMassageSearchDto>> customList(@RequestBody @Validated SysPushMassageSearchEntity entity) throws Exception;
}
