package com.yonge.cooleshow.auth.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.Optional;

/**
 * 应用全局功能配置
 *
 * Created by Eric.Shang on 2022/9/28.
 */
@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "app")
public class AppGlobalServiceConfig {

    /**
     * 用户加入群组功能
     */
    @Value("${group.member.join:true}")
    private Boolean groupMemberJoin;
}
