phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarCommonReturnDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingContentDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
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/MarketingMsgItemDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingResultDto.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/MarCommonReturnDto.java
New file @@ -0,0 +1,23 @@ package com.hz.his.dto.marketing.common; import lombok.Data; /** * 营销助手请求回调参数 * @author fwq */ @Data public class MarCommonReturnDto { /**appId*/ private String appId; /**时间 年月日时分秒*/ private String time; /**sign*/ private String sign; /**返回数据 可参考MarketingReturnDto*/ private String data; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingContentDto.java
New file @@ -0,0 +1,16 @@ package com.hz.his.dto.marketing.common; import lombok.Data; import java.util.List; /** * 营销助手发送消息参数 * @author fwq */ @Data public class MarketingContentDto { /**展示内容键值对*/ private List<MarketingMsgItemDto> contentList; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingMsgDto.java
New file @@ -0,0 +1,20 @@ package com.hz.his.dto.marketing.common; import lombok.Data; import java.util.List; /** * 营销助手发送消息参数 * @author fwq */ @Data public class MarketingMsgDto { /*******************必填项*************************/ /** 是否放大第一个content_item,默认true*/ private Boolean emphasisFirstItem = true; /** 消息内容键值对,最多允许10个item -必填项*/ private List<MarketingMsgItemDto> contentItem; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingMsgItemDto.java
New file @@ -0,0 +1,17 @@ package com.hz.his.dto.marketing.common; import lombok.Data; import java.util.List; /** * 营销助手发送消息参数 * @author fwq */ @Data public class MarketingMsgItemDto { /**如果是发送的消息:长度10个汉字以内 -必填项*/ private String key; /**如果是发送的消息: 长度30个汉字以内 -必填项*/ private String value; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingResultDto.java
New file @@ -0,0 +1,16 @@ package com.hz.his.dto.marketing.common; import lombok.Data; /** * 营销助手请求返回参数 * @author fwq */ @Data public class MarketingResultDto { /**营销助手唯一标识*/ private String applyId; /**审核标识*/ private String examineId; } 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
New file @@ -0,0 +1,29 @@ package com.hz.his.dto.marketing.common; import com.hz.his.dto.marketing.MarketingDto; import lombok.Data; /** * 营销助手请求公共参数 * @author fwq */ @Data public class MarketingTotalDto extends MarketingDto { /******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); }