|
@@ -13,6 +13,12 @@ namespace Hotline.Configurations
|
|
|
public ZiGongConfiguration ZiGong { get; set; }
|
|
|
public LuZhouConfiguration LuZhou { get; set; }
|
|
|
|
|
|
+ public bool IsYiBin => CheckScopeIs(AppDefaults.AppScope.YiBin);
|
|
|
+ public bool IsZiGong => CheckScopeIs(AppDefaults.AppScope.ZiGong);
|
|
|
+ public bool IsLuZhou => CheckScopeIs(AppDefaults.AppScope.LuZhou);
|
|
|
+
|
|
|
+ private bool CheckScopeIs(string appscope) => string.CompareOrdinal(AppScope, appscope) == 0;
|
|
|
+
|
|
|
public DefaultAppScopeConfiguration GetDefaultAppScopeConfiguration()
|
|
|
{
|
|
|
return AppScope switch
|