初版入库
commit
ad68f6b75b
@ -0,0 +1,583 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Oo]ut/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.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
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# Note: 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
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable 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
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# 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
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# 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
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# 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/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
*.mp4
|
||||||
|
MySQL/Conf/mysql.cnf
|
||||||
|
MySQL/Data/#ib_16384_0.dblwr
|
||||||
|
MySQL/Data/#ib_16384_1.dblwr
|
||||||
|
MySQL/Data/auto.cnf
|
||||||
|
MySQL/Data/binlog.000013
|
||||||
|
MySQL/Data/binlog.000014
|
||||||
|
MySQL/Data/binlog.000015
|
||||||
|
MySQL/Data/binlog.000016
|
||||||
|
MySQL/Data/binlog.000017
|
||||||
|
MySQL/Data/binlog.000018
|
||||||
|
MySQL/Data/binlog.000019
|
||||||
|
MySQL/Data/binlog.000020
|
||||||
|
MySQL/Data/binlog.000021
|
||||||
|
MySQL/Data/binlog.000022
|
||||||
|
MySQL/Data/binlog.index
|
||||||
|
MySQL/Data/ca-key.pem
|
||||||
|
MySQL/Data/ca.pem
|
||||||
|
MySQL/Data/client-cert.pem
|
||||||
|
MySQL/Data/client-key.pem
|
||||||
|
MySQL/Data/ib_buffer_pool
|
||||||
|
MySQL/Data/ibdata1
|
||||||
|
MySQL/Data/ibtmp1
|
||||||
|
MySQL/Data/mysql-bin.000001
|
||||||
|
MySQL/Data/mysql-bin.000002
|
||||||
|
MySQL/Data/mysql-bin.000003
|
||||||
|
MySQL/Data/mysql-bin.000004
|
||||||
|
MySQL/Data/mysql-bin.000005
|
||||||
|
MySQL/Data/mysql-bin.index
|
||||||
|
MySQL/Data/mysql.ibd
|
||||||
|
MySQL/Data/mysql.sock
|
||||||
|
MySQL/Data/private_key.pem
|
||||||
|
MySQL/Data/public_key.pem
|
||||||
|
MySQL/Data/server-cert.pem
|
||||||
|
MySQL/Data/server-key.pem
|
||||||
|
MySQL/Data/undo_001
|
||||||
|
MySQL/Data/undo_002
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo794
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo795_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo796_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo797_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo798_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo799_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo800_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo801_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo802_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo803_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo804_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo805_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo806_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo807_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo808_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo809_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo810_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo811_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo812_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo813_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo814_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo815_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo816_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo817_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo818_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo819_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo820_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo821_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo822_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo823_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo824_tmp
|
||||||
|
MySQL/Data/#innodb_redo/#ib_redo825_tmp
|
||||||
|
MySQL/Data/#innodb_temp/temp_1.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_2.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_3.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_4.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_5.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_6.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_7.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_8.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_9.ibt
|
||||||
|
MySQL/Data/#innodb_temp/temp_10.ibt
|
||||||
|
MySQL/Data/lsdb/cap_man.ibd
|
||||||
|
MySQL/Data/lsdb/cap_people.ibd
|
||||||
|
MySQL/Data/lsdb/cap_woman.ibd
|
||||||
|
MySQL/Data/lsdb/cap@002epublished.ibd
|
||||||
|
MySQL/Data/lsdb/cap@002ereceived.ibd
|
||||||
|
MySQL/Data/lsdb/ls_devicedata.ibd
|
||||||
|
MySQL/Data/lsdb/ls_tcpdatalog_20230330.ibd
|
||||||
|
MySQL/Data/lsdb/ls_tcpdatalog_20230331.ibd
|
||||||
|
MySQL/Data/lsdb/ls_tcpdatalog_20230401.ibd
|
||||||
|
MySQL/Data/lsdb/ls_tcpdatalog_20230402.ibd
|
||||||
|
MySQL/Data/lsdb/ls_tcpdatalog_20230403.ibd
|
||||||
|
MySQL/Data/lsdb/tprz_device.ibd
|
||||||
|
MySQL/Data/lsdb/zl_install_20230101.ibd
|
||||||
|
MySQL/Data/lsdb/zl_installstep_20230101.ibd
|
||||||
|
MySQL/Data/lsdb/zl_maintenance_20230101.ibd
|
||||||
|
MySQL/Data/lsdb/zl_param.ibd
|
||||||
|
MySQL/Data/lsdb/zl_product.ibd
|
||||||
|
MySQL/Data/mysql/general_log_213.sdi
|
||||||
|
MySQL/Data/mysql/general_log.CSM
|
||||||
|
MySQL/Data/mysql/general_log.CSV
|
||||||
|
MySQL/Data/mysql/slow_log_214.sdi
|
||||||
|
MySQL/Data/mysql/slow_log.CSM
|
||||||
|
MySQL/Data/mysql/slow_log.CSV
|
||||||
|
MySQL/Data/performance_schema/accounts_145.sdi
|
||||||
|
MySQL/Data/performance_schema/binary_log_trans_189.sdi
|
||||||
|
MySQL/Data/performance_schema/cond_instances_82.sdi
|
||||||
|
MySQL/Data/performance_schema/data_lock_waits_161.sdi
|
||||||
|
MySQL/Data/performance_schema/data_locks_160.sdi
|
||||||
|
MySQL/Data/performance_schema/error_log_83.sdi
|
||||||
|
MySQL/Data/performance_schema/events_errors_su_139.sdi
|
||||||
|
MySQL/Data/performance_schema/events_errors_su_140.sdi
|
||||||
|
MySQL/Data/performance_schema/events_errors_su_141.sdi
|
||||||
|
MySQL/Data/performance_schema/events_errors_su_142.sdi
|
||||||
|
MySQL/Data/performance_schema/events_errors_su_143.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_cu_111.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_hi_112.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_hi_113.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_su_114.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_su_115.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_su_116.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_su_117.sdi
|
||||||
|
MySQL/Data/performance_schema/events_stages_su_118.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_119.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_120.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_121.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_122.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_123.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_124.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_125.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_126.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_127.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_128.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_129.sdi
|
||||||
|
MySQL/Data/performance_schema/events_statement_130.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_131.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_132.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_133.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_134.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_135.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_136.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_137.sdi
|
||||||
|
MySQL/Data/performance_schema/events_transacti_138.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_cur_84.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_his_85.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_his_86.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_sum_87.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_sum_88.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_sum_89.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_sum_90.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_sum_91.sdi
|
||||||
|
MySQL/Data/performance_schema/events_waits_sum_92.sdi
|
||||||
|
MySQL/Data/performance_schema/file_instances_93.sdi
|
||||||
|
MySQL/Data/performance_schema/file_summary_by__94.sdi
|
||||||
|
MySQL/Data/performance_schema/file_summary_by__95.sdi
|
||||||
|
MySQL/Data/performance_schema/global_status_181.sdi
|
||||||
|
MySQL/Data/performance_schema/global_variables_184.sdi
|
||||||
|
MySQL/Data/performance_schema/host_cache_96.sdi
|
||||||
|
MySQL/Data/performance_schema/hosts_146.sdi
|
||||||
|
MySQL/Data/performance_schema/keyring_componen_191.sdi
|
||||||
|
MySQL/Data/performance_schema/keyring_keys_152.sdi
|
||||||
|
MySQL/Data/performance_schema/log_status_174.sdi
|
||||||
|
MySQL/Data/performance_schema/memory_summary_b_154.sdi
|
||||||
|
MySQL/Data/performance_schema/memory_summary_b_155.sdi
|
||||||
|
MySQL/Data/performance_schema/memory_summary_b_156.sdi
|
||||||
|
MySQL/Data/performance_schema/memory_summary_b_157.sdi
|
||||||
|
MySQL/Data/performance_schema/memory_summary_g_153.sdi
|
||||||
|
MySQL/Data/performance_schema/metadata_locks_159.sdi
|
||||||
|
MySQL/Data/performance_schema/mutex_instances_97.sdi
|
||||||
|
MySQL/Data/performance_schema/objects_summary__98.sdi
|
||||||
|
MySQL/Data/performance_schema/performance_time_99.sdi
|
||||||
|
MySQL/Data/performance_schema/persisted_variab_187.sdi
|
||||||
|
MySQL/Data/performance_schema/prepared_stateme_175.sdi
|
||||||
|
MySQL/Data/performance_schema/processlist_100.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_appl_165.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_appl_166.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_appl_167.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_appl_168.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_appl_170.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_appl_171.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_asyn_172.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_asyn_173.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_conn_162.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_conn_164.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_grou_163.sdi
|
||||||
|
MySQL/Data/performance_schema/replication_grou_169.sdi
|
||||||
|
MySQL/Data/performance_schema/rwlock_instances_101.sdi
|
||||||
|
MySQL/Data/performance_schema/session_account__151.sdi
|
||||||
|
MySQL/Data/performance_schema/session_connect__150.sdi
|
||||||
|
MySQL/Data/performance_schema/session_status_182.sdi
|
||||||
|
MySQL/Data/performance_schema/session_variable_185.sdi
|
||||||
|
MySQL/Data/performance_schema/setup_actors_102.sdi
|
||||||
|
MySQL/Data/performance_schema/setup_consumers_103.sdi
|
||||||
|
MySQL/Data/performance_schema/setup_instrument_104.sdi
|
||||||
|
MySQL/Data/performance_schema/setup_objects_105.sdi
|
||||||
|
MySQL/Data/performance_schema/setup_threads_106.sdi
|
||||||
|
MySQL/Data/performance_schema/socket_instances_147.sdi
|
||||||
|
MySQL/Data/performance_schema/socket_summary_b_148.sdi
|
||||||
|
MySQL/Data/performance_schema/socket_summary_b_149.sdi
|
||||||
|
MySQL/Data/performance_schema/status_by_accoun_177.sdi
|
||||||
|
MySQL/Data/performance_schema/status_by_host_178.sdi
|
||||||
|
MySQL/Data/performance_schema/status_by_thread_179.sdi
|
||||||
|
MySQL/Data/performance_schema/status_by_user_180.sdi
|
||||||
|
MySQL/Data/performance_schema/table_handles_158.sdi
|
||||||
|
MySQL/Data/performance_schema/table_io_waits_s_107.sdi
|
||||||
|
MySQL/Data/performance_schema/table_io_waits_s_108.sdi
|
||||||
|
MySQL/Data/performance_schema/table_lock_waits_109.sdi
|
||||||
|
MySQL/Data/performance_schema/threads_110.sdi
|
||||||
|
MySQL/Data/performance_schema/tls_channel_stat_190.sdi
|
||||||
|
MySQL/Data/performance_schema/user_defined_fun_188.sdi
|
||||||
|
MySQL/Data/performance_schema/user_variables_b_176.sdi
|
||||||
|
MySQL/Data/performance_schema/users_144.sdi
|
||||||
|
MySQL/Data/performance_schema/variables_by_thr_183.sdi
|
||||||
|
MySQL/Data/performance_schema/variables_info_186.sdi
|
||||||
|
MySQL/Data/sys/sys_config.ibd
|
||||||
|
MySQL/Data/ymdb/wh_bill_data.ibd
|
||||||
|
MySQL/Data/ymdb/wh_bill.ibd
|
||||||
|
MySQL/Data/ymdb/wh_material.ibd
|
||||||
|
MySQL/Data/ymdb/wh_warehouse_manager.ibd
|
||||||
|
MySQL/Data/ymdb/wh_warehouse.ibd
|
||||||
|
MySQL/Data/zklt/database_source.ibd
|
||||||
|
Redis/redis.conf
|
@ -0,0 +1 @@
|
|||||||
|
start "gateway" cmd /k docker build -f GatewayAPI\Dockerfile -t gateway:latest .
|
@ -0,0 +1 @@
|
|||||||
|
start "lansheng" cmd /k docker build -f Lansheng\LanShengAPI\Dockerfile -t lansheng:latest .
|
@ -0,0 +1 @@
|
|||||||
|
start "zhonglian" cmd /k docker build -f ZhongLian\ZhongLianAPI\Dockerfile -t zhonglian:latest .
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,23 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Dapr.AspNetCore" Version="1.9.0" />
|
||||||
|
<PackageReference Include="Dapr.Client" Version="1.9.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
|
||||||
|
<PackageReference Include="NewLife.Redis" Version="5.2.2023.301" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
|
||||||
|
<PackageReference Include="StackExchange.Redis" Version="2.6.96" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\CommonExtend\CommonExtend.csproj" />
|
||||||
|
<ProjectReference Include="..\CacheInterface\CacheInterface.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,14 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Dapr.Client" Version="1.9.0" />
|
||||||
|
<PackageReference Include="DotNetty.Buffers" Version="0.7.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"CommonModel": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"applicationUrl": "https://localhost:64279;http://localhost:64282"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
# 本地测试请修改hosts文件
|
||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Component
|
||||||
|
metadata:
|
||||||
|
name: rabbitmq-pubsub
|
||||||
|
spec:
|
||||||
|
type: pubsub.rabbitmq
|
||||||
|
version: v1
|
||||||
|
metadata:
|
||||||
|
# rabbitmq地址
|
||||||
|
- name: host
|
||||||
|
value: "amqp://rabbitmq:5672"
|
||||||
|
# 消息持久化
|
||||||
|
- name: durable
|
||||||
|
value: "true"
|
||||||
|
# 是否自动删除
|
||||||
|
- name: deletedWhenUnused
|
||||||
|
value: "false"
|
||||||
|
# 持久模型
|
||||||
|
- name: deliveryMode
|
||||||
|
value: "2"
|
||||||
|
# 预提消息数
|
||||||
|
- name: prefetchCount
|
||||||
|
value: "10"
|
||||||
|
# 重试等待时间
|
||||||
|
- name: reconnectWait
|
||||||
|
value: "3"
|
||||||
|
# 并行处理
|
||||||
|
- name: concurrencyMode
|
||||||
|
value: parallel
|
@ -0,0 +1,13 @@
|
|||||||
|
# 本地测试请修改hosts文件
|
||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Component
|
||||||
|
metadata:
|
||||||
|
name: redis-pubsub
|
||||||
|
spec:
|
||||||
|
type: pubsub.redis
|
||||||
|
version: v1
|
||||||
|
metadata:
|
||||||
|
- name: redisHost
|
||||||
|
value: redis:6379
|
||||||
|
- name: redisPassword
|
||||||
|
value: ""
|
@ -0,0 +1,10 @@
|
|||||||
|
# 本地测试请修改hosts文件
|
||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Configuration
|
||||||
|
metadata:
|
||||||
|
name: daprConfig
|
||||||
|
spec:
|
||||||
|
tracing:
|
||||||
|
samplingRate: "1"
|
||||||
|
zipkin:
|
||||||
|
endpointAddress: http://zipkin:9411/api/v2/spans
|
@ -0,0 +1,379 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
# Dapr Actor 服务
|
||||||
|
placement:
|
||||||
|
container_name: placement
|
||||||
|
hostname: placement
|
||||||
|
image: "daprio/dapr:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: ["./placement", "-port", "6050"]
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
|
||||||
|
# Dapr zipkin 检测
|
||||||
|
zipkin:
|
||||||
|
container_name: zipkin
|
||||||
|
hostname: zipkin
|
||||||
|
image: "openzipkin/zipkin:2.23.19"
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "9411:9411"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
|
||||||
|
gateway:
|
||||||
|
# container_name: gateway
|
||||||
|
image: "gateway:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
ports:
|
||||||
|
- "5330:5330"
|
||||||
|
# 应用启动时的地址
|
||||||
|
environment:
|
||||||
|
- "ASPNETCORE_URLS=http://*:5330;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
gateway-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
# restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "gateway",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "5330" ,
|
||||||
|
"-dapr-http-port","6330",
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
depends_on:
|
||||||
|
- gateway
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:gateway"
|
||||||
|
|
||||||
|
auth:
|
||||||
|
# container_name: zhonglian
|
||||||
|
image: "auth:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
# ports:
|
||||||
|
# - "5027:80"
|
||||||
|
# 应用启动时的地址
|
||||||
|
# environment:
|
||||||
|
# - "ASPNETCORE_URLS=http://*:8081;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
#volumes:
|
||||||
|
# - "/usr/share/zoneinfo/Asia/Shanghai:/etc/localtime"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
auth-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "auth",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- auth
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:auth"
|
||||||
|
|
||||||
|
crm:
|
||||||
|
# container_name: zhonglian
|
||||||
|
image: "crm:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
# ports:
|
||||||
|
# - "5027:80"
|
||||||
|
# 应用启动时的地址
|
||||||
|
# environment:
|
||||||
|
# - "ASPNETCORE_URLS=http://*:8081;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
#volumes:
|
||||||
|
# - "/usr/share/zoneinfo/Asia/Shanghai:/etc/localtime"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
crm-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "crm",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- crm
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:crm"
|
||||||
|
|
||||||
|
drive:
|
||||||
|
# container_name: zhonglian
|
||||||
|
image: "drive:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
# ports:
|
||||||
|
# - "5027:80"
|
||||||
|
# 应用启动时的地址
|
||||||
|
# environment:
|
||||||
|
# - "ASPNETCORE_URLS=http://*:8081;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
#volumes:
|
||||||
|
# - "/usr/share/zoneinfo/Asia/Shanghai:/etc/localtime"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
drive-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "drive",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- drive
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:drive"
|
||||||
|
|
||||||
|
tprz:
|
||||||
|
# container_name: zhonglian
|
||||||
|
image: "tprz:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
# ports:
|
||||||
|
# - "5027:80"
|
||||||
|
# 应用启动时的地址
|
||||||
|
# environment:
|
||||||
|
# - "ASPNETCORE_URLS=http://*:8081;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
#volumes:
|
||||||
|
# - "/usr/share/zoneinfo/Asia/Shanghai:/etc/localtime"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
tprz-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "tprz",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- tprz
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:tprz"
|
||||||
|
|
||||||
|
wms:
|
||||||
|
# container_name: zhonglian
|
||||||
|
image: "wms:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
# ports:
|
||||||
|
# - "5027:80"
|
||||||
|
# 应用启动时的地址
|
||||||
|
# environment:
|
||||||
|
# - "ASPNETCORE_URLS=http://*:8081;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
#volumes:
|
||||||
|
# - "/usr/share/zoneinfo/Asia/Shanghai:/etc/localtime"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
wms-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "wms",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- wms
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:wms"
|
||||||
|
|
||||||
|
bw:
|
||||||
|
# container_name: zhonglian
|
||||||
|
image: "bw:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
# ports:
|
||||||
|
# - "5027:80"
|
||||||
|
# 应用启动时的地址
|
||||||
|
# environment:
|
||||||
|
# - "ASPNETCORE_URLS=http://*:8081;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
#volumes:
|
||||||
|
# - "/usr/share/zoneinfo/Asia/Shanghai:/etc/localtime"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
bw-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "bw",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- bw
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:bw"
|
||||||
|
|
||||||
|
zhonglian:
|
||||||
|
# container_name: zhonglian
|
||||||
|
image: "zhonglian:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
# ports:
|
||||||
|
# - "5027:80"
|
||||||
|
# 应用启动时的地址
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
zhonglian-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "zhonglian",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- zhonglian
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:zhonglian"
|
||||||
|
|
||||||
|
lansheng:
|
||||||
|
image: "lansheng:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
ports:
|
||||||
|
- "9001:9001"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
lansheng-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "lansheng",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- lansheng
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:lansheng"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
fy:
|
||||||
|
db:
|
||||||
|
external: true
|
||||||
|
mq:
|
||||||
|
external: true
|
||||||
|
cache:
|
||||||
|
external: true
|
@ -0,0 +1,103 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
# Dapr Actor 服务
|
||||||
|
placement:
|
||||||
|
container_name: placement
|
||||||
|
hostname: placement
|
||||||
|
image: "daprio/dapr:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: ["./placement", "-port", "6050"]
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
|
||||||
|
# Dapr zipkin 检测
|
||||||
|
zipkin:
|
||||||
|
container_name: zipkin
|
||||||
|
hostname: zipkin
|
||||||
|
image: "openzipkin/zipkin:2.23.19"
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "9411:9411"
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
|
||||||
|
gateway:
|
||||||
|
# container_name: gateway
|
||||||
|
image: "gateway:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
ports:
|
||||||
|
- "5330:5330"
|
||||||
|
# 应用启动时的地址
|
||||||
|
environment:
|
||||||
|
- "ASPNETCORE_URLS=http://*:5330;"
|
||||||
|
depends_on:
|
||||||
|
- placement
|
||||||
|
- zipkin
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
gateway-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
# restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "gateway",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "5330" ,
|
||||||
|
"-dapr-http-port","6330",
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
depends_on:
|
||||||
|
- gateway
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:gateway"
|
||||||
|
|
||||||
|
lansheng:
|
||||||
|
image: "lansheng:latest"
|
||||||
|
restart: always
|
||||||
|
# 端口映射
|
||||||
|
ports:
|
||||||
|
- "9001:9001"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
- fy
|
||||||
|
- mq
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
|
|
||||||
|
lansheng-dapr:
|
||||||
|
image: "daprio/daprd:1.9.5"
|
||||||
|
restart: always
|
||||||
|
command: [ "./daprd", "-app-id", "lansheng",
|
||||||
|
# 应用端口号
|
||||||
|
"-app-port", "80" ,
|
||||||
|
"-placement-host-address","placement:6050",
|
||||||
|
# dapr 配置文件
|
||||||
|
"-config","/Dapr/config.yaml",
|
||||||
|
# dapr 组件
|
||||||
|
"-components-path", "/Dapr/Components"]
|
||||||
|
# 数据持久化 - [卷标名称]:/var/lib/mysql 或者 - [直接使用宿主机的本地路径]:/var/lib/mysql
|
||||||
|
depends_on:
|
||||||
|
- lansheng
|
||||||
|
volumes:
|
||||||
|
- "../Dapr:/Dapr"
|
||||||
|
# 工作模型:绑定边车匹配的应用服务名
|
||||||
|
network_mode: "service:lansheng"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
fy:
|
||||||
|
db:
|
||||||
|
external: true
|
||||||
|
mq:
|
||||||
|
external: true
|
||||||
|
cache:
|
||||||
|
external: true
|
@ -0,0 +1,60 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
# Dapr Actor 服务
|
||||||
|
redis:
|
||||||
|
container_name: redis
|
||||||
|
hostname: redis
|
||||||
|
image: "redis:6"
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 6379:6379
|
||||||
|
environment:
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
volumes:
|
||||||
|
- ../Redis/redis.conf:/etc/redis/redis.conf
|
||||||
|
- ../Redis/data:/data
|
||||||
|
- ../Redis/logs:/logs
|
||||||
|
command: ["redis-server","/etc/redis/redis.conf"]
|
||||||
|
networks:
|
||||||
|
- cache
|
||||||
|
|
||||||
|
rabbitmq:
|
||||||
|
container_name: rabbitmq
|
||||||
|
hostname: rabbitmq
|
||||||
|
image: "rabbitmq:3.9.26-management"
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 5672:5672
|
||||||
|
- 15672:15672
|
||||||
|
environment:
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
networks:
|
||||||
|
- mq
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
container_name: mysql
|
||||||
|
hostname: mysql
|
||||||
|
image: "mysql:8"
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: root
|
||||||
|
MYSQL_DATABASE: lsdb
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
volumes:
|
||||||
|
- ../MySQL/Data:/var/lib/mysql
|
||||||
|
- ../Mysql/Conf:/etc/mysql/conf.d/
|
||||||
|
command:
|
||||||
|
--lower_case_table_names=1
|
||||||
|
networks:
|
||||||
|
- db
|
||||||
|
|
||||||
|
networks:
|
||||||
|
db:
|
||||||
|
external: true
|
||||||
|
mq:
|
||||||
|
external: true
|
||||||
|
cache:
|
||||||
|
external: true
|
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"isRoot": true,
|
||||||
|
"tools": {
|
||||||
|
"dotnet-ef": {
|
||||||
|
"version": "7.0.3",
|
||||||
|
"commands": [
|
||||||
|
"dotnet-ef"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" >/etc/timezone
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY ["GatewayAPI/GatewayAPI.csproj", "GatewayAPI/"]
|
||||||
|
RUN dotnet restore "GatewayAPI/GatewayAPI.csproj"
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/src/GatewayAPI"
|
||||||
|
RUN dotnet build "GatewayAPI.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "GatewayAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
ENTRYPOINT ["dotnet", "GatewayAPI.dll"]
|
@ -0,0 +1,20 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" />
|
||||||
|
<PackageReference Include="Ocelot" Version="18.0.0" />
|
||||||
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Controllers\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,48 @@
|
|||||||
|
using Microsoft.AspNetCore.Http.Features;
|
||||||
|
using Microsoft.AspNetCore.Server.Kestrel.Core;
|
||||||
|
using Ocelot.DependencyInjection;
|
||||||
|
using Ocelot.Middleware;
|
||||||
|
|
||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
// Add services to the container.
|
||||||
|
#region Cors跨域
|
||||||
|
builder.Services.AddCors(options =>
|
||||||
|
{
|
||||||
|
options.AddPolicy("all", builder =>
|
||||||
|
{
|
||||||
|
builder.SetIsOriginAllowed(origin => true) //允许任何来源的主机访问
|
||||||
|
.AllowAnyMethod()
|
||||||
|
.AllowAnyHeader()
|
||||||
|
.AllowCredentials();//指定处理cookie
|
||||||
|
});
|
||||||
|
});
|
||||||
|
#endregion
|
||||||
|
#region Body长度
|
||||||
|
builder.Services.Configure<KestrelServerOptions>(options =>
|
||||||
|
{
|
||||||
|
options.Limits.MaxRequestBodySize = null;//不做限制
|
||||||
|
});
|
||||||
|
builder.Services.Configure<IISServerOptions>(options =>
|
||||||
|
{
|
||||||
|
options.MaxRequestBodySize = null;//不做限制
|
||||||
|
});
|
||||||
|
builder.Services.Configure<FormOptions>(x =>
|
||||||
|
{
|
||||||
|
x.ValueLengthLimit = int.MaxValue;
|
||||||
|
x.MultipartBodyLengthLimit = int.MaxValue;
|
||||||
|
x.MultipartHeadersLengthLimit = int.MaxValue;
|
||||||
|
});
|
||||||
|
#endregion
|
||||||
|
builder.Services.AddOcelot(builder.Configuration);
|
||||||
|
|
||||||
|
var app = builder.Build();
|
||||||
|
#region Cors跨域
|
||||||
|
app.UseCors("all");
|
||||||
|
#endregion
|
||||||
|
app.UseWebSockets();
|
||||||
|
app.UseOcelot((build, cfg) =>
|
||||||
|
{
|
||||||
|
build.BuildOcelotPipeline(cfg);
|
||||||
|
}).Wait();
|
||||||
|
app.Run();
|
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"GatewayAPI": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"applicationUrl": "http://localhost:5080"
|
||||||
|
},
|
||||||
|
"IIS Express": {
|
||||||
|
"commandName": "IISExpress",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Docker": {
|
||||||
|
"commandName": "Docker",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
|
||||||
|
"publishAllPorts": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||||
|
"iisSettings": {
|
||||||
|
"windowsAuthentication": false,
|
||||||
|
"anonymousAuthentication": true,
|
||||||
|
"iisExpress": {
|
||||||
|
"applicationUrl": "http://localhost:16737",
|
||||||
|
"sslPort": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"Routes": [
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/v1.0/invoke/{app}/method/api/{url}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": "6330"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{app}/api/{url}",
|
||||||
|
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
|
||||||
|
"Priority": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/v1.0/invoke/lansheng/method/api/device/{url}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": "6330"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/ry/api/gpsdata/{url}",
|
||||||
|
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
|
||||||
|
"Priority": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/2WaoDPVQth.txt",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "tprz",
|
||||||
|
"Port": "80"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/2WaoDPVQth.txt",
|
||||||
|
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
|
||||||
|
"Priority": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/Scanner.mp4",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "tprz",
|
||||||
|
"Port": "80"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/Scanner.mp4",
|
||||||
|
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
|
||||||
|
"Priority": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{target}/{device}/preview/{stream}",
|
||||||
|
"DownstreamScheme": "ws",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "bw",
|
||||||
|
"Port": "80"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/bw/{target}/{device}/preview/{stream}",
|
||||||
|
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{url}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": "5027"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/zhonglian/{url}",
|
||||||
|
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
|
||||||
|
"Priority": 10
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" >/etc/timezone
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY ["LanSheng/LanShengAPI/LanShengAPI.csproj", "LanSheng/LanShengAPI/"]
|
||||||
|
COPY ["LanSheng/LanShengService/LanShengService.csproj", "LanSheng/LanShengService/"]
|
||||||
|
COPY ["Cache/CacheService/CacheService.csproj", "Cache/CacheService/"]
|
||||||
|
COPY ["CommonExtend/CommonExtend.csproj", "CommonExtend/"]
|
||||||
|
COPY ["Cache/CacheInterface/CacheInterface.csproj", "Cache/CacheInterface/"]
|
||||||
|
COPY ["CommonModel/CommonModel.csproj", "CommonModel/"]
|
||||||
|
COPY ["LanSheng/LanShengInterface/LanShengInterface.csproj", "LanSheng/LanShengInterface/"]
|
||||||
|
COPY ["LanSheng/LanShengModel/LanShengModel.csproj", "LanSheng/LanShengModel/"]
|
||||||
|
RUN dotnet restore "LanSheng/LanShengAPI/LanShengAPI.csproj"
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/src/LanSheng/LanShengAPI"
|
||||||
|
RUN dotnet build "LanShengAPI.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "LanShengAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
ENTRYPOINT ["dotnet", "LanShengAPI.dll"]
|
@ -0,0 +1,24 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
|
<DockerfileContext>..\..</DockerfileContext>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Dapr.Actors.AspNetCore" Version="1.9.0" />
|
||||||
|
<PackageReference Include="Dapr.AspNetCore" Version="1.9.0" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.13" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.3" />
|
||||||
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.2" />
|
||||||
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\LanShengService\LanShengService.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,29 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Serialization;
|
||||||
|
using LanShengService;
|
||||||
|
|
||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
// Add services to the container.
|
||||||
|
|
||||||
|
builder.Services.AddControllers().AddNewtonsoftJson(options =>
|
||||||
|
{
|
||||||
|
options.SerializerSettings.ContractResolver = new DefaultContractResolver();
|
||||||
|
|
||||||
|
options.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
|
||||||
|
}).AddDapr();
|
||||||
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||||
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
|
builder.Services.AddSwaggerGen();
|
||||||
|
builder.Services.InitLanShengService(builder.Configuration);
|
||||||
|
var app = builder.Build();
|
||||||
|
|
||||||
|
app.UseSwagger();
|
||||||
|
app.UseSwaggerUI();
|
||||||
|
app.UseHttpsRedirection();
|
||||||
|
app.UseRouting();
|
||||||
|
app.UseAuthorization();
|
||||||
|
app.UseStaticFiles();
|
||||||
|
app.MapControllers();
|
||||||
|
app.CreateLanShengService();
|
||||||
|
app.Run();
|
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"http": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"applicationUrl": "http://localhost:5048"
|
||||||
|
},
|
||||||
|
"IIS Express": {
|
||||||
|
"commandName": "IISExpress",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Docker": {
|
||||||
|
"commandName": "Docker",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
|
||||||
|
"publishAllPorts": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||||
|
"iisSettings": {
|
||||||
|
"windowsAuthentication": false,
|
||||||
|
"anonymousAuthentication": true,
|
||||||
|
"iisExpress": {
|
||||||
|
"applicationUrl": "http://localhost:53288",
|
||||||
|
"sslPort": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Debug",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DotNetty": {
|
||||||
|
"Use": "Y",
|
||||||
|
"ThreadPool": 8,
|
||||||
|
"Port": 5888
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"Default": "Data Source=mysql;database=lsdb;User Id=root;Pwd=root;charset=utf8;pooling=true;"
|
||||||
|
},
|
||||||
|
"DotNetty": {
|
||||||
|
"Use": "Y",
|
||||||
|
"ThreadPool": 8,
|
||||||
|
"Port": 9001
|
||||||
|
},
|
||||||
|
"Redis": "redis:6379"
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Dapr.Actors" Version="1.9.0" />
|
||||||
|
<PackageReference Include="DotNetty.Transport" Version="0.7.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\CommonModel\CommonModel.csproj" />
|
||||||
|
<ProjectReference Include="..\LanShengModel\LanShengModel.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,45 @@
|
|||||||
|
/// <summary>
|
||||||
|
/// 设备故障报表
|
||||||
|
/// </summary>
|
||||||
|
public class DeviceErrorReport
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 故障类型
|
||||||
|
/// </summary>
|
||||||
|
public IEnumerable<string>? ErrCodes { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 公司编号
|
||||||
|
/// </summary>
|
||||||
|
public IEnumerable<string>? CompanyIds { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目编号
|
||||||
|
/// </summary>
|
||||||
|
public IEnumerable<string>? ProjectIds { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设备编号
|
||||||
|
/// </summary>
|
||||||
|
public IEnumerable<string>? DeviceIds { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 开始日期
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? StartDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 结束日期
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? EndDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 单元
|
||||||
|
/// </summary>
|
||||||
|
public string? Unit { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 数据集
|
||||||
|
/// </summary>
|
||||||
|
public Dictionary<string, int>? Items { get; set; }
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="DotNetty.Transport" Version="0.7.5" />
|
||||||
|
<PackageReference Include="SqlSugarCore" Version="5.1.3.50" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,33 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ServerGarbageCollection>false</ServerGarbageCollection>
|
||||||
|
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Dapr.Actors.AspNetCore" Version="1.9.0" />
|
||||||
|
<PackageReference Include="DotNetty.Buffers" Version="0.7.5" />
|
||||||
|
<PackageReference Include="DotNetty.Codecs" Version="0.7.5" />
|
||||||
|
<PackageReference Include="DotNetty.Common" Version="0.7.5" />
|
||||||
|
<PackageReference Include="DotNetty.Handlers" Version="0.7.5" />
|
||||||
|
<PackageReference Include="DotNetty.Transport" Version="0.7.5" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
|
||||||
|
<PackageReference Include="SqlSugarCore" Version="5.1.3.50" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Cache\CacheService\CacheService.csproj" />
|
||||||
|
<ProjectReference Include="..\..\CommonExtend\CommonExtend.csproj" />
|
||||||
|
<ProjectReference Include="..\..\CommonModel\CommonModel.csproj" />
|
||||||
|
<ProjectReference Include="..\LanShengInterface\LanShengInterface.csproj" />
|
||||||
|
<ProjectReference Include="..\LanShengModel\LanShengModel.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,25 @@
|
|||||||
|
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" >/etc/timezone
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY ["ZhongLian/ZhongLianAPI/ZhongLianAPI.csproj", "ZhongLian/ZhongLianAPI/"]
|
||||||
|
COPY ["ZhongLian/ZhongLianService/ZhongLianService.csproj", "ZhongLian/ZhongLianService/"]
|
||||||
|
COPY ["CommonModel/CommonModel.csproj", "CommonModel/"]
|
||||||
|
COPY ["ZhongLian/ZhongLianModel/ZhongLianModel.csproj", "ZhongLian/ZhongLianModel/"]
|
||||||
|
RUN dotnet restore "ZhongLian/ZhongLianAPI/ZhongLianAPI.csproj"
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/src/ZhongLian/ZhongLianAPI"
|
||||||
|
RUN dotnet build "ZhongLianAPI.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "ZhongLianAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
ENTRYPOINT ["dotnet", "ZhongLianAPI.dll"]
|
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"ZhongLianAPI": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"applicationUrl": "http://localhost:5027"
|
||||||
|
},
|
||||||
|
"IIS Express": {
|
||||||
|
"commandName": "IISExpress",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Docker": {
|
||||||
|
"commandName": "Docker",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
|
||||||
|
"publishAllPorts": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||||
|
"iisSettings": {
|
||||||
|
"windowsAuthentication": false,
|
||||||
|
"anonymousAuthentication": true,
|
||||||
|
"iisExpress": {
|
||||||
|
"applicationUrl": "http://localhost:52302",
|
||||||
|
"sslPort": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
|
<DockerfileContext>..\..</DockerfileContext>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Dapr.Actors.AspNetCore" Version="1.9.0" />
|
||||||
|
<PackageReference Include="Dapr.AspNetCore" Version="1.9.0" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.13" />
|
||||||
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" />
|
||||||
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\ZhongLianService\ZhongLianService.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Debug",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"Default": "Data Source=124.71.176.44;database=lsdb;User Id=root;Pwd=root;charset=utf8;pooling=true;"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Dapr.Actors" Version="1.9.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\CommonModel\CommonModel.csproj" />
|
||||||
|
<ProjectReference Include="..\ZhongLianModel\ZhongLianModel.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"ZhongLianModel": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"applicationUrl": "https://localhost:64277;http://localhost:64280"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="SqlSugarCore" Version="5.1.3.50" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue