Parcourir la source

提交

master
gwbvipvip il y a 1 an
Parent
révision
63c0991f86
58 fichiers modifiés avec 1292 ajouts et 1276 suppressions
  1. BIN
     
  2. +1
    -1
      BPA.KitChen.StoreManagement.Application/Class1.cs
  3. +0
    -199
      BPA.KitChen.StoreManagement.Application/obj/BPA.KitChen.StoreManagement.Application.csproj.nuget.dgspec.json
  4. +0
    -16
      BPA.KitChen.StoreManagement.Application/obj/BPA.KitChen.StoreManagement.Application.csproj.nuget.g.props
  5. +0
    -2
      BPA.KitChen.StoreManagement.Application/obj/BPA.KitChen.StoreManagement.Application.csproj.nuget.g.targets
  6. BIN
     
  7. +0
    -127
      BPA.KitChen.StoreManagement.Application/obj/project.assets.json
  8. +0
    -15
      BPA.KitChen.StoreManagement.Application/obj/project.nuget.cache
  9. +10
    -0
      BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj
  10. +57
    -0
      BPA.KitChen.StoreManagement.Core/Common/Const/ClaimConst.cs
  11. +14
    -0
      BPA.KitChen.StoreManagement.Core/Common/CosConfig.cs
  12. +26
    -0
      BPA.KitChen.StoreManagement.Core/Common/CosInfoOptions.cs
  13. +25
    -0
      BPA.KitChen.StoreManagement.Core/Common/CurrentUser.cs
  14. +100
    -0
      BPA.KitChen.StoreManagement.Core/Common/HttpHelper.cs
  15. +12
    -0
      BPA.KitChen.StoreManagement.Core/Entity/Base/Class1.cs
  16. +23
    -0
      BPA.KitChen.StoreManagement.Core/Entity/Base/IBaseEntity.cs
  17. +19
    -0
      BPA.KitChen.StoreManagement.Core/Entity/Base/IBaseGroupIdEntity.cs
  18. +128
    -0
      BPA.KitChen.StoreManagement.Core/Entity/Base/IBaseOPEntity.cs
  19. +21
    -0
      BPA.KitChen.StoreManagement.Core/Entity/Base/IEntity.cs
  20. +27
    -0
      BPA.KitChen.StoreManagement.Core/Enum/AccountType.cs
  21. +95
    -0
      BPA.KitChen.StoreManagement.Core/Enum/CommonStatus.cs
  22. +21
    -0
      BPA.KitChen.StoreManagement.Core/Enum/CouponUseType.cs
  23. +42
    -0
      BPA.KitChen.StoreManagement.Core/Enum/DataScopeType.cs
  24. +36
    -0
      BPA.KitChen.StoreManagement.Core/Enum/GoodsAttribute.cs
  25. +44
    -0
      BPA.KitChen.StoreManagement.Core/Enum/IntegralEnum.cs
  26. +34
    -0
      BPA.KitChen.StoreManagement.Core/Enum/MenuOpenType.cs
  27. +25
    -0
      BPA.KitChen.StoreManagement.Core/Enum/MenuType.cs
  28. +21
    -0
      BPA.KitChen.StoreManagement.Core/Enum/OrderEnum.cs
  29. +35
    -0
      BPA.KitChen.StoreManagement.Core/Enum/OrgType.cs
  30. +39
    -0
      BPA.KitChen.StoreManagement.Core/Enum/SRDUserType.cs
  31. +24
    -0
      BPA.KitChen.StoreManagement.Core/Enum/StatusEntity.cs
  32. +24
    -0
      BPA.KitChen.StoreManagement.Core/Enum/TransactionType.cs
  33. +21
    -0
      BPA.KitChen.StoreManagement.Core/RequestAnalysis/UserAnalysis.cs
  34. +0
    -68
      BPA.KitChen.StoreManagement.Core/obj/BPA.KitChen.StoreManagement.Core.csproj.nuget.dgspec.json
  35. +0
    -16
      BPA.KitChen.StoreManagement.Core/obj/BPA.KitChen.StoreManagement.Core.csproj.nuget.g.props
  36. +0
    -2
      BPA.KitChen.StoreManagement.Core/obj/BPA.KitChen.StoreManagement.Core.csproj.nuget.g.targets
  37. BIN
     
  38. +0
    -82
      BPA.KitChen.StoreManagement.Core/obj/project.assets.json
  39. +0
    -15
      BPA.KitChen.StoreManagement.Core/obj/project.nuget.cache
  40. +4
    -0
      BPA.KitChen.StoreManagement.SqlSugar/BPA.KitChen.StoreManagement.SqlSugar.csproj
  41. +201
    -0
      BPA.KitChen.StoreManagement.SqlSugar/SqlSugarDb.cs
  42. +31
    -0
      BPA.KitChen.StoreManagement.SqlSugar/SqlsugarSetup.cs
  43. +31
    -0
      BPA.KitChen.StoreManagement.SqlSugar/SupperRepository.cs
  44. +0
    -132
      BPA.KitChen.StoreManagement.SqlSugar/obj/BPA.KitChen.StoreManagement.SqlSugar.csproj.nuget.dgspec.json
  45. +0
    -16
      BPA.KitChen.StoreManagement.SqlSugar/obj/BPA.KitChen.StoreManagement.SqlSugar.csproj.nuget.g.props
  46. +0
    -2
      BPA.KitChen.StoreManagement.SqlSugar/obj/BPA.KitChen.StoreManagement.SqlSugar.csproj.nuget.g.targets
  47. BIN
     
  48. +0
    -105
      BPA.KitChen.StoreManagement.SqlSugar/obj/project.assets.json
  49. +0
    -15
      BPA.KitChen.StoreManagement.SqlSugar/obj/project.nuget.cache
  50. +80
    -0
      BPA.KitChen.StoreManagement/Handlers/JwtHandler.cs
  51. +20
    -4
      BPA.KitChen.StoreManagement/Program.cs
  52. +1
    -1
      BPA.KitChen.StoreManagement/Properties/launchSettings.json
  53. +0
    -272
      BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.dgspec.json
  54. +0
    -16
      BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.props
  55. +0
    -2
      BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.targets
  56. BIN
     
  57. +0
    -153
      BPA.KitChen.StoreManagement/obj/project.assets.json
  58. +0
    -15
      BPA.KitChen.StoreManagement/obj/project.nuget.cache

+ 1
- 1
BPA.KitChen.StoreManagement.Application/Class1.cs Voir le fichier

@@ -2,6 +2,6 @@
{
public class Class1
{
}
}

+ 0
- 199
BPA.KitChen.StoreManagement.Application/obj/BPA.KitChen.StoreManagement.Application.csproj.nuget.dgspec.json Voir le fichier

@@ -1,199 +0,0 @@
{
"format": 1,
"restore": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj": {}
},
"projects": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj",
"projectName": "BPA.KitChen.StoreManagement.Application",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"projectName": "BPA.KitChen.StoreManagement.Core",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"projectName": "BPA.KitChen.StoreManagement.SqlSugar",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

+ 0
- 16
BPA.KitChen.StoreManagement.Application/obj/BPA.KitChen.StoreManagement.Application.csproj.nuget.g.props Voir le fichier

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\gwbvi\.nuget\packages\;E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\gwbvi\.nuget\packages\" />
<SourceRoot Include="E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

+ 0
- 2
BPA.KitChen.StoreManagement.Application/obj/BPA.KitChen.StoreManagement.Application.csproj.nuget.g.targets Voir le fichier

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />


+ 0
- 127
BPA.KitChen.StoreManagement.Application/obj/project.assets.json Voir le fichier

@@ -1,127 +0,0 @@
{
"version": 3,
"targets": {
"net6.0": {
"BPA.KitChen.StoreManagement.Core/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"compile": {
"bin/placeholder/BPA.KitChen.StoreManagement.Core.dll": {}
},
"runtime": {
"bin/placeholder/BPA.KitChen.StoreManagement.Core.dll": {}
}
},
"BPA.KitChen.StoreManagement.SqlSugar/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"dependencies": {
"BPA.KitChen.StoreManagement.Core": "1.0.0"
},
"compile": {
"bin/placeholder/BPA.KitChen.StoreManagement.SqlSugar.dll": {}
},
"runtime": {
"bin/placeholder/BPA.KitChen.StoreManagement.SqlSugar.dll": {}
}
}
}
},
"libraries": {
"BPA.KitChen.StoreManagement.Core/1.0.0": {
"type": "project",
"path": "../BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj",
"msbuildProject": "../BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj"
},
"BPA.KitChen.StoreManagement.SqlSugar/1.0.0": {
"type": "project",
"path": "../BPA.KitChen.StoreManagement.SqlSugar/BPA.KitChen.StoreManagement.SqlSugar.csproj",
"msbuildProject": "../BPA.KitChen.StoreManagement.SqlSugar/BPA.KitChen.StoreManagement.SqlSugar.csproj"
}
},
"projectFileDependencyGroups": {
"net6.0": [
"BPA.KitChen.StoreManagement.Core >= 1.0.0",
"BPA.KitChen.StoreManagement.SqlSugar >= 1.0.0"
]
},
"packageFolders": {
"C:\\Users\\gwbvi\\.nuget\\packages\\": {},
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj",
"projectName": "BPA.KitChen.StoreManagement.Application",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 0
- 15
BPA.KitChen.StoreManagement.Application/obj/project.nuget.cache Voir le fichier

@@ -1,15 +0,0 @@
{
"version": 2,
"dgSpecHash": "5hEPw4w7TwwwNhkLY3ugdjLjNWLsvdbKFX4G8KqgvrlvnWoyBp/trwikyDg5gYv85orXZ9aYNd3XjMHbDjoLAw==",
"success": true,
"projectFilePath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj",
"expectedPackageFiles": [],
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 10
- 0
BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj Voir le fichier

@@ -6,4 +6,14 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Furion" Version="4.9.1.18" />
<PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.9.1.15" />
<PackageReference Include="SqlSugarCore" Version="5.1.4.132" />
</ItemGroup>

<ItemGroup>
<Folder Include="Common\Enum\" />
</ItemGroup>

</Project>

+ 57
- 0
BPA.KitChen.StoreManagement.Core/Common/Const/ClaimConst.cs Voir le fichier

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Common.Const
{
public class ClaimConst
{
/// <summary>
/// 用户Id
/// </summary>
public const string CLAINM_USERID = "UserId";

/// <summary>
/// 账号
/// </summary>
public const string CLAINM_ACCOUNT = "Account";

/// <summary>
/// 名称
/// </summary>
public const string CLAINM_NAME = "Name";

/// <summary>
/// 是否超级管理
/// </summary>
public const string CLAINM_SUPERADMIN = "SuperAdmin";

/// <summary>
/// 登录类型1平台用户登录,0加盟商登录
/// </summary>
public const string LoginType = "LoginType";
/// <summary>
/// 加盟商编号
/// </summary>
public const string FranchID = "FranchID";
/// <summary>
/// 加盟商通知手机号
/// </summary>
public const string FranchTel = "18782023833";

/// <summary>
/// 加盟商组id
/// </summary>
public const string GroupId = "GroupId";

/// <summary>
/// 权限
/// </summary>
public const string RoleId = "RoleId";
public const string OrgId = "";

public const string SupplyPlatformId = "SupplyPlatformId";
}
}

+ 14
- 0
BPA.KitChen.StoreManagement.Core/Common/CosConfig.cs Voir le fichier

@@ -0,0 +1,14 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Common
{
public class CosConfig
{
public static CosInfoOptions cosInfoOptions;
}
}

+ 26
- 0
BPA.KitChen.StoreManagement.Core/Common/CosInfoOptions.cs Voir le fichier

@@ -0,0 +1,26 @@
using Furion.ConfigurableOptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Common
{
public class CosInfoOptions : IConfigurableOptions
{
public string AppId { get; set; }
public string Region { get; set; }
public string Bucket { get; set; }
public string SecretId { get; set; }
public string SecretKey { get; set; }
public CosInfoOptions(string appid, string region, string bucket, string secretId, string secretKey)
{
AppId = appid;
Region = region;
Bucket = bucket;
SecretId = secretId;
SecretKey = secretKey;
}
}
}

+ 25
- 0
BPA.KitChen.StoreManagement.Core/Common/CurrentUser.cs Voir le fichier

@@ -0,0 +1,25 @@
using BPA.KitChen.StoreManagement.Core.Common.Const;
using Furion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Common
{
/// <summary>
/// 当前用户
/// </summary>
public class CurrentUser
{
public static string? UserId => App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value;

public static string? TenantId => App.User?.FindFirst(ClaimConst.GroupId)?.Value;

public static string? Account => App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
public static string? RoleId => App.User?.FindFirst(ClaimConst.RoleId)?.Value;

}
}

+ 100
- 0
BPA.KitChen.StoreManagement.Core/Common/HttpHelper.cs Voir le fichier

@@ -0,0 +1,100 @@
using Furion;
using Furion.FriendlyException;
using Furion.Templates;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.IdentityModel.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Reflection.PortableExecutable;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Common
{
public static class HttpHelper
{
private static readonly HttpClient client = new HttpClient();

/// <summary>
/// Get 请求
/// </summary>
/// <param name="url"></param>
/// <param name="postDataStr"></param>
/// <param name="headers"></param>
/// <param name="platform"></param>
/// <param name="contentType"></param>
/// <returns></returns>
public static string HttpGet(string url, string postDataStr, Dictionary<string, string> headers, string contentType = "")
{
var result = string.Empty;
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url + postDataStr);
request.ServicePoint.Expect100Continue = false; //加了这一行代码 就OK了
request.Method = "GET";
request.ContentType = contentType;
foreach (KeyValuePair<string, string> kv in headers)
{
request.Headers.Add(kv.Key, kv.Value);
}
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream myResponseStream = response.GetResponseStream();
StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8"));
result = myStreamReader.ReadToEnd();
myStreamReader.Close();
myResponseStream.Close();

}
catch (Exception ex)
{
throw Oops.Oh( ex.Message);
}
return result;
}

public static string PostData(string url, string postData, Encoding encoding, string ContentType, Dictionary<string, string> headers)
{

try
{
HttpWebRequest myReq = (HttpWebRequest)HttpWebRequest.Create(url);

myReq.Method = "POST";
myReq.Timeout = 600 * 60;
byte[] byteArray = encoding.GetBytes(postData);
myReq.ContentType = ContentType;
//对键值对进行遍历
foreach (KeyValuePair<string, string> kv in headers)
{
myReq.Headers.Add(kv.Key, kv.Value);
}
Stream dataStream = myReq.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
dataStream.Close();

HttpWebResponse HttpWResp = (HttpWebResponse)myReq.GetResponse();
dataStream = HttpWResp.GetResponseStream();
string result = "";
using (StreamReader myStreamReader = new StreamReader(dataStream, encoding))
{
result = myStreamReader.ReadToEnd();
myStreamReader.Close();
}
dataStream.Close();
HttpWResp.Close();
return result;
}
catch (System.Exception ex)
{
throw ex;
}
}
}
}

+ 12
- 0
BPA.KitChen.StoreManagement.Core/Entity/Base/Class1.cs Voir le fichier

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Entity.Base
{
internal class Class1
{
}
}

+ 23
- 0
BPA.KitChen.StoreManagement.Core/Entity/Base/IBaseEntity.cs Voir le fichier

@@ -0,0 +1,23 @@
using Furion;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Entity.Base
{
/// <summary>
/// 基础类型
/// </summary>
public abstract class IBaseEntity
{
/// <summary>
/// 主键 Guid
/// </summary>
[SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(64)", IsNullable = false)]
public string Id { get; set; } = Guid.NewGuid().ToString();
}
}

+ 19
- 0
BPA.KitChen.StoreManagement.Core/Entity/Base/IBaseGroupIdEntity.cs Voir le fichier

@@ -0,0 +1,19 @@

using BPA.KitChen.StoreManagement.Core.Common.Const;
using Furion;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Entity.Base
{
public class IBaseGroupIdEntity: IEntity
{

[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "GroupId", IsNullable = true)]
public string GroupId { get; set; } = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
}
}

+ 128
- 0
BPA.KitChen.StoreManagement.Core/Entity/Base/IBaseOPEntity.cs Voir le fichier

@@ -0,0 +1,128 @@
using BPA.KitChen.StoreManagement.Core.Common.Const;
using Furion;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Entity.Base
{
/// <summary>
/// 修改人修改时间
/// </summary>
public class IBaseOPEntity : IBaseEntity
{
/// <summary>
/// 删除标识
/// 0=> 正常使用
/// 1=> 已经被标记删除
/// </summary>
[SugarColumn(ColumnDataType = "int", ColumnDescription = "是否删除", IsNullable = false)]
public int IsDeleted { get; set; } = 0;
/// <summary>
/// 删除时间
/// </summary>
[SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "删除时间", IsNullable = true)]
public DateTime? DeleteAt { get; set; }
/// <summary>
/// 删除人
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "删除人", IsNullable = true)]
public string DeleteBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "更新时间", IsNullable = true)]
public DateTime? UpdateAt { get; set; }
/// <summary>
/// 更新人
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "更新人", IsNullable = true)]
public string UpdateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "创建时间", IsNullable = true)]
public DateTime CreateAt { get; set; } = DateTime.Now;
/// <summary>
/// 创建人
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "创建人", IsNullable = true)]
public string CreateBy { get; set; }

/// <summary>
/// 新增
/// </summary>
public virtual void Create()
{
var userId = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
var userName = App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
this.Id = Guid.NewGuid().ToString();
this.CreateAt = DateTime.Now;
if (!string.IsNullOrEmpty(userId))
{
this.CreateBy = userId;
}
else
{

this.CreateBy = "admin";
}
}
public virtual void Create(DateTime data)
{
var userId = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
var userName = App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
this.Id = Guid.NewGuid().ToString();
this.CreateAt = data;
if (!string.IsNullOrEmpty(userId))
{
this.CreateBy = userId;
}
else
{

this.CreateBy = "admin";
}
}
/// <summary>
/// 修改
/// </summary>
public void Modify()
{
var userId = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
var userName = App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
this.UpdateAt = DateTime.Now;
if (!string.IsNullOrEmpty(userId))
{
this.UpdateBy = userId;
}
else
{

this.UpdateBy = "admin";
}
}

/// <summary>
/// 删除
/// </summary>
public void Delete()
{
var userId = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
var userName = App.User?.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
this.DeleteAt = DateTime.Now;
if (!string.IsNullOrEmpty(userId))
{
this.DeleteBy = userId;
}
else
{

this.DeleteBy = "admin";
}
}
}
}

+ 21
- 0
BPA.KitChen.StoreManagement.Core/Entity/Base/IEntity.cs Voir le fichier

@@ -0,0 +1,21 @@
using BPA.KitChen.StoreManagement.Core.Enum;
using Furion;
using SqlSugar;
using System;

namespace BPA.KitChen.StoreManagement.Core.Entity.Base
{
/// <summary>
/// 自定义实体基类
/// </summary>
public abstract class IEntity: IBaseOPEntity
{
/// <summary>
/// 状态
/// </summary>
[SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;

}
}

+ 27
- 0
BPA.KitChen.StoreManagement.Core/Enum/AccountType.cs Voir le fichier

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
/// <summary>
/// 分账账户类型
/// </summary>
public enum AccountType
{
/// <summary>
/// 商户
/// </summary>
[Description("商户")]
MERCHANT = 0,

/// <summary>
/// 个人
/// </summary>
[Description("个人")]
PERSONAL = 1,
}
}

+ 95
- 0
BPA.KitChen.StoreManagement.Core/Enum/CommonStatus.cs Voir le fichier

@@ -0,0 +1,95 @@
using System.ComponentModel;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
/// <summary>
/// 公共状态
/// </summary>
public enum CommonStatus
{
/// <summary>
/// 正常
/// </summary>
[Description("正常")]
ENABLE = 0,

/// <summary>
/// 停用
/// </summary>
[Description("停用")]
DISABLE = 1,

/// <summary>
/// 删除
/// </summary>
[Description("删除")]
DELETED = 2
}
public enum MenuTypeEnums
{
/// <summary>
/// 数据操作类型
/// </summary>
Handle,
/// <summary>
/// 普通菜单
/// </summary>
Normal
}
/// <summary>
/// 账号类型
/// </summary>
public enum AdminEnums
{
/// <summary>
/// 超级管理员
/// </summary>
[Description("超级管理员")]
SuperAdmin = 1,

/// <summary>
/// 管理员
/// </summary>
[Description("管理员")]
Admin = 2,

/// <summary>
/// 普通账号
/// </summary>
[Description("普通账号")]
None = 3
}
/// <summary>
/// 会员平台
/// </summary>
public enum PlatformType
{
/// <summary>
/// 默认
/// </summary>
[Description("默认")]
Default = 0,
/// <summary>
/// 微信
/// </summary>
[Description("微信")]
WeChat=1,

/// <summary>
/// 支付宝
/// </summary>
[Description("支付宝")]
Alipay = 2,
/// <summary>
/// POS
/// </summary>
[Description("pos")]
POS = 3,
/// <summary>
/// card
/// </summary>
[Description("储值卡")]
Card = 4,

}
}

+ 21
- 0
BPA.KitChen.StoreManagement.Core/Enum/CouponUseType.cs Voir le fichier

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public enum CouponUseType
{
[Description("未使用")]
NoUse=1,
[Description("已核销")]
WriteOff=2,
[Description("占用中")]
Occupied=3,
[Description("已失效")]
Invalidation=4
}
}

+ 42
- 0
BPA.KitChen.StoreManagement.Core/Enum/DataScopeType.cs Voir le fichier

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public enum DataScopeType
{
/// <summary>
/// 全部数据
/// </summary>
[Description("全部数据")]
ALL = 1,

/// <summary>
/// 本部门及以下数据
/// </summary>
[Description("本部门及以下数据")]
DEPT_WITH_CHILD = 2,

/// <summary>
/// 本部门数据
/// </summary>
[Description("本部门数据")]
DEPT = 3,

/// <summary>
/// 仅本人数据
/// </summary>
[Description("仅本人数据")]
SELF = 4,

/// <summary>
/// 自定义数据
/// </summary>
[Description("自定义数据")]
DEFINE = 5
}
}

+ 36
- 0
BPA.KitChen.StoreManagement.Core/Enum/GoodsAttribute.cs Voir le fichier

@@ -0,0 +1,36 @@
/**
* 命名空间: BPA.Kitchen.Core.Common.Enum
*
* 功 能: N/A
* 类 名: GoodsAttribute
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2022/6/24 10:04:06 唐学波 初版
*
* Copyright (c) 2022 BlackB Corporation. All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
/// <summary>
/// 商品属性
/// </summary>
public enum GoodsAttribute
{
/// <summary>
/// 单品
/// </summary>
SingleGoods = 0,

/// <summary>
/// 套餐
/// </summary>
ComboGoods = 1,
}
}

+ 44
- 0
BPA.KitChen.StoreManagement.Core/Enum/IntegralEnum.cs Voir le fichier

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public class IntegralEnum
{
public enum CalculateType
{
积分方案 = 1,
多倍积分 = 2,
独立计算 = 3
}

/// <summary>
/// 积分增加/减少类型
/// </summary>
public enum IntegSourceType
{

订单消费 = 1,
活动赠送 = 2,
后台补充 = 3,
积分兑换 = 4,
}

/// <summary>
/// 小类方案类型
/// </summary>
public enum allTypes
{
common = 0,
price = 1,
big = 2,
small = 3,
count = 4,
persons = 5,
number = 6
}
}
}

+ 34
- 0
BPA.KitChen.StoreManagement.Core/Enum/MenuOpenType.cs Voir le fichier

@@ -0,0 +1,34 @@
using System.ComponentModel;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
/// <summary>
/// 系统菜单类型
/// </summary>
public enum MenuOpenType
{
/// <summary>
/// 无
/// </summary>
[Description("无")]
NONE = 0,

/// <summary>
/// 组件
/// </summary>
[Description("组件")]
COMPONENT = 1,

/// <summary>
/// 内链
/// </summary>
[Description("内链")]
INNER = 2,

/// <summary>
/// 外链
/// </summary>
[Description("外链")]
OUTER = 3
}
}

+ 25
- 0
BPA.KitChen.StoreManagement.Core/Enum/MenuType.cs Voir le fichier

@@ -0,0 +1,25 @@
using System.ComponentModel;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public enum MenuType
{
/// <summary>
/// 目录
/// </summary>
[Description("目录")]
DIR = 0,

/// <summary>
/// 菜单
/// </summary>
[Description("菜单")]
MENU = 1,

/// <summary>
/// 按钮
/// </summary>
[Description("按钮")]
BTN = 2
}
}

+ 21
- 0
BPA.KitChen.StoreManagement.Core/Enum/OrderEnum.cs Voir le fichier

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public class OrderEnum
{
public enum SubOrderCookingStutas
{
WaitMake = 0,
Making = 1,
WaitTake = 2,
TakeCompleted = 3,
Normal = 99998,
Error = 99999
}
}
}

+ 35
- 0
BPA.KitChen.StoreManagement.Core/Enum/OrgType.cs Voir le fichier

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public enum OrgType
{
/// <summary>
/// 机构部门
/// </summary>
[Description("机构部门")]
ORG = 0,

/// <summary>
/// 配送中心
/// </summary>
[Description("配送中心")]
DEVLIVERY = 1,

/// <summary>
/// 门店
/// </summary>
[Description("门店")]
STORE = 2,
/// <summary>
/// 门店
/// </summary>
[Description("加盟店")]
FranchiseeSTORE = 3
}
}

+ 39
- 0
BPA.KitChen.StoreManagement.Core/Enum/SRDUserType.cs Voir le fichier

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public enum SRDUserType
{
/// <summary>
/// 人员
/// </summary>
[Description("人员")]
USER = 0,

/// <summary>
/// 人员分类
/// </summary>
[Description("人员分类")]
USERTYPE = 1,

}
public enum RSDGroupType
{
/// <summary>
/// 设备
/// </summary>
[Description("设备")]
RSD = 0,

/// <summary>
/// 设备分组
/// </summary>
[Description("设备分组")]
RSDGROUP = 1,
}
}

+ 24
- 0
BPA.KitChen.StoreManagement.Core/Enum/StatusEntity.cs Voir le fichier

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public enum StatusEntity
{
/// <summary>
/// 正常
/// </summary>
[Description("正常")]
ENABLE = 0,

/// <summary>
/// 停用
/// </summary>
[Description("停用")]
DISABLE = 1,
}
}

+ 24
- 0
BPA.KitChen.StoreManagement.Core/Enum/TransactionType.cs Voir le fichier

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Core.Enum
{
public enum TransactionType
{
/// <summary>
/// 充值
/// </summary>
Recharge=1,
/// <summary>
/// 消费
/// </summary>
Consume = 2,
/// <summary>
/// 退款
/// </summary>
Refund = 3,
}
}

+ 21
- 0
BPA.KitChen.StoreManagement.Core/RequestAnalysis/UserAnalysis.cs Voir le fichier

@@ -0,0 +1,21 @@
using Furion;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.Kitchen.Core.Common.RequestAnalysis
{
public class UserAnalysis
{
public UserAnalysis()
{
//CurrentUser.AppId = App.HttpContext.Request.Headers["AppId"];
//CurrentUser.TenantId = App.HttpContext.Request.Headers["TenantId"];

}
}
}

+ 0
- 68
BPA.KitChen.StoreManagement.Core/obj/BPA.KitChen.StoreManagement.Core.csproj.nuget.dgspec.json Voir le fichier

@@ -1,68 +0,0 @@
{
"format": 1,
"restore": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {}
},
"projects": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"projectName": "BPA.KitChen.StoreManagement.Core",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

+ 0
- 16
BPA.KitChen.StoreManagement.Core/obj/BPA.KitChen.StoreManagement.Core.csproj.nuget.g.props Voir le fichier

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\gwbvi\.nuget\packages\;E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\gwbvi\.nuget\packages\" />
<SourceRoot Include="E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

+ 0
- 2
BPA.KitChen.StoreManagement.Core/obj/BPA.KitChen.StoreManagement.Core.csproj.nuget.g.targets Voir le fichier

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />


+ 0
- 82
BPA.KitChen.StoreManagement.Core/obj/project.assets.json Voir le fichier

@@ -1,82 +0,0 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\gwbvi\\.nuget\\packages\\": {},
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"projectName": "BPA.KitChen.StoreManagement.Core",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 0
- 15
BPA.KitChen.StoreManagement.Core/obj/project.nuget.cache Voir le fichier

@@ -1,15 +0,0 @@
{
"version": 2,
"dgSpecHash": "WBJ5R/Km9w2tO2DJkGo5YDyKajFj1wlrXV+s0+GQSiVqzDZRM46bONXrEJeF6YXTbI9OXDfNvcKC3C6k4jogXg==",
"success": true,
"projectFilePath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"expectedPackageFiles": [],
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 4
- 0
BPA.KitChen.StoreManagement.SqlSugar/BPA.KitChen.StoreManagement.SqlSugar.csproj Voir le fichier

@@ -6,6 +6,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.3.7" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\BPA.KitChen.StoreManagement.Core\BPA.KitChen.StoreManagement.Core.csproj" />
</ItemGroup>


+ 201
- 0
BPA.KitChen.StoreManagement.SqlSugar/SqlSugarDb.cs Voir le fichier

@@ -0,0 +1,201 @@
using BPA.KitChen.StoreManagement.Core.Common;
using BPA.KitChen.StoreManagement.Core.Common.Const;
using BPA.KitChen.StoreManagement.Core.Entity.Base;
using Furion;
using Furion.DatabaseAccessor;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.SqlSugar
{
public class SqlSugarDb
{
public static SqlSugarScope Db { get; set; }

public static SqlSugarScope SqlSugarScope(ConnectionConfig configConnection)
{
//全局过滤

Db = new SqlSugarScope(configConnection, db =>
{
//全局过滤
TableFilterItem(db);
db.Aop.OnLogExecuting = (sql, pars) =>
{
Console.WriteLine(sql);

//sql 执行前
};
db.Aop.OnLogExecuted = (sql, pars) =>
{
//sql 执行后
};
db.Aop.OnError = ex =>
{
//sql 异常
};
});

return Db;
}

#region 全局过滤器及配置
/// <summary>
/// 全局过滤
/// </summary>
private static void TableFilterItem(SqlSugarClient db)
{

//添加默认值
DataExecuting(db);

//// 配置租户过滤器
//var tenantId = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
//db.QueryFilter.AddTableFilter<IBaseGroupIdEntity>(u => u.GroupId == tenantId);

//db.QueryFilter.AddTableFilter<IBaseOPEntity>(u => u.IsDeleted ==0);
var types = Assembly.Load("BPA.KitChen.StoreManagement.Core").GetTypes()
.Where(x => x.GetCustomAttribute<SugarTable>() != null);

foreach (var entityType in types)
{

if (entityType.GetProperty("GroupId") != null)//判断实体类中包含属性
{
var groupId = string.IsNullOrWhiteSpace(CurrentUser.TenantId)
? App.User?.FindFirst(ClaimConst.GroupId)?.Value
: CurrentUser.TenantId;
//构建动态Lambda
var lambda = DynamicExpressionParser.ParseLambda
(new[] { Expression.Parameter(entityType, "it") },
typeof(bool), $"{nameof(IBaseGroupIdEntity.GroupId)} == @0",
groupId);
db.QueryFilter.Add(new TableFilterItem<object>(entityType, lambda, true)); //将Lambda传入过滤器
}

if (entityType.GetProperty("IsDeleted") != null) //判断实体类中包含属性
{
//构建动态Lambda
var lambda = DynamicExpressionParser.ParseLambda
(new[] { Expression.Parameter(entityType, "it") },
typeof(bool), $"{nameof(IBaseOPEntity.IsDeleted)} == @0",
0);
db.QueryFilter.Add(new TableFilterItem<object>(entityType, lambda, true)); //将Lambda传入过滤器
}

}


//var types = Assembly.Load("BPA.KitChen.StoreManagement.Core").GetTypes()
// .Where(x => x.Namespace != null
// && x.GetCustomAttribute<SugarTable>() != null
// && x.Namespace.Contains("BPA.KitChen.StoreManagement.Core.Entity"));

//foreach (var entityType in types)
//{
// if (entityType.GetProperty("GroupId") != null)//判断实体类中包含属性
// {
// //构建动态Lambda
// var lambda = DynamicExpressionParser.ParseLambda
// (new[] { Expression.Parameter(entityType, "it") },
// typeof(bool), $"{nameof(ITenantIdFilter.GroupId)} == @0",
// CurrentUser.GroupId);
// db.QueryFilter.Add(new TableFilterItem<object>(entityType, lambda, true)); //将Lambda传入过滤器
// }

// if (entityType.GetProperty("IsDelete") != null) //判断实体类中包含属性
// {
// //构建动态Lambda
// var lambda = DynamicExpressionParser.ParseLambda
// (new[] { Expression.Parameter(entityType, "it") },
// typeof(bool), $"{nameof(IDeletedFilter.IsDelete)} == @0",
// false);
// db.QueryFilter.Add(new TableFilterItem<object>(entityType, lambda, true)); //将Lambda传入过滤器
// }

//}

}

/// <summary>
/// 附默认值
/// </summary>
/// <param name="db"></param>
private static void DataExecuting(SqlSugarClient db)
{
//全局字段赋值
db.Aop.DataExecuting = (oldValue, entityInfo) =>
{
InsertByObject(entityInfo);
UpdateByObject(oldValue, entityInfo);
};

}
/// <summary>
///插入数据时附默认值
/// </summary>
/// <param name="entityInfo"></param>
private static void InsertByObject(DataFilterModel entityInfo)
{
if (entityInfo.OperationType != DataFilterType.InsertByObject) return;
switch (entityInfo.PropertyName)
{
case "CreateAt":
entityInfo.SetValue(DateTime.Now);
break;
case "CreateBy":
entityInfo.SetValue(CurrentUser.Account);
break;
case "GroupId":
entityInfo.SetValue(CurrentUser.TenantId);
break;
}
}

/// <summary>
/// 修改数据时附默认值
/// </summary>
/// <param name="oldValue"></param>
/// <param name="entityInfo"></param>
private static void UpdateByObject(object oldValue, DataFilterModel entityInfo)
{
if (entityInfo.OperationType != DataFilterType.UpdateByObject) return;

switch (entityInfo.PropertyName)
{
case "UpdateAt":
entityInfo.SetValue(DateTime.Now);
break;
case "UpdateBy":
entityInfo.SetValue(CurrentUser.Account);
break;
}

//if (entityInfo.PropertyName == "IsDelete" && (bool)oldValue)
//{
// switch (entityInfo.PropertyName)
// {
// case "DeleteAt":
// entityInfo.SetValue(DateTime.Now);
// break;
// case "DeleteBy":
// entityInfo.SetValue(CurrentUser.Account);
// break;
// }
//}
//else
//{

//}

}
#endregion
}
}

+ 31
- 0
BPA.KitChen.StoreManagement.SqlSugar/SqlsugarSetup.cs Voir le fichier

@@ -0,0 +1,31 @@
using Furion;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.SqlSugar
{
public static class SqlsugarSetup
{
/// <summary>
///
/// </summary>
/// <param name="services"></param>
public static void AddSqlsugarSetup(this IServiceCollection services)
{
//如果多个数数据库传 List<ConnectionConfig>
var configConnection = new ConnectionConfig()
{
DbType = DbType.MySql,
ConnectionString = App.Configuration["DBConnectionStr"],
IsAutoCloseConnection = true
};
var sqlSugar = SqlSugarDb.SqlSugarScope(configConnection);
services.AddSingleton<ISqlSugarClient>(sqlSugar);//这边是SqlSugarScope用AddSingleton
}
}
}

+ 31
- 0
BPA.KitChen.StoreManagement.SqlSugar/SupperRepository.cs Voir le fichier

@@ -0,0 +1,31 @@
using BPA.Kitchen.Core.Common.RequestAnalysis;
using Furion.FriendlyException;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.SqlSugar
{
public class SupperRepository: UserAnalysis
{
public async Task<T> BaseAction<T>(SqlSugarClient db, Func<T> action, Func<T> defualtActoion, string msg)
{
try
{
db.BeginTran();
var res = action.Invoke();
db.CommitTran();
return await Task.FromResult(res);
}
catch (Exception ex)
{
db.RollbackTran();
//BPALog.WriteLog(msg + ":" + ex.Message, LogEnum.Error, null, ex);
throw Oops.Oh(ex.Message);
}
}
}
}

+ 0
- 132
BPA.KitChen.StoreManagement.SqlSugar/obj/BPA.KitChen.StoreManagement.SqlSugar.csproj.nuget.dgspec.json Voir le fichier

@@ -1,132 +0,0 @@
{
"format": 1,
"restore": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {}
},
"projects": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"projectName": "BPA.KitChen.StoreManagement.Core",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"projectName": "BPA.KitChen.StoreManagement.SqlSugar",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

+ 0
- 16
BPA.KitChen.StoreManagement.SqlSugar/obj/BPA.KitChen.StoreManagement.SqlSugar.csproj.nuget.g.props Voir le fichier

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\gwbvi\.nuget\packages\;E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\gwbvi\.nuget\packages\" />
<SourceRoot Include="E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

+ 0
- 2
BPA.KitChen.StoreManagement.SqlSugar/obj/BPA.KitChen.StoreManagement.SqlSugar.csproj.nuget.g.targets Voir le fichier

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />


+ 0
- 105
BPA.KitChen.StoreManagement.SqlSugar/obj/project.assets.json Voir le fichier

@@ -1,105 +0,0 @@
{
"version": 3,
"targets": {
"net6.0": {
"BPA.KitChen.StoreManagement.Core/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"compile": {
"bin/placeholder/BPA.KitChen.StoreManagement.Core.dll": {}
},
"runtime": {
"bin/placeholder/BPA.KitChen.StoreManagement.Core.dll": {}
}
}
}
},
"libraries": {
"BPA.KitChen.StoreManagement.Core/1.0.0": {
"type": "project",
"path": "../BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj",
"msbuildProject": "../BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj"
}
},
"projectFileDependencyGroups": {
"net6.0": [
"BPA.KitChen.StoreManagement.Core >= 1.0.0"
]
},
"packageFolders": {
"C:\\Users\\gwbvi\\.nuget\\packages\\": {},
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"projectName": "BPA.KitChen.StoreManagement.SqlSugar",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 0
- 15
BPA.KitChen.StoreManagement.SqlSugar/obj/project.nuget.cache Voir le fichier

@@ -1,15 +0,0 @@
{
"version": 2,
"dgSpecHash": "2YWVuC+W0IS5Hyi1r+9pBDbf7Nl4QSUTUYFvcOQ3C+KHc8FZg7zvw/JL2caR6wonvLHsez/KcaiKkJ2eUutixA==",
"success": true,
"projectFilePath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"expectedPackageFiles": [],
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 80
- 0
BPA.KitChen.StoreManagement/Handlers/JwtHandler.cs Voir le fichier

@@ -0,0 +1,80 @@
using Furion;
using Furion.Authorization;
using Furion.DataEncryption;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using System.Security.Claims;
using System.Threading.Tasks;

namespace BPA.KitChen.StoreManagement.Handlers
{
public class JwtHandler : AppAuthorizeHandler
{
/// <summary>
/// 重写 Handler 添加自动刷新
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override async Task HandleAsync(AuthorizationHandlerContext context)
{
// 自动刷新Token
if (JWTEncryption.AutoRefreshToken(context, context.GetCurrentHttpContext(),
App.GetOptions<JWTSettingsOptions>().ExpiredTime))
{
await AuthorizeHandleAsync(context);
}
else
{
context.Fail(); // 授权失败
DefaultHttpContext currentHttpContext = context.GetCurrentHttpContext();
if (currentHttpContext == null)
return;
currentHttpContext.SignoutToSwagger();
}
}

/// <summary>
/// 授权判断逻辑,授权通过返回 true,否则返回 false
/// </summary>
/// <param name="context"></param>
/// <param name="httpContext"></param>
/// <returns></returns>
public override async Task<bool> PipelineAsync(AuthorizationHandlerContext context, DefaultHttpContext httpContext)
{
// 此处已经自动验证 Jwt Token的有效性了,无需手动验证
return await CheckAuthorzieAsync(httpContext);
}
/// <summary>
/// 检查权限
/// </summary>
/// <param name="httpContext"></param>
/// <returns></returns>
private static async Task<bool> CheckAuthorzieAsync(DefaultHttpContext httpContext)
{
// 获取权限特性 FromHeader教研数据
//var securityDefineAttribute = httpContext.GetMetadata<SecurityDefineAttribute>();
//if (securityDefineAttribute == null) return true;

var userId = App.User?.FindFirstValue("UserId");
// 解析服务
// var userManager = httpContext.RequestServices.GetService<IUserService>();

// var loginType = App.User?.FindFirstValue("LoginType");
//登录认证服务
return true;
//if ("0".Equals(loginType)) {
// var securities = await userManager.CheckUser(userId);
// // 检查授权
// return securities;
//}
//if ("1".Equals(loginType)) {
// var securities = await userManager.CheckUser(userId);
// // 检查授权
// return securities;
//}
//return false;
}
}
}

+ 20
- 4
BPA.KitChen.StoreManagement/Program.cs Voir le fichier

@@ -1,8 +1,24 @@
var builder = WebApplication.CreateBuilder(args);
using BPA.KitChen.StoreManagement.Core.Common;
using BPA.KitChen.StoreManagement.Handlers;
using BPA.KitChen.StoreManagement.SqlSugar;
using Furion;

// Add services to the container.
var builder = WebApplication.CreateBuilder(args).Inject();

builder.Services.AddControllers();
//JWT¼øȨ
builder.Services.AddJwt<JwtHandler>(enableGlobalAuthorize: true);



CosConfig.cosInfoOptions = new CosInfoOptions(App.Configuration["cos_config:AppId"],
App.Configuration["cos_config:Region"], App.Configuration["cos_config:Bucket"],
App.Configuration["cos_config:SecretId"], App.Configuration["cos_config:SecretKey"]);

//ÉèÖ÷µ»ØÑùʽ
builder.Services.AddUnifyResult();

builder.Services.AddControllers().AddInject();
builder.Services.AddSqlsugarSetup();

var app = builder.Build();

@@ -12,7 +28,7 @@ var app = builder.Build();
app.UseHttpsRedirection();

app.UseAuthorization();
app.UseInject();
app.MapControllers();

app.Run();

+ 1
- 1
BPA.KitChen.StoreManagement/Properties/launchSettings.json Voir le fichier

@@ -13,7 +13,7 @@
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "weatherforecast",
"launchUrl": "api/index.html",
"applicationUrl": "https://localhost:7131;http://localhost:5248",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"


+ 0
- 272
BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.dgspec.json Voir le fichier

@@ -1,272 +0,0 @@
{
"format": 1,
"restore": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj": {}
},
"projects": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj",
"projectName": "BPA.KitChen.StoreManagement.Application",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"projectName": "BPA.KitChen.StoreManagement.Core",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"projectName": "BPA.KitChen.StoreManagement.SqlSugar",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"projectName": "BPA.KitChen.StoreManagement",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj"
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

+ 0
- 16
BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.props Voir le fichier

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\gwbvi\.nuget\packages\;E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\gwbvi\.nuget\packages\" />
<SourceRoot Include="E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

+ 0
- 2
BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.targets Voir le fichier

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />


+ 0
- 153
BPA.KitChen.StoreManagement/obj/project.assets.json Voir le fichier

@@ -1,153 +0,0 @@
{
"version": 3,
"targets": {
"net6.0": {
"BPA.KitChen.StoreManagement.Application/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"dependencies": {
"BPA.KitChen.StoreManagement.Core": "1.0.0",
"BPA.KitChen.StoreManagement.SqlSugar": "1.0.0"
},
"compile": {
"bin/placeholder/BPA.KitChen.StoreManagement.Application.dll": {}
},
"runtime": {
"bin/placeholder/BPA.KitChen.StoreManagement.Application.dll": {}
}
},
"BPA.KitChen.StoreManagement.Core/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"compile": {
"bin/placeholder/BPA.KitChen.StoreManagement.Core.dll": {}
},
"runtime": {
"bin/placeholder/BPA.KitChen.StoreManagement.Core.dll": {}
}
},
"BPA.KitChen.StoreManagement.SqlSugar/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"dependencies": {
"BPA.KitChen.StoreManagement.Core": "1.0.0"
},
"compile": {
"bin/placeholder/BPA.KitChen.StoreManagement.SqlSugar.dll": {}
},
"runtime": {
"bin/placeholder/BPA.KitChen.StoreManagement.SqlSugar.dll": {}
}
}
}
},
"libraries": {
"BPA.KitChen.StoreManagement.Application/1.0.0": {
"type": "project",
"path": "../BPA.KitChen.StoreManagement.Application/BPA.KitChen.StoreManagement.Application.csproj",
"msbuildProject": "../BPA.KitChen.StoreManagement.Application/BPA.KitChen.StoreManagement.Application.csproj"
},
"BPA.KitChen.StoreManagement.Core/1.0.0": {
"type": "project",
"path": "../BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj",
"msbuildProject": "../BPA.KitChen.StoreManagement.Core/BPA.KitChen.StoreManagement.Core.csproj"
},
"BPA.KitChen.StoreManagement.SqlSugar/1.0.0": {
"type": "project",
"path": "../BPA.KitChen.StoreManagement.SqlSugar/BPA.KitChen.StoreManagement.SqlSugar.csproj",
"msbuildProject": "../BPA.KitChen.StoreManagement.SqlSugar/BPA.KitChen.StoreManagement.SqlSugar.csproj"
}
},
"projectFileDependencyGroups": {
"net6.0": [
"BPA.KitChen.StoreManagement.Application >= 1.0.0",
"BPA.KitChen.StoreManagement.Core >= 1.0.0",
"BPA.KitChen.StoreManagement.SqlSugar >= 1.0.0"
]
},
"packageFolders": {
"C:\\Users\\gwbvi\\.nuget\\packages\\": {},
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"projectName": "BPA.KitChen.StoreManagement",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Application\\BPA.KitChen.StoreManagement.Application.csproj"
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.Core\\BPA.KitChen.StoreManagement.Core.csproj"
},
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj": {
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.SqlSugar\\BPA.KitChen.StoreManagement.SqlSugar.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 0
- 15
BPA.KitChen.StoreManagement/obj/project.nuget.cache Voir le fichier

@@ -1,15 +0,0 @@
{
"version": 2,
"dgSpecHash": "wm5cjwdg7Qzh7MF42V4PB+o0As6IHv7Q/zZtAblRAaHv5rLXA+clV8z8eMPQ+AuQpm+W+VQtsICQ0U6IyMJbeg==",
"success": true,
"projectFilePath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"expectedPackageFiles": [],
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

Chargement…
Annuler
Enregistrer