This commit is contained in:
qianhao.xu 2024-08-19 08:48:54 +08:00
parent ab9e0f48e3
commit f4568e6030
4 changed files with 260 additions and 3 deletions

6
.gitignore vendored
View File

@ -259,14 +259,14 @@ paket-files/
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
/DOAN.Admin.WebApi/appsettings.Development.json
/CodeGenerate
/DOAN.Admin.WebApi/appsettings.Production.json
/DOAN.Admin.WebApi/wwwroot/uploads
/DOAN.Admin.WebApi/wwwroot/Generatecode
/DOAN.Admin.WebApi/wwwroot/export
/DOAN.Vue/src/views/business/Gendemo.vue
/DOAN.Admin.WebApi/Properties/launchSettings.json
/DOAN.Admin.WebApi/DOANAdmin.xml
/DOAN.Admin.WebApi/DataProtection
/Quartz.NET.WindowsService

View File

@ -0,0 +1,30 @@
{
"profiles": {
"DOAN.Admin.WebApi": {
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:8888"
},
"Container (Dockerfile)": {
"commandName": "Docker",
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"environmentVariables": {
"ASPNETCORE_URLS": "https://+:443;http://+:80"
},
"publishAllPorts": true,
"useSSL": true
}
},
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:63521",
"sslPort": 44395
}
}
}

View File

@ -0,0 +1,118 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"dbConfigs": [
{
// "Conn": "Data Source=139.224.232.211;User ID=root;Password=sw@414295;Initial Catalog=ziyuanworkstationgreen;Port=3306",
"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog=huate_group_digital;Port=3306",
//"Conn": "Data Source=47.116.122.230;User ID=root;Password=123456;Initial Catalog=ziyuan_workstation_green;Port=3307",
"DbType": 0, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "1", //
"IsAutoCloseConnection": true
},
{
// "Conn": "Data Source=139.224.232.211;User ID=root;Password=sw@414295;Initial Catalog=ziyuanworkstationgreen;Port=3306",
"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog=huate_ziyuan_company_digital;Port=3306",
//"Conn": "Data Source=47.116.122.230;User ID=root;Password=123456;Initial Catalog=ziyuan_workstation_green;Port=3307",
"DbType": 0, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "2", //
"IsAutoCloseConnection": true
}
],
//
"CodeGenDbConfig": {
//{dbName}
"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog={dbName};",
"DbType": 0,
"IsAutoCloseConnection": true,
"DbName": "huate_group_digital" //,Oracle
},
"urls": "http://localhost:8888", //urldevServer
"corsUrls": [ "http://localhost:8887", "http://localhost:8886" ], //","
"JwtSettings": {
"Issuer": "DOANAdmin.NET", //token
"Audience": "DOANAdmin.NET", //token
"SecretKey": "SecretKey-DOANADMIN.NET-20210101",
"Expire": 1440, //jwt
"RefreshTokenTime": 30, //
"TokenType": "Bearer"
},
"InjectClass": [ "DOAN.Repository", "DOAN.Service", "DOAN.Tasks", "DOAN.ServiceCore" ], //
"ShowDbLog": true, //db
"InitDb": false, //db
"DemoMode": false, //
"SingleLogin": false, ///
"workId": 1, //id
"sqlExecutionTime": 5, //Sql
"Upload": {
"uploadUrl": "http://127.0.0.1:8888", //访
"localSavePath": "", // wwwroot
"maxSize": 15, // 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ],
"requestLimitSize": 50 //body
},
//
"ALIYUN_OSS": {
"REGIONID": "", //egcn-hangzhou
"KEY": "XX",
"SECRET": "XX",
"bucketName": "bucketName",
"domainUrl": "http://xxx.xxx.com", //访
"maxSize": 100 // 100M
},
//
"WxCorp": {
"AgentID": "",
"CorpID": "",
"CorpSecret": "",
"SendUser": "@all"
},
//
"WxOpen": {
"AppID": "",
"AppSecret": ""
},
//
"MailOptions": {
//
"FromName": "system",
//
"FromEmail": "", //egxxxx@qq.com
//
"Password": "",
//
"Smtp": "smtp.qq.com",
"Port": 587,
"Signature": "系统邮件,请勿回复!",
"UseSsl": true
},
//redis
"RedisServer": {
"open": 0, //redis
"Cache": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
"Session": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:"
},
//
"CaptchaOptions": {
"IgnoreCase": true //
},
//
"CodeGen": {
//
"showApp": false,
//
"autoPre": true,
//
"moduleName": "business",
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "" //egD:\Work\DOANAdmin-Vue3
}
}

View File

@ -0,0 +1,109 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"dbConfigs": [
{
"Conn": "Data Source=139.224.232.211;User ID=root;Password=sw@414295;Initial Catalog=ziyuanworkstationgreen;Port=3306;SslMode=None",
"DbType": 0, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //
"IsAutoCloseConnection": true
}
//...
],
//
"CodeGenDbConfig": {
//{dbName}
"Conn": "Data Source=192.168.0.36;User ID=root;Password=123456;Initial Catalog={dbName};",
"DbType": 1,
"IsAutoCloseConnection": true,
"DbName": "DOANAdmin" //,Oracle
},
"urls": "http://localhost:8888", //urldevServer
"corsUrls": [ "http://localhost:8887", "http://localhost:8886" ], //","
"JwtSettings": {
"Issuer": "DOANAdmin.NET", //token
"Audience": "DOANAdmin.NET", //token
"SecretKey": "SecretKey-DOANADMIN.NET-20210101",
"Expire": 1440, //jwt
"RefreshTokenTime": 30, //
"TokenType": "Bearer"
},
"InjectClass": [ "DOAN.Repository", "DOAN.Service", "DOAN.Tasks", "DOAN.ServiceCore" ], //
"ShowDbLog": true, //db
"InitDb": false, //db
"DemoMode": false, //
"SingleLogin": false, ///
"workId": 1, //id
"sqlExecutionTime": 5, //Sql
"Upload": {
"uploadUrl": "http://192.0.0.23:8888", //访
"localSavePath": "", // wwwroot
"maxSize": 15, // 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ],
"requestLimitSize": 50 //body
},
//
"ALIYUN_OSS": {
"REGIONID": "", //egcn-hangzhou
"KEY": "XX",
"SECRET": "XX",
"bucketName": "bucketName",
"domainUrl": "http://xxx.xxx.com", //访
"maxSize": 100 // 100M
},
//
"WxCorp": {
"AgentID": "",
"CorpID": "",
"CorpSecret": "",
"SendUser": "@all"
},
//
"WxOpen": {
"AppID": "",
"AppSecret": ""
},
//
"MailOptions": {
//
"FromName": "system",
//
"FromEmail": "", //egxxxx@qq.com
//
"Password": "",
//
"Smtp": "smtp.qq.com",
"Port": 587,
"Signature": "系统邮件,请勿回复!",
"UseSsl": true
},
//redis
"RedisServer": {
"open": 0, //redis
"Cache": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
"Session": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:"
},
//
"CaptchaOptions": {
"IgnoreCase": true //
},
//
"CodeGen": {
//
"showApp": false,
//
"autoPre": true,
//
"moduleName": "business",
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "" //egD:\Work\DOANAdmin-Vue3
}
}