phis-feign/src/main/java/com/hz/his/feign/service/platform/payment/SPayNoService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/vo/payment/PayNoVo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/feign/service/platform/payment/SPayNoService.java
New file @@ -0,0 +1,22 @@ package com.hz.his.feign.service.platform.payment; import com.hx.resultTool.Result; import com.hz.his.vo.payment.PayNoVo; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @FeignClient(name="phi-platform-service",path = "/phip",contextId = "pay-no") public interface SPayNoService { /** * 获取支付编号,只返回支付编号 * data就是支付编号 */ @PostMapping(value = "/pay/create") Result payCreate(@RequestBody PayNoVo payNoVo); } phis-feign/src/main/java/com/hz/his/vo/payment/PayNoVo.java
New file @@ -0,0 +1,34 @@ package com.hz.his.vo.payment; import lombok.Data; /** * @author CJH */ @Data public class PayNoVo { /**Y-订单号*/ private String orderNo; /**Y-叠加长度,在orderNo后面添加长度,默认6,没有特殊要求都是默认6*/ private Integer lengrhCount = 6; /**Y-交易方式*/ private String payWay; /**Y-关联类型*/ private Integer type; /**Y-关联类型标识*/ private String typeId; /**关联类型-总订单*/ public static final int TYPE_ORDER = 0; /**交易方式-微信*/ public static final String PAY_WAY_WECHAT = "WECHAT"; /**交易方式-支付宝*/ public static final String PAY_WAY_ALIPAY = "ALIPAY"; /**交易方式-银联*/ public static final String PAY_WAY_UNIONPAY = "UNIONPAY"; /**交易方式-数字人民币*/ public static final String PAY_WAYE_EC = "EC"; }