| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package com.ydtech.config.properties;
- import com.ydtech.modules.order.entity.api.zm.BaseRequestHead;
- import lombok.Data;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.stereotype.Component;
- /**
- * @author wenks
- * @version 0.0.2
- * @description TODO
- * @date 2023/4/20 18:01
- */
- @Data
- @Component
- @ConfigurationProperties(prefix = "zm.api")
- public class ZmApiConfigurationProperties {
- private String source;
- private String token;
- private String url;
- private String imageUrl;
- private String smsUrl;
- // 支付完成页面跳转地址
- private String pageUrl;
- //
- private String callbackDomain;
- // 承保回调地址
- private String callbackUrl;
- // 审核回调地址
- private String passMsgUrl;
- /**
- * 中煤请求 head 的参数
- *
- * @param transCode
- * @return
- */
- public BaseRequestHead getHead(String transCode) {
- return new BaseRequestHead(transCode, "Req", token, source);
- }
- }
|