package com.liquidnet.service.galaxy.router.strategy.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;
import java.util.List;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: GalaxyConstantConfig
 * @Package com.liquidnet.service.galaxy.router.strategy.config
 * @Copyright: LightNet @ Copyright (c) 2022
 * @date 2022/3/18 17:14
 */
@Configuration
public class GalaxyConfig {
    @Value("${liquidnet.galaxy.router:zxinchain}")
    private String router;

    public List<String> getRouterList() {
        return Arrays.asList(router.split(","));
    }

}
