skyouc
15 小时以前 299cd2a4b79f32f9e1b55997e48bbe7e598c2d3f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.vincent.rsf.server.api.config;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * @author Ryan
 * @version 1.0
 * @title RemotesInfoProperties
 * @description
 * @create 2025/3/7 09:48
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "platform.erp")
public class RemotesInfoProperties {
 
    /**
     * 接口host
     */
    private String host;
    /**
     * 端口号
     */
    private String port;
 
    /**
     * 接口链接前缀
     */
    private String prePath;
 
    @Data
    @Configuration
    @ConfigurationProperties(prefix = "platform.erp.api")
    public class ApiInfo {
        /**
         * 一键上报质检接口
         */
        private String notifyInspect;
    }
 
    @Data
    @Configuration
    @ConfigurationProperties(prefix = "platform.rcs")
    public class RcsApi {
        /**
         * rcs调用路径
         */
        private String host;
 
        /**rcs调用端口**/
        private String port;
 
    }
 
 
    public String getBaseUrl() {
        return  this.host + ":" + this.port + "/" + this.prePath;
    }
}