| | |
| | | package com.vincent.rsf.openApi.config; |
| | | |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "platform.erp") |
| | | public class ErpApi { |
| | | /** |
| | | * rcs调用路径 |
| | | */ |
| | | private String host; |
| | | |
| | | /**rcs调用端口**/ |
| | | private String port; |
| | | |
| | | public String getErpUrl() { |
| | | return host + (StringUtils.isBlank(port) ? "" : ":" + port + "/"); |
| | | } |
| | | } |
| | | |
| | | |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "platform.wcs") |
| | | public class WcsApi { |
| | | /** |
| | | * wcs调用路径 |
| | | */ |
| | | private String host; |
| | | |
| | | /**wcs调用端口**/ |
| | | private String port; |
| | | |
| | | } |
| | | |
| | | |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "platform.hk") |
| | | public class HkApi { |
| | | /** |
| | | * hkRcs调用路径 |
| | | */ |
| | | private String host; |
| | | |
| | | /**hkRcs调用端口**/ |
| | | private String port; |
| | | |
| | | } |
| | | |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "platform.mes") |
| | | public class MesApi { |
| | | /** |
| | | * mes调用路径 |
| | | */ |
| | | private String host; |
| | | |
| | | /**mes调用端口**/ |
| | | private String port; |
| | | |
| | | public String getMesUrl() { |
| | | return host + (StringUtils.isBlank(port) ? "" : ":" + port + "/"); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |