package com.fs.im.config;

import com.fs.common.enums.ImTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@ConfigurationProperties(prefix = "im")
@Data
public class ImTypeConfig
{
    private ImTypeEnum type;
    public static ImTypeEnum IMTYPE;
    @PostConstruct
    public void init() {
//        PREFIX = this.prefix;
        IMTYPE = this.type;
    }
}
