New file |
| | |
| | | package com.vincent.rsf.openApi.config; |
| | | |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @version 1.0 |
| | | * @title PlatformProperties |
| | | * @description |
| | | * @create 2025/3/7 09:48 |
| | | */ |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "platform.rcs") |
| | | public class PlatformProperties { |
| | | |
| | | /** |
| | | * 接口host |
| | | */ |
| | | private String host; |
| | | /** |
| | | * 端口号 |
| | | */ |
| | | private String port; |
| | | |
| | | /** |
| | | * 接口链接前缀 |
| | | */ |
| | | private String prePath; |
| | | |
| | | |
| | | public String getBaseUrl() { |
| | | return this.host + ":" + this.port + "/" + this.prePath; |
| | | } |
| | | |
| | | |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "platform.wms") |
| | | public class WmsApi { |
| | | /** |
| | | * rcs调用路径 |
| | | */ |
| | | private String host; |
| | | |
| | | /**rcs调用端口**/ |
| | | private String port; |
| | | |
| | | } |
| | | |
| | | |
| | | } |