23 lines
482 B
Java
23 lines
482 B
Java
package com.wecom.robot.config;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import java.util.Map;
|
|
|
|
@Data
|
|
@Component
|
|
@ConfigurationProperties(prefix = "channel")
|
|
public class ChannelConfig {
|
|
|
|
private String defaultChannel = "wechat";
|
|
|
|
private Map<String, AdapterConfig> adapters;
|
|
|
|
@Data
|
|
public static class AdapterConfig {
|
|
private boolean enabled;
|
|
}
|
|
}
|