package com.malk.harrison.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Harrison 客户模块配置。
 */
@Data
@Component
@ConfigurationProperties(prefix = "harrison")
public class HarrisonConfig {

    private Xiangyu xiangyu = new Xiangyu();
    private Yida yida = new Yida();

    @Data
    public static class Xiangyu {
        private String baseUrl;
        private String system;
        private String secure;
        private String apiKey;
    }

    @Data
    public static class Yida {
        private String appType;
        private String systemToken;
    }
}
