IBZNotifyFeignClient.java.ftl 1.2 KB
Newer Older
zhouweidong's avatar
zhouweidong committed
1 2 3 4 5
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
package ${pub.getPKGCodeName()}.util.client;

6
import ${pub.getPKGCodeName()}.util.domain.MsgBody;
zhouweidong's avatar
zhouweidong committed
7 8 9 10
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

11
@FeignClient(value = "${r'${ibiz.ref.service.notify:ibznotify-api}'}",contextId = "notify",fallback = IBZNotifyFallback.class)
zhouweidong's avatar
zhouweidong committed
12 13
public interface IBZNotifyFeignClient
{
14
	@RequestMapping(method = RequestMethod.POST,value = "/notify/sendmsg")
15
	Boolean sendMsg(@RequestBody MsgBody msg);
zhouweidong's avatar
zhouweidong committed
16

17
	@RequestMapping(method = RequestMethod.POST,value = "/notify/createmsgtempl")
zhouweidong's avatar
zhouweidong committed
18
	Boolean createMsgTemplate(@RequestBody JSONObject template);
19 20 21 22 23 24 25 26 27

	@RequestMapping(method = RequestMethod.POST,value = "/notify/dingtalk/sendlinkmsg")
	Boolean sendDingTalkLinkMsg(@RequestBody MsgBody msg);

	@RequestMapping(method = RequestMethod.POST,value = "/notify/dingtalk/createworkrecord")
	String createDingTalkWorkRecord(@RequestBody MsgBody msg);

	@RequestMapping(method = RequestMethod.POST,value = "/notify/dingtalk/finishworkrecord/{msgid}")
	Boolean finishDingTalkWorkRecord(@PathVariable("msgid") String msgId);
zhouweidong's avatar
zhouweidong committed
28
}