From 6db033d5cd811024300c53e5a194f14bb9690b17 Mon Sep 17 00:00:00 2001 From: stevelee Date: Thu, 21 Apr 2022 15:05:54 +0800 Subject: [PATCH] initial --- .gitignore | 266 ++++++++++++++++++ BPA.SaaS.Detection.Api.sln | 122 ++++++++ README.md | 1 + src/.pack/BPA.SaaS.Detection.Api.SDK.nuspec | 33 +++ src/.pack/pack.sh | 41 +++ .../BPA.SaaS.Detection.Api.Bootstrap.csproj | 22 ++ .../BPA.SaaS.Detection.Api.DTO.csproj | 11 + .../BPA.SaaS.Detection.Api.Entity.csproj | 11 + .../BPA.SaaS.Detection.Api.IRepository.csproj | 14 + .../BPA.SaaS.Detection.Api.IService.csproj | 11 + .../BPA.SaaS.Detection.Api.Model.csproj | 17 ++ .../BPA.SaaS.Detection.Api.Repository.csproj | 17 ++ .../BPA.SaaS.Detection.Api.SDK.csproj | 13 + .../BPA.SaaS.Detection.Api.Service.csproj | 16 ++ .../BPA.SaaS.Detection.Api.UnitTest.csproj | 7 + .../BPA.SaaS.Detection.Api.WebApi.csproj | 14 + src/BPA.SaaS.Detection.Api.WebApi/Program.cs | 8 + .../Properties/launchSettings.json | 31 ++ .../appsettings.Development.json | 8 + .../appsettings.json | 9 + src/nuget.config | 14 + 21 files changed, 686 insertions(+) create mode 100644 .gitignore create mode 100644 BPA.SaaS.Detection.Api.sln create mode 100644 README.md create mode 100644 src/.pack/BPA.SaaS.Detection.Api.SDK.nuspec create mode 100644 src/.pack/pack.sh create mode 100644 src/BPA.SaaS.Detection.Api.Bootstrap/BPA.SaaS.Detection.Api.Bootstrap.csproj create mode 100644 src/BPA.SaaS.Detection.Api.DTO/BPA.SaaS.Detection.Api.DTO.csproj create mode 100644 src/BPA.SaaS.Detection.Api.Entity/BPA.SaaS.Detection.Api.Entity.csproj create mode 100644 src/BPA.SaaS.Detection.Api.IRepository/BPA.SaaS.Detection.Api.IRepository.csproj create mode 100644 src/BPA.SaaS.Detection.Api.IService/BPA.SaaS.Detection.Api.IService.csproj create mode 100644 src/BPA.SaaS.Detection.Api.Model/BPA.SaaS.Detection.Api.Model.csproj create mode 100644 src/BPA.SaaS.Detection.Api.Repository/BPA.SaaS.Detection.Api.Repository.csproj create mode 100644 src/BPA.SaaS.Detection.Api.SDK/BPA.SaaS.Detection.Api.SDK.csproj create mode 100644 src/BPA.SaaS.Detection.Api.Service/BPA.SaaS.Detection.Api.Service.csproj create mode 100644 src/BPA.SaaS.Detection.Api.UnitTest/BPA.SaaS.Detection.Api.UnitTest.csproj create mode 100644 src/BPA.SaaS.Detection.Api.WebApi/BPA.SaaS.Detection.Api.WebApi.csproj create mode 100644 src/BPA.SaaS.Detection.Api.WebApi/Program.cs create mode 100644 src/BPA.SaaS.Detection.Api.WebApi/Properties/launchSettings.json create mode 100644 src/BPA.SaaS.Detection.Api.WebApi/appsettings.Development.json create mode 100644 src/BPA.SaaS.Detection.Api.WebApi/appsettings.json create mode 100644 src/nuget.config diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f8f6181 --- /dev/null +++ b/.gitignore @@ -0,0 +1,266 @@ +################################################################################ +# 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。 +################################################################################ + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +#*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + diff --git a/BPA.SaaS.Detection.Api.sln b/BPA.SaaS.Detection.Api.sln new file mode 100644 index 0000000..265f758 --- /dev/null +++ b/BPA.SaaS.Detection.Api.sln @@ -0,0 +1,122 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32228.430 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.WebApi", "1.WebApi", "{22D97428-D70D-4A59-8D09-8A4C498A1F19}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "2.Service", "2.Service", "{C6B8C87F-E3CD-48DC-B6EB-96353E588AA3}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "3.Repository", "3.Repository", "{F81A9629-77BC-405D-B16A-0E8A26A5E84D}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "4.Model", "4.Model", "{4172CEA2-8F8B-4D13-AC70-E75F6B273E9E}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "5.Bootstrap", "5.Bootstrap", "{71207855-D2BE-48D3-86AD-D1E5BC389E64}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "6.SDK", "6.SDK", "{0265A6CF-0D40-4A59-B6DF-2F25099DA95B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "7.Tester", "7.Tester", "{FEDACFF6-C6AF-4C34-9575-9456856AEACC}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BPA.SaaS.Detection.Api.WebApi", "src\BPA.SaaS.Detection.Api.WebApi\BPA.SaaS.Detection.Api.WebApi.csproj", "{C0A71B54-B372-4584-A309-2656AAD8AE77}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BPA.SaaS.Detection.Api.IService", "src\BPA.SaaS.Detection.Api.IService\BPA.SaaS.Detection.Api.IService.csproj", "{FC9FEF89-25A9-464F-99F9-F460B8274397}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BPA.SaaS.Detection.Api.Service", "src\BPA.SaaS.Detection.Api.Service\BPA.SaaS.Detection.Api.Service.csproj", "{9988A2A4-1FA3-4A3D-9CF7-09398452B227}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.Repository", "src\BPA.SaaS.Detection.Api.Repository\BPA.SaaS.Detection.Api.Repository.csproj", "{C20119F3-DF66-4E04-9C44-43340297B6DA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.IRepository", "src\BPA.SaaS.Detection.Api.IRepository\BPA.SaaS.Detection.Api.IRepository.csproj", "{6CF90886-5298-4F15-88AA-CAD9BC3232B7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.Entity", "src\BPA.SaaS.Detection.Api.Entity\BPA.SaaS.Detection.Api.Entity.csproj", "{7B376AE6-4C6C-4A82-A014-61F86C690ECE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.DTO", "src\BPA.SaaS.Detection.Api.DTO\BPA.SaaS.Detection.Api.DTO.csproj", "{B5E077A6-B4BA-42D0-B959-4604014F0E69}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.Model", "src\BPA.SaaS.Detection.Api.Model\BPA.SaaS.Detection.Api.Model.csproj", "{550C7F6F-2254-4BB1-9330-71ACA050861A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.SDK", "src\BPA.SaaS.Detection.Api.SDK\BPA.SaaS.Detection.Api.SDK.csproj", "{4F48E97A-2DC3-4720-98F7-25935258D79C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.Bootstrap", "src\BPA.SaaS.Detection.Api.Bootstrap\BPA.SaaS.Detection.Api.Bootstrap.csproj", "{CFDFD099-D03F-441A-A3CD-28C7320742C5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Detection.Api.UnitTest", "src\BPA.SaaS.Detection.Api.UnitTest\BPA.SaaS.Detection.Api.UnitTest.csproj", "{FBE0E584-BF1F-498D-BBFC-66B790EAFC7C}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{BBA7ED57-601B-4F11-9857-603B7C2F7D23}" +ProjectSection(SolutionItems) = preProject +src\nuget.config = src\nuget.config +EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".pack", ".pack", "{5CE18647-CEFB-483A-B384-99D4FB47DA29}" +ProjectSection(SolutionItems) = preProject +src\.pack\pack.sh = src\.pack\pack.sh +EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C0A71B54-B372-4584-A309-2656AAD8AE77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C0A71B54-B372-4584-A309-2656AAD8AE77}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C0A71B54-B372-4584-A309-2656AAD8AE77}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C0A71B54-B372-4584-A309-2656AAD8AE77}.Release|Any CPU.Build.0 = Release|Any CPU + {FC9FEF89-25A9-464F-99F9-F460B8274397}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FC9FEF89-25A9-464F-99F9-F460B8274397}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FC9FEF89-25A9-464F-99F9-F460B8274397}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FC9FEF89-25A9-464F-99F9-F460B8274397}.Release|Any CPU.Build.0 = Release|Any CPU + {9988A2A4-1FA3-4A3D-9CF7-09398452B227}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9988A2A4-1FA3-4A3D-9CF7-09398452B227}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9988A2A4-1FA3-4A3D-9CF7-09398452B227}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9988A2A4-1FA3-4A3D-9CF7-09398452B227}.Release|Any CPU.Build.0 = Release|Any CPU + {C20119F3-DF66-4E04-9C44-43340297B6DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C20119F3-DF66-4E04-9C44-43340297B6DA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C20119F3-DF66-4E04-9C44-43340297B6DA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C20119F3-DF66-4E04-9C44-43340297B6DA}.Release|Any CPU.Build.0 = Release|Any CPU + {6CF90886-5298-4F15-88AA-CAD9BC3232B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6CF90886-5298-4F15-88AA-CAD9BC3232B7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6CF90886-5298-4F15-88AA-CAD9BC3232B7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6CF90886-5298-4F15-88AA-CAD9BC3232B7}.Release|Any CPU.Build.0 = Release|Any CPU + {7B376AE6-4C6C-4A82-A014-61F86C690ECE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7B376AE6-4C6C-4A82-A014-61F86C690ECE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7B376AE6-4C6C-4A82-A014-61F86C690ECE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7B376AE6-4C6C-4A82-A014-61F86C690ECE}.Release|Any CPU.Build.0 = Release|Any CPU + {B5E077A6-B4BA-42D0-B959-4604014F0E69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B5E077A6-B4BA-42D0-B959-4604014F0E69}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B5E077A6-B4BA-42D0-B959-4604014F0E69}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B5E077A6-B4BA-42D0-B959-4604014F0E69}.Release|Any CPU.Build.0 = Release|Any CPU + {550C7F6F-2254-4BB1-9330-71ACA050861A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {550C7F6F-2254-4BB1-9330-71ACA050861A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {550C7F6F-2254-4BB1-9330-71ACA050861A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {550C7F6F-2254-4BB1-9330-71ACA050861A}.Release|Any CPU.Build.0 = Release|Any CPU + {4F48E97A-2DC3-4720-98F7-25935258D79C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4F48E97A-2DC3-4720-98F7-25935258D79C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4F48E97A-2DC3-4720-98F7-25935258D79C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4F48E97A-2DC3-4720-98F7-25935258D79C}.Release|Any CPU.Build.0 = Release|Any CPU + {CFDFD099-D03F-441A-A3CD-28C7320742C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CFDFD099-D03F-441A-A3CD-28C7320742C5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CFDFD099-D03F-441A-A3CD-28C7320742C5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CFDFD099-D03F-441A-A3CD-28C7320742C5}.Release|Any CPU.Build.0 = Release|Any CPU + {FBE0E584-BF1F-498D-BBFC-66B790EAFC7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FBE0E584-BF1F-498D-BBFC-66B790EAFC7C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FBE0E584-BF1F-498D-BBFC-66B790EAFC7C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FBE0E584-BF1F-498D-BBFC-66B790EAFC7C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {C0A71B54-B372-4584-A309-2656AAD8AE77} = {22D97428-D70D-4A59-8D09-8A4C498A1F19} + {FC9FEF89-25A9-464F-99F9-F460B8274397} = {C6B8C87F-E3CD-48DC-B6EB-96353E588AA3} + {9988A2A4-1FA3-4A3D-9CF7-09398452B227} = {C6B8C87F-E3CD-48DC-B6EB-96353E588AA3} + {C20119F3-DF66-4E04-9C44-43340297B6DA} = {F81A9629-77BC-405D-B16A-0E8A26A5E84D} + {6CF90886-5298-4F15-88AA-CAD9BC3232B7} = {F81A9629-77BC-405D-B16A-0E8A26A5E84D} + {7B376AE6-4C6C-4A82-A014-61F86C690ECE} = {4172CEA2-8F8B-4D13-AC70-E75F6B273E9E} + {B5E077A6-B4BA-42D0-B959-4604014F0E69} = {4172CEA2-8F8B-4D13-AC70-E75F6B273E9E} + {550C7F6F-2254-4BB1-9330-71ACA050861A} = {4172CEA2-8F8B-4D13-AC70-E75F6B273E9E} + {4F48E97A-2DC3-4720-98F7-25935258D79C} = {0265A6CF-0D40-4A59-B6DF-2F25099DA95B} + {CFDFD099-D03F-441A-A3CD-28C7320742C5} = {71207855-D2BE-48D3-86AD-D1E5BC389E64} + {FBE0E584-BF1F-498D-BBFC-66B790EAFC7C} = {FEDACFF6-C6AF-4C34-9575-9456856AEACC} + {5CE18647-CEFB-483A-B384-99D4FB47DA29} = {0265A6CF-0D40-4A59-B6DF-2F25099DA95B} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7A177DC6-A13E-4628-97F6-40DC7573252A} + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..65ee4b2 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# BPA.Project \ No newline at end of file diff --git a/src/.pack/BPA.SaaS.Detection.Api.SDK.nuspec b/src/.pack/BPA.SaaS.Detection.Api.SDK.nuspec new file mode 100644 index 0000000..8b2b7b1 --- /dev/null +++ b/src/.pack/BPA.SaaS.Detection.Api.SDK.nuspec @@ -0,0 +1,33 @@ + + + + {name}.SDK + 1.0.1 + + + + {name} + stevelee + + + + + + + + 执行打包命令前,先保证DTO,SDK的PDB,XML,DLL文件是否已经输出到Release目录下<--> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/.pack/pack.sh b/src/.pack/pack.sh new file mode 100644 index 0000000..3770857 --- /dev/null +++ b/src/.pack/pack.sh @@ -0,0 +1,41 @@ +pwd +current_dir=$(pwd) +nuget_key="83d77c57-167d-304e-a42e-7d0470fca3a5" +nuget_source="http://10.2.1.25:10243/repository/bpa/" + +#pakcage version , keep pace with nuspec +package_version="1.0.1" +#nupkg package name +nupkg_pakcage_name="{name}.SDK.${package_version}.nupkg" +#csproj path +csproj_path="../{name}.SDK/{name}.SDK.csproj" +#nuspec path +nuspec_path="{name}.SDK.nuspec" +#nuspec path , relative csproj path +nuspec_path_relative_csproj="../.pack/{name}.SDK.nuspec" + +rm -f nupkg_pakcage_name +#git pull +cd .. +cd .. +git pull & +cd ${current_dir} + +#replace package version +sed -i '5d' ${nuspec_path} +version_node="${package_version}" +sed -i "5i ${version_node}" ${nuspec_path} + +echo pack ${nupkg_pakcage_name} +dotnet pack ${csproj_path} -p:NuspecFile=${nuspec_path_relative_csproj} -c Release --output ../.pack -v m + +#check nuget file is exist +echo +if [ ! -f "${nupkg_pakcage_name}" ]; then + echo "pack ${nupkg_pakcage_name} is error" + exit -1 +fi + +#push nupkg +echo push ${nupkg_pakcage_name} +dotnet nuget push ${nupkg_pakcage_name} -k ${nuget_key} -s ${nuget_source} diff --git a/src/BPA.SaaS.Detection.Api.Bootstrap/BPA.SaaS.Detection.Api.Bootstrap.csproj b/src/BPA.SaaS.Detection.Api.Bootstrap/BPA.SaaS.Detection.Api.Bootstrap.csproj new file mode 100644 index 0000000..61eacd7 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.Bootstrap/BPA.SaaS.Detection.Api.Bootstrap.csproj @@ -0,0 +1,22 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.DTO/BPA.SaaS.Detection.Api.DTO.csproj b/src/BPA.SaaS.Detection.Api.DTO/BPA.SaaS.Detection.Api.DTO.csproj new file mode 100644 index 0000000..d5a0aaa --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.DTO/BPA.SaaS.Detection.Api.DTO.csproj @@ -0,0 +1,11 @@ + + + + net6.0 + enable + enable + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.Entity/BPA.SaaS.Detection.Api.Entity.csproj b/src/BPA.SaaS.Detection.Api.Entity/BPA.SaaS.Detection.Api.Entity.csproj new file mode 100644 index 0000000..0b15548 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.Entity/BPA.SaaS.Detection.Api.Entity.csproj @@ -0,0 +1,11 @@ + + + + net6.0 + enable + enable + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.IRepository/BPA.SaaS.Detection.Api.IRepository.csproj b/src/BPA.SaaS.Detection.Api.IRepository/BPA.SaaS.Detection.Api.IRepository.csproj new file mode 100644 index 0000000..a0c2ddf --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.IRepository/BPA.SaaS.Detection.Api.IRepository.csproj @@ -0,0 +1,14 @@ + + + + net6.0 + enable + enable + + + + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.IService/BPA.SaaS.Detection.Api.IService.csproj b/src/BPA.SaaS.Detection.Api.IService/BPA.SaaS.Detection.Api.IService.csproj new file mode 100644 index 0000000..a2e5653 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.IService/BPA.SaaS.Detection.Api.IService.csproj @@ -0,0 +1,11 @@ + + + + net6.0 + enable + enable + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.Model/BPA.SaaS.Detection.Api.Model.csproj b/src/BPA.SaaS.Detection.Api.Model/BPA.SaaS.Detection.Api.Model.csproj new file mode 100644 index 0000000..f8f853c --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.Model/BPA.SaaS.Detection.Api.Model.csproj @@ -0,0 +1,17 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.Repository/BPA.SaaS.Detection.Api.Repository.csproj b/src/BPA.SaaS.Detection.Api.Repository/BPA.SaaS.Detection.Api.Repository.csproj new file mode 100644 index 0000000..0e431c0 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.Repository/BPA.SaaS.Detection.Api.Repository.csproj @@ -0,0 +1,17 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.SDK/BPA.SaaS.Detection.Api.SDK.csproj b/src/BPA.SaaS.Detection.Api.SDK/BPA.SaaS.Detection.Api.SDK.csproj new file mode 100644 index 0000000..1e560f7 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.SDK/BPA.SaaS.Detection.Api.SDK.csproj @@ -0,0 +1,13 @@ + + + + net6.0 + enable + enable + + + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.Service/BPA.SaaS.Detection.Api.Service.csproj b/src/BPA.SaaS.Detection.Api.Service/BPA.SaaS.Detection.Api.Service.csproj new file mode 100644 index 0000000..c0f3f83 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.Service/BPA.SaaS.Detection.Api.Service.csproj @@ -0,0 +1,16 @@ + + + + net6.0 + enable + enable + + + + + + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.UnitTest/BPA.SaaS.Detection.Api.UnitTest.csproj b/src/BPA.SaaS.Detection.Api.UnitTest/BPA.SaaS.Detection.Api.UnitTest.csproj new file mode 100644 index 0000000..e1015fb --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.UnitTest/BPA.SaaS.Detection.Api.UnitTest.csproj @@ -0,0 +1,7 @@ + + +net6.0 +enable +enable + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.WebApi/BPA.SaaS.Detection.Api.WebApi.csproj b/src/BPA.SaaS.Detection.Api.WebApi/BPA.SaaS.Detection.Api.WebApi.csproj new file mode 100644 index 0000000..be7a466 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.WebApi/BPA.SaaS.Detection.Api.WebApi.csproj @@ -0,0 +1,14 @@ + + + + net6.0 + enable + enable + + + + + + + + \ No newline at end of file diff --git a/src/BPA.SaaS.Detection.Api.WebApi/Program.cs b/src/BPA.SaaS.Detection.Api.WebApi/Program.cs new file mode 100644 index 0000000..e2d1548 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.WebApi/Program.cs @@ -0,0 +1,8 @@ +var builder = WebApplication.CreateBuilder(args); +builder.Services.AddControllers(); + +var app = builder.Build(); +app.UseHttpsRedirection(); +app.UseAuthorization(); +app.MapControllers(); +app.Run(); diff --git a/src/BPA.SaaS.Detection.Api.WebApi/Properties/launchSettings.json b/src/BPA.SaaS.Detection.Api.WebApi/Properties/launchSettings.json new file mode 100644 index 0000000..2127f25 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.WebApi/Properties/launchSettings.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:11305", + "sslPort": 44315 + } + }, + "profiles": { + "BPA.SaaS.Stock.Api": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "weatherforecast", + "applicationUrl": "https://localhost:7047;http://localhost:5047", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "weatherforecast", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/BPA.SaaS.Detection.Api.WebApi/appsettings.Development.json b/src/BPA.SaaS.Detection.Api.WebApi/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.WebApi/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/src/BPA.SaaS.Detection.Api.WebApi/appsettings.json b/src/BPA.SaaS.Detection.Api.WebApi/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/src/BPA.SaaS.Detection.Api.WebApi/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/src/nuget.config b/src/nuget.config new file mode 100644 index 0000000..9055637 --- /dev/null +++ b/src/nuget.config @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file