You've already forked FrameTour-BE
Java21
This commit is contained in:
@@ -10,14 +10,11 @@ import java.util.Map;
|
||||
|
||||
public class NotifyFactory {
|
||||
public static INotifyAdapter get(NotifyType type) {
|
||||
switch (type) {
|
||||
case SERVER_CHAN:
|
||||
return new ServerChanNotifyAdapter();
|
||||
case WX_MP_SRV:
|
||||
return new WxMpSrvNotifyAdapter();
|
||||
default:
|
||||
throw new RuntimeException("不支持的通知类型");
|
||||
}
|
||||
return switch (type) {
|
||||
case SERVER_CHAN -> new ServerChanNotifyAdapter();
|
||||
case WX_MP_SRV -> new WxMpSrvNotifyAdapter();
|
||||
default -> throw new RuntimeException("不支持的通知类型");
|
||||
};
|
||||
}
|
||||
|
||||
public static INotifyAdapter get(NotifyType type, Map<String, String> config) {
|
||||
|
Reference in New Issue
Block a user