package com.yuchen.saas.consumer.api.feign;

import com.yuchen.saas.consumer.api.dto.wechat.SendTemplateReqDTO;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(
        value = AppNameConstant.SAAS_CONSUMER,
        fallback = WeChatOfficialTempClientFallback.class
)
public interface WeChatOfficialTempClient {

    @PostMapping("/wx/push/sendOfficialTempMessage")
    R<Boolean> sendOfficialTempMessage(@RequestBody List<SendTemplateReqDTO> reqDTOList);

}
