VionConfig.java 942 Bytes
package com.viontech.fanxing.commons.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * .
 *
 * @author 谢明辉
 * @date 2021/9/8
 */
@RefreshScope
@Configuration
@Getter
@Setter
@ConfigurationProperties(prefix = "vion")
public class VionConfig {

    private Image image;
    private boolean enableForward;
    private String authPath;
    private Gateway gateway;
    private List<String> supportedVideoFormats;
    private List<String> skipAuth;


    public @Getter
    @Setter
    static class Image {
        private String path;
        private Integer keep;
    }

    public @Getter
    @Setter
    static class Gateway {
        private String ip;
        private String port;
    }

}