浏览代码

initial

master
stevelee 2 年前
当前提交
901516ddd7
共有 21 个文件被更改,包括 686 次插入0 次删除
  1. +266
    -0
      .gitignore
  2. +122
    -0
      BPA.SaaS.Marketing.Api.sln
  3. +1
    -0
      README.md
  4. +33
    -0
      src/.pack/BPA.SaaS.Marketing.Api.SDK.nuspec
  5. +41
    -0
      src/.pack/pack.sh
  6. +22
    -0
      src/BPA.SaaS.Marketing.Api.Bootstrap/BPA.SaaS.Marketing.Api.Bootstrap.csproj
  7. +11
    -0
      src/BPA.SaaS.Marketing.Api.DTO/BPA.SaaS.Marketing.Api.DTO.csproj
  8. +11
    -0
      src/BPA.SaaS.Marketing.Api.Entity/BPA.SaaS.Marketing.Api.Entity.csproj
  9. +14
    -0
      src/BPA.SaaS.Marketing.Api.IRepository/BPA.SaaS.Marketing.Api.IRepository.csproj
  10. +11
    -0
      src/BPA.SaaS.Marketing.Api.IService/BPA.SaaS.Marketing.Api.IService.csproj
  11. +17
    -0
      src/BPA.SaaS.Marketing.Api.Model/BPA.SaaS.Marketing.Api.Model.csproj
  12. +17
    -0
      src/BPA.SaaS.Marketing.Api.Repository/BPA.SaaS.Marketing.Api.Repository.csproj
  13. +13
    -0
      src/BPA.SaaS.Marketing.Api.SDK/BPA.SaaS.Marketing.Api.SDK.csproj
  14. +16
    -0
      src/BPA.SaaS.Marketing.Api.Service/BPA.SaaS.Marketing.Api.Service.csproj
  15. +7
    -0
      src/BPA.SaaS.Marketing.Api.UnitTest/BPA.SaaS.Marketing.Api.UnitTest.csproj
  16. +14
    -0
      src/BPA.SaaS.Marketing.Api.WebApi/BPA.SaaS.Marketing.Api.WebApi.csproj
  17. +8
    -0
      src/BPA.SaaS.Marketing.Api.WebApi/Program.cs
  18. +31
    -0
      src/BPA.SaaS.Marketing.Api.WebApi/Properties/launchSettings.json
  19. +8
    -0
      src/BPA.SaaS.Marketing.Api.WebApi/appsettings.Development.json
  20. +9
    -0
      src/BPA.SaaS.Marketing.Api.WebApi/appsettings.json
  21. +14
    -0
      src/nuget.config

+ 266
- 0
.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


+ 122
- 0
BPA.SaaS.Marketing.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.Marketing.Api.WebApi", "src\BPA.SaaS.Marketing.Api.WebApi\BPA.SaaS.Marketing.Api.WebApi.csproj", "{C0A71B54-B372-4584-A309-2656AAD8AE77}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BPA.SaaS.Marketing.Api.IService", "src\BPA.SaaS.Marketing.Api.IService\BPA.SaaS.Marketing.Api.IService.csproj", "{FC9FEF89-25A9-464F-99F9-F460B8274397}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BPA.SaaS.Marketing.Api.Service", "src\BPA.SaaS.Marketing.Api.Service\BPA.SaaS.Marketing.Api.Service.csproj", "{9988A2A4-1FA3-4A3D-9CF7-09398452B227}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.Repository", "src\BPA.SaaS.Marketing.Api.Repository\BPA.SaaS.Marketing.Api.Repository.csproj", "{C20119F3-DF66-4E04-9C44-43340297B6DA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.IRepository", "src\BPA.SaaS.Marketing.Api.IRepository\BPA.SaaS.Marketing.Api.IRepository.csproj", "{6CF90886-5298-4F15-88AA-CAD9BC3232B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.Entity", "src\BPA.SaaS.Marketing.Api.Entity\BPA.SaaS.Marketing.Api.Entity.csproj", "{7B376AE6-4C6C-4A82-A014-61F86C690ECE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.DTO", "src\BPA.SaaS.Marketing.Api.DTO\BPA.SaaS.Marketing.Api.DTO.csproj", "{B5E077A6-B4BA-42D0-B959-4604014F0E69}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.Model", "src\BPA.SaaS.Marketing.Api.Model\BPA.SaaS.Marketing.Api.Model.csproj", "{550C7F6F-2254-4BB1-9330-71ACA050861A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.SDK", "src\BPA.SaaS.Marketing.Api.SDK\BPA.SaaS.Marketing.Api.SDK.csproj", "{4F48E97A-2DC3-4720-98F7-25935258D79C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.Bootstrap", "src\BPA.SaaS.Marketing.Api.Bootstrap\BPA.SaaS.Marketing.Api.Bootstrap.csproj", "{CFDFD099-D03F-441A-A3CD-28C7320742C5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.SaaS.Marketing.Api.UnitTest", "src\BPA.SaaS.Marketing.Api.UnitTest\BPA.SaaS.Marketing.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

+ 1
- 0
README.md 查看文件

@@ -0,0 +1 @@
# BPA.Project

+ 33
- 0
src/.pack/BPA.SaaS.Marketing.Api.SDK.nuspec 查看文件

@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>{name}.SDK</id>
<version>1.0.1</version>
<description>
<![CDATA[{name}]]>
</description>
<tags>{name}</tags>
<authors>stevelee</authors>
<dependencies>
<group targetFramework=".net6"/>
</dependencies>
<contentFiles>
<files include="any/any/*/*" buildAction="None" copyToOutput="true" flatten="true"/>
</contentFiles>
</metadata>
<!-->执行打包命令前,先保证DTO,SDK的PDB,XML,DLL文件是否已经输出到Release目录下<-->
<files>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.SDK.XML" target="contentFiles/any/any/.ps"/>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.SDK.pdb" target="contentFiles/any/any/.ps"/>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.DTO.XML" target="contentFiles/any/any/.ps"/>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.DTO.pdb" target="contentFiles/any/any/.ps"/>

<file src="..\{name}.SDK\bin\Release\net6.0\{name}.SDK.dll" target="lib\net6.0"/>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.SDK.pdb" target="lib\net6.0"/>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.SDK.XML" target="lib\net6.0"/>

<file src="..\{name}.SDK\bin\Release\net6.0\{name}.DTO.dll" target="lib\net6.0"/>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.DTO.pdb" target="lib\net6.0"/>
<file src="..\{name}.SDK\bin\Release\net6.0\{name}.DTO.XML" target="lib\net6.0"/>
</files>
</package>

+ 41
- 0
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="<version>${package_version}</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}

+ 22
- 0
src/BPA.SaaS.Marketing.Api.Bootstrap/BPA.SaaS.Marketing.Api.Bootstrap.csproj 查看文件

@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="6.2.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.2.3" />
<PackageReference Include="BPA.Component.CAP.RabbitMQ" Version="1.0.2" />
<PackageReference Include="BPA.Component.DTOCommon" Version="1.0.6" />
<PackageReference Include="BPA.Component.Extensions" Version="1.0.3" />
<PackageReference Include="BPA.Component.WebApiExtensions" Version="1.0.8" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.DTO\BPA.SaaS.Marketing.Api.DTO.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Model\BPA.SaaS.Marketing.Api.Model.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Service\BPA.SaaS.Marketing.Api.Service.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Repository\BPA.SaaS.Marketing.Api.Repository.csproj" />
</ItemGroup>
</Project>

+ 11
- 0
src/BPA.SaaS.Marketing.Api.DTO/BPA.SaaS.Marketing.Api.DTO.csproj 查看文件

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BPA.Component.DTOCommon" Version="1.0.5" />
</ItemGroup>
</Project>

+ 11
- 0
src/BPA.SaaS.Marketing.Api.Entity/BPA.SaaS.Marketing.Api.Entity.csproj 查看文件

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BPA.Common.Entity" Version="1.0.2" />
</ItemGroup>
</Project>

+ 14
- 0
src/BPA.SaaS.Marketing.Api.IRepository/BPA.SaaS.Marketing.Api.IRepository.csproj 查看文件

@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BPA.Component.DbClient" Version="1.0.6" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.DTO\BPA.SaaS.Marketing.Api.DTO.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Model\BPA.SaaS.Marketing.Api.Model.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Entity\BPA.SaaS.Marketing.Api.Entity.csproj" />
</ItemGroup>
</Project>

+ 11
- 0
src/BPA.SaaS.Marketing.Api.IService/BPA.SaaS.Marketing.Api.IService.csproj 查看文件

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.DTO\BPA.SaaS.Marketing.Api.DTO.csproj" />
</ItemGroup>
</Project>

+ 17
- 0
src/BPA.SaaS.Marketing.Api.Model/BPA.SaaS.Marketing.Api.Model.csproj 查看文件

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BPA.Component.ApolloClient" Version="1.0.3" />
<PackageReference Include="BPA.Component.LogClient" Version="1.0.3" />
<PackageReference Include="BPA.Component.MongoClient" Version="1.0.3" />
<PackageReference Include="BPA.Component.RabbitMQClient" Version="1.0.7" />
<PackageReference Include="BPA.Component.RedisClient" Version="1.0.3" />
<PackageReference Include="BPA.Component.Extensions" Version="1.0.3" />
<PackageReference Include="BPA.Component.DbClient" Version="1.0.6" />
</ItemGroup>
</Project>

+ 17
- 0
src/BPA.SaaS.Marketing.Api.Repository/BPA.SaaS.Marketing.Api.Repository.csproj 查看文件

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BPA.Component.Extensions" Version="1.0.3" />
<PackageReference Include="BPA.Component.SDKCommon" Version="1.0.3" />
<PackageReference Include="BPA.Common.Entity" Version="1.0.2" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.DTO\BPA.SaaS.Marketing.Api.DTO.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Model\BPA.SaaS.Marketing.Api.Model.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Entity\BPA.SaaS.Marketing.Api.Entity.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.IRepository\BPA.SaaS.Marketing.Api.IRepository.csproj" />
</ItemGroup>
</Project>

+ 13
- 0
src/BPA.SaaS.Marketing.Api.SDK/BPA.SaaS.Marketing.Api.SDK.csproj 查看文件

@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.DTO\BPA.SaaS.Marketing.Api.DTO.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.IService\BPA.SaaS.Marketing.Api.IService.csproj" />
<PackageReference Include="BPA.Component.SDKCommon" Version="1.0.3" />
</ItemGroup>
</Project>

+ 16
- 0
src/BPA.SaaS.Marketing.Api.Service/BPA.SaaS.Marketing.Api.Service.csproj 查看文件

@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BPA.Component.Extensions" Version="1.0.3" />
<PackageReference Include="BPA.Component.SDKCommon" Version="1.0.3" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.DTO\BPA.SaaS.Marketing.Api.DTO.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Model\BPA.SaaS.Marketing.Api.Model.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.IRepository\BPA.SaaS.Marketing.Api.IRepository.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.IService\BPA.SaaS.Marketing.Api.IService.csproj" />
</ItemGroup>
</Project>

+ 7
- 0
src/BPA.SaaS.Marketing.Api.UnitTest/BPA.SaaS.Marketing.Api.UnitTest.csproj 查看文件

@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>

+ 14
- 0
src/BPA.SaaS.Marketing.Api.WebApi/BPA.SaaS.Marketing.Api.WebApi.csproj 查看文件

@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.IService\BPA.SaaS.Marketing.Api.IService.csproj" />
<ProjectReference Include="..\BPA.SaaS.Marketing.Api.Bootstrap\BPA.SaaS.Marketing.Api.Bootstrap.csproj" />
</ItemGroup>
</Project>

+ 8
- 0
src/BPA.SaaS.Marketing.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();

+ 31
- 0
src/BPA.SaaS.Marketing.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"
}
}
}
}

+ 8
- 0
src/BPA.SaaS.Marketing.Api.WebApi/appsettings.Development.json 查看文件

@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

+ 9
- 0
src/BPA.SaaS.Marketing.Api.WebApi/appsettings.json 查看文件

@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}

+ 14
- 0
src/nuget.config 查看文件

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>

<configuration>
<config>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="bpa.com" value="http://10.2.1.25:10243/repository/bpa/index.json" />
</config>
<packageSources>
<add key="bpa.com" value="http://10.2.1.25:10243/repository/bpa/index.json" />
</packageSources>
<apikeys>
<add key="http://10.2.1.25:10243/repository/bpa/" value="83d77c57-167d-304e-a42e-7d0470fca3a5" />
</apikeys>
</configuration>

正在加载...
取消
保存