phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingMsgDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingReturnDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingTotalDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/marketing/MCommonService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingMsgDto.java
@@ -12,12 +12,8 @@ public class MarketingMsgDto { /*******************必填项*************************/ /** 消息标题,长度限制4-12个汉字 -必填项*/ private String title; /** 消息描述,长度限制4-12个汉字 -必填项*/ private String description; /** 是否放大第一个content_item,默认true*/ private boolean emphasisFirstItem = true; private Boolean emphasisFirstItem = true; /** 消息内容键值对,最多允许10个item -必填项*/ private List<MarketingMsgItemDto> contentItem; phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingReturnDto.java
New file @@ -0,0 +1,32 @@ package com.hz.his.dto.marketing.common; import lombok.Data; /** * 营销助手请求回调参数 * @author fwq */ @Data public class MarketingReturnDto{ /**审核结果 agree为通过,reject为不通过*/ public static final String AGREE = "agree"; public static final String REJECT = "reject"; /**审核结果*/ private String result; /**返回信息*/ private String resultMsg; /**唯一标识*/ private String uniqueId; /**审核标识*/ private String applyId; /**审核人标识*/ private String opId; /**审核人名称*/ private String opMan; /**审核意见*/ private String applyRemarks; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingTotalDto.java
@@ -12,13 +12,18 @@ /******MarketingDto继承字段 -必填项****/ /**审核类型 >20的值*/ private Integer type; /**审核唯一标识*/ private String uniqueId; /**审批界面展示的内容 -必填项*/ private MarketingContentDto marketingContentDto; /**消息发送内容 -必填项*/ private MarketingMsgDto marketingMsgDto; /**回调链接 -必填项*/ /**回调链接 -必填项 回调传参*/ private String callbackUrl; } phis-feign/src/main/java/com/hz/his/feign/service/marketing/MCommonService.java
New file @@ -0,0 +1,24 @@ package com.hz.his.feign.service.marketing; import com.hx.resultTool.Result; import com.hz.his.dto.marketing.common.MarketingTotalDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 营销助手审核接口 */ @FeignClient(name="marketing-assistant-user",path = "/m_assistant",contextId = "m-common") public interface MCommonService { /** * 统一申请审核接口 */ @PostMapping(value = "/common/apply") Result applyOrderDiscount(@RequestBody MarketingTotalDto marketingTotalDto); }