\Config\business.json

{
  "snowflake": {
    "machine": {
      //根据环境变量、项目、系统设置机器码
      //"{envId}{ownerId}{sysId}": 0
    }
  }, 
  // #region 目录分层
  "mapperBridge": {
    "basis": [
      "activity",
      "bbs",
      "bo",
      "bs",
      "chat",
      "cpc",
      "crm",
      "mall",
      "pm",
      "map",
      "order",
      "coupon",
      "log",
      "dev",
      "resource",
      "erp",
      "oa",
      "ocean",
      "weather",
      "water",
      "country",
      "star",
      "mes",
      "law",
      "party"
    ],
    "owner": [
      "biz",
      "extand"
    ]
  }
  // #endregion目录分层
}

添加配置目录分层

 List<string> lstBasisDir = new List<string> { "activity", "bbs", "bo", "bs", "chat", "cpc", "crm", "mall", "pm", "map", "order", "coupon", "log", "dev", "resource", "erp", "oa", "ocean", "weather", "water", "country", "star", "mes", "law", "party" };
            foreach (IFileInfo item in _fileProviderBasis.GetDirectoryContents(""))
            {
                if (!item.IsDirectory && item.PhysicalPath.Contains(confPath))
                {
                    foreach (var itemK in lstBasisDir)
                    {
                        lstFile.Add($"{appPath}/basis/{itemK}/{item.Name}");
                    }
                }
            }

            if (_fileProviderBackstage != null)
            {
                foreach (IFileInfo item in _fileProviderBackstage?.GetDirectoryContents(""))
                {
                    if (!item.IsDirectory && item.PhysicalPath.Contains(confPath))
                    {
                        lstFile.Add($"{appPath}/{ownerId}/backstage/{item.Name}");
                    }
                }
            }
            foreach (IFileInfo item in _fileProviderOwner.GetDirectoryContents(""))
            {
                if (!item.IsDirectory && item.PhysicalPath.Contains(confPath))
                {
                    lstFile.Add($"{appPath}/{ownerId}/{item.Name}");
                }
            }

            List<string> lstBizDir = new List<string> { "biz", "extand" };
            foreach (IFileInfo item in _fileProviderBackstage?.GetDirectoryContents(""))
            {
                if (!item.IsDirectory && item.PhysicalPath.Contains(confPath))
                {
                    foreach (var itemK in lstBizDir)
                    {
                        lstFile.Add($"{appPath}/{ownerId}/{itemK}/{item.Name}");
                    }
                }
            }
文档更新时间: 2022-05-29 06:59   作者:admin