From 98401f2baa131b73cd126e3b6faf88fd47ce9090 Mon Sep 17 00:00:00 2001
From: liyuqian <201963020@qq.com>
Date: 星期三, 21 九月 2022 16:34:53 +0800
Subject: [PATCH] 公众号发送模板消息

---
 phis-feign/src/main/java/com/hz/his/feign/service/phisAdmin/SGzhService.java |   21 +++++++++++++++++++++
 phis-feign/src/main/java/com/hz/his/dto/gzh/GzhTemplateVO.java               |   26 ++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/gzh/GzhTemplateVO.java b/phis-feign/src/main/java/com/hz/his/dto/gzh/GzhTemplateVO.java
new file mode 100644
index 0000000..ebc8368
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/gzh/GzhTemplateVO.java
@@ -0,0 +1,26 @@
+package com.hz.his.dto.gzh;
+
+import lombok.Data;
+
+/**
+ * 鍙戦�佹ā鏉挎秷鎭墿灞曠被
+ */
+@Data
+public class GzhTemplateVO {
+
+    /**鎺ユ敹鑰卭penid*/
+    private String touser;
+    /**妯℃澘ID*/
+    private String templateId;
+    /**閾炬帴锛歩ndex?foo=bar*/
+    private String url;
+    /**绫诲瀷锛�1銆佺粨璐�  2鍒掓墸  3銆侀绾︽垚鍔�*/
+    private Integer type;
+    /**璺冲皬绋嬪簭鎵�闇�鏁版嵁锛屼笉闇�璺冲皬绋嬪簭鍙笉鐢ㄤ紶璇ユ暟鎹�*/
+    private String miniprogram;
+    /**闃查噸鍏d銆�*/
+    private String clientMsgId;
+    /**妯℃澘鏁版嵁*/
+    private String data;
+
+}
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phisAdmin/SGzhService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phisAdmin/SGzhService.java
new file mode 100644
index 0000000..5d1ac88
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/phisAdmin/SGzhService.java
@@ -0,0 +1,21 @@
+package com.hz.his.feign.service.phisAdmin;
+
+import com.hx.resultTool.Result;
+import com.hz.his.dto.gzh.GzhTemplateVO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+/**
+ * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂�
+ */
+@FeignClient(name="phis-service",path = "/phi_appt",contextId = "gzhInfo")
+public interface SGzhService {
+
+    /**
+     * 鍙戦�佹ā鏉挎秷鎭�
+     * @return
+     */
+    @RequestMapping("/admin/gzh/template/send")
+    Result template(@RequestBody GzhTemplateVO gzhTemplateVO);
+}

--
Gitblit v1.8.0