package com.rongwei.bscommon.sys.feign;

import com.rongwei.rwcommon.base.R;
import com.rongwei.rwcommon.vo.MailDo;
import com.rongwei.rwcommonentity.commonservers.vo.SysNotifyAnnounceVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "rw-common-server",fallback = KnowledegHysitx.class,contextId = "commonFeign")
public interface KnowledgeCommonFeginClient {
    @PostMapping("sys/sysnotifyannounce/saveOrUpdate")
    void sendNotify(@RequestBody SysNotifyAnnounceVo sysNotifyAnnounceVo);

    @PostMapping("/mail/sendHtmlMail")
    R sendHtmlMail(@RequestBody MailDo Mail);
}
