init commit

This commit is contained in:
路 范
2021-12-16 17:38:37 +08:00
parent 13da2a4863
commit 974f910fad
1246 changed files with 480361 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "5.0.3",
"commands": [
"dotnet-ef"
]
}
}
}

View File

@@ -0,0 +1,37 @@
//using Ewide.Application;
using Furion;
using Furion.DataEncryption;
using Furion.TaskScheduler;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
namespace Ewide.Web.Entry.Controllers
{
[AllowAnonymous]
public class HomeController : Controller
{
public HomeController()
{
}
public IActionResult Index()
{
return View();
}
public IActionResult Index2()
{
//SpareTime.Do
var workers = SpareTime.GetWorkers().ToList();
SpareTime.DoOnce(3000, (timer, count) =>
{
// 这里发送短信,发送邮件或记录访问记录
Console.WriteLine("现在时间:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
});
return View();
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,7 @@
FROM ewide_aspnet:v1
WORKDIR /app
EXPOSE 80
EXPOSE 443
COPY . .
ENTRYPOINT ["dotnet", "Ewide.Web.Entry.dll"]

View File

@@ -0,0 +1,7 @@
FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
EXPOSE 80
EXPOSE 443
COPY . .
ENTRYPOINT ["dotnet", "Ewide.Web.Entry.dll"]

View File

@@ -0,0 +1,81 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<UserSecretsId>aa1cd362-1bdb-4ac9-ad5c-461b3b5b1003</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<Content Remove="wwwroot\Captcha\Font\站酷酷黑体.ttf" />
<Content Remove="wwwroot\Captcha\Image\1.jpg" />
<Content Remove="wwwroot\Captcha\Image\2.jpg" />
<Content Remove="wwwroot\Captcha\Image\3.jpg" />
<Content Remove="wwwroot\Captcha\Image\4.jpg" />
<Content Remove="wwwroot\Captcha\Image\5.jpg" />
<Content Remove="wwwroot\Captcha\Image\6.jpg" />
<Content Remove="wwwroot\Captcha\Image\7.jpg" />
<Content Remove="wwwroot\Captcha\Image\8.jpg" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Ewide.RoadFlow\Ewide.RoadFlowLite.csproj" />
<ProjectReference Include="..\Ewide.Web.Core\Ewide.Web.Core.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="Dilon2.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Dilon_SaaS.db">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Dockerfile">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Dockerfile - 复制">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="wwwroot\Captcha\Font\站酷酷黑体.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\1.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\2.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\3.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\4.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\5.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\6.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\7.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\Captcha\Image\8.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\Upload\Default\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>H:\在家办公2\ewide_core-master\ewide_core\Api\Ewide.Web.Entry\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<ActiveDebugProfile>IIS Express</ActiveDebugProfile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace Ewide.Web.Entry
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.Inject()
.UseStartup<Startup>();
})
.UseSerilogDefault();
}
}

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DeleteExistingFiles>True</DeleteExistingFiles>
<ExcludeApp_Data>False</ExcludeApp_Data>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>H:\1_发布程序\ewide</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net5.0</TargetFramework>
<ProjectGuid>9826e365-eee9-4721-a738-b02ab64d47e5</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
此文件由 Web 项目的发布/打包过程使用。可以通过编辑此 MSBuild 文件
自定义此过程的行为。为了解与此相关的更多内容,请访问 https://go.microsoft.com/fwlink/?LinkID=208121。
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_PublishTargetUrl>H:\1_发布程序\ewide</_PublishTargetUrl>
<History>True|2021-12-15T05:48:06.2183482Z;True|2021-12-14T11:44:29.1296439+08:00;True|2021-12-13T21:09:12.6059148+08:00;True|2021-12-10T23:01:02.0094569+08:00;True|2021-12-10T18:02:27.4468025+08:00;True|2021-12-10T16:06:30.0768637+08:00;True|2021-12-09T16:19:24.8943524+08:00;True|2021-12-09T14:36:54.2405552+08:00;True|2021-12-09T10:02:51.3250742+08:00;True|2021-12-06T14:51:52.3806471+08:00;True|2021-12-02T13:51:37.2544913+08:00;True|2021-12-02T10:22:09.8796785+08:00;True|2021-12-02T09:57:59.6127280+08:00;True|2021-11-29T23:24:37.3154106+08:00;True|2021-11-29T18:07:52.3223871+08:00;True|2021-11-29T12:24:00.2062976+08:00;True|2021-11-29T11:21:14.7609264+08:00;True|2021-11-26T17:08:43.6851440+08:00;True|2021-11-26T16:25:05.5333943+08:00;True|2021-11-26T14:43:25.4294883+08:00;True|2021-11-26T11:47:11.5856991+08:00;True|2021-11-25T15:57:55.3878301+08:00;True|2021-11-24T09:38:39.4875097+08:00;True|2021-11-23T17:48:13.1909725+08:00;True|2021-11-23T17:25:47.4179986+08:00;False|2021-11-23T17:23:45.8980481+08:00;True|2021-11-23T16:52:11.4796936+08:00;True|2021-11-23T15:38:05.5253995+08:00;True|2021-11-22T15:22:45.9245239+08:00;True|2021-11-22T11:35:54.1805064+08:00;True|2021-11-20T01:08:59.7752893+08:00;True|2021-11-19T17:42:02.0784048+08:00;True|2021-11-19T15:22:21.8057273+08:00;True|2021-11-19T10:19:54.3827541+08:00;True|2021-11-19T09:27:34.8491830+08:00;True|2021-11-19T02:50:30.4237744+08:00;True|2021-11-17T18:19:44.5997246+08:00;True|2021-11-17T17:21:31.0129029+08:00;True|2021-11-17T15:09:28.8857831+08:00;True|2021-11-17T14:28:31.7732443+08:00;True|2021-11-17T14:15:16.9657839+08:00;True|2021-11-17T12:57:53.1151709+08:00;True|2021-11-17T12:55:51.6782251+08:00;False|2021-11-17T12:55:11.8189452+08:00;True|2021-11-17T12:43:14.6439252+08:00;True|2021-11-17T12:19:41.5371001+08:00;False|2021-11-17T12:18:44.2438231+08:00;False|2021-11-17T12:18:13.1180428+08:00;False|2021-11-17T12:17:41.6392423+08:00;False|2021-11-17T12:17:14.7757058+08:00;True|2021-11-17T12:11:50.8701795+08:00;True|2021-11-17T11:41:21.3895392+08:00;True|2021-11-16T14:26:27.8088626+08:00;</History>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,28 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:5566",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Ewide.Web.Entry": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": "true",
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}

View File

@@ -0,0 +1,27 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Ewide.Web.Entry
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
// 代码迁移至 Ewide.Web.Core/Startup.cs
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
// 代码迁移至 Ewide.Web.Core/Startup.cs
}
}
}

View File

@@ -0,0 +1,12 @@
@{
ViewData["Title"] = ViewBag.Description;
}
<div style="text-align:center;margin-top:50px;">
<img src="~/images/logo.png" style="height:100px;" />
<div align="center">
<p><a href="https://gitee.com/monksoul/Furion/stargazers"><img src="https://gitee.com/monksoul/Furion/badge/star.svg?theme=gvp" alt="star"></a> <a href="https://gitee.com/monksoul/Furion/members"><img src="https://gitee.com/monksoul/Furion/badge/fork.svg?theme=gvp" alt="fork"></a> <a href="https://github.com/MonkSoul/Furion/stargazers"><img src="https://img.shields.io/github/stars/MonkSoul/Furion?logo=github" alt="GitHub stars"></a> <a href="https://github.com/MonkSoul/Furion/network"><img src="https://img.shields.io/github/forks/MonkSoul/Furion?logo=github" alt="GitHub forks"></a> <a href="https://github.com/MonkSoul/Furion/blob/main/LICENSE"><img src="https://img.shields.io/github/license/MonkSoul/Furion" alt="GitHub license"></a> <a href="https://www.nuget.org/packages/Furion"><img src="https://img.shields.io/nuget/v/Furion.svg?cacheSeconds=10800" alt="nuget"></a></p>
</div>
<p>@ViewBag.Description</p>
<p><a href="/api">API 接口</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://gitee.com/monksoul/Furion" target="_blank">源码地址</a></p>
</div>

View File

@@ -0,0 +1,6 @@
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
index2

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewData["Title"] - Furion</title>
</head>
<body>
@RenderBody()
</body>
</html>

View File

@@ -0,0 +1,2 @@
@using Ewide.Web.Entry
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@@ -0,0 +1,3 @@
@{
Layout = "_Layout";
}

View File

@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

View File

@@ -0,0 +1,33 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"System": "Warning",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.EntityFrameworkCore": "Information"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
}
},
{
"Name": "File",
"Args": {
"path": "logs/.log",
"rollingInterval": "Day",
"outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
}
}
]
},
"AllowedHosts": "*"
}

View File

@@ -0,0 +1,52 @@
【时间】2021-11-16 14:21:34,058
【等级】INF
【消息】Now listening on: http://localhost:5000
【时间】2021-11-16 14:21:34,103
【等级】INF
【消息】Now listening on: https://localhost:5001
【时间】2021-11-16 14:21:34,103
【等级】INF
【消息】Application started. Press Ctrl+C to shut down.
【时间】2021-11-16 14:21:34,103
【等级】INF
【消息】Hosting environment: Production
【时间】2021-11-16 14:21:34,103
【等级】INF
【消息】Content root path: H:\在家办公2\ewide_core-master\ewide_core\Api\Ewide.Web.Entry\bin\Debug\net5.0
【时间】2021-11-16 14:22:14,463
【等级】INF
【消息】HTTP GET / responded 301 in 169.9551 ms
【时间】2021-11-16 14:22:14,563
【等级】INF
【消息】HTTP GET /index.html responded 200 in 87.7028 ms
【时间】2021-11-16 14:22:15,234
【等级】INF
【消息】HTTP GET /swagger-ui.css responded 200 in 42.0840 ms
【时间】2021-11-16 14:22:15,234
【等级】INF
【消息】HTTP GET /swagger-ui-standalone-preset.js responded 200 in 27.5985 ms
【时间】2021-11-16 14:22:15,258
【等级】INF
【消息】HTTP GET /swagger-ui-bundle.js responded 200 in 52.1678 ms
【时间】2021-11-16 14:22:15,500
【等级】INF
【消息】HTTP GET /favicon-32x32.png responded 200 in 0.3709 ms
【时间】2021-11-16 14:22:17,452
【等级】INF
【消息】HTTP GET /swagger/Default/swagger.json responded 200 in 1980.8542 ms
【时间】2021-11-16 14:22:49,486
【等级】INF
【消息】Application is shutting down...

View File

@@ -0,0 +1,7 @@
FROM ewide_aspnet:v1
WORKDIR /app
EXPOSE 80
EXPOSE 443
COPY . .
ENTRYPOINT ["dotnet", "Ewide.Web.Entry.dll"]

View File

@@ -0,0 +1,7 @@
FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
EXPOSE 80
EXPOSE 443
COPY . .
ENTRYPOINT ["dotnet", "Ewide.Web.Entry.dll"]

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Ewide.Web.Core</name>
</assembly>
<members>
<member name="M:Ewide.Web.Core.JwtHandler.HandleAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext)">
<summary>
重写 Handler 添加自动刷新
</summary>
<param name="context"></param>
<returns></returns>
</member>
<member name="M:Ewide.Web.Core.JwtHandler.PipelineAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext,Microsoft.AspNetCore.Http.DefaultHttpContext)">
<summary>
授权判断逻辑,授权通过返回 true否则返回 false
</summary>
<param name="context"></param>
<param name="httpContext"></param>
<returns></returns>
</member>
<member name="M:Ewide.Web.Core.JwtHandler.CheckAuthorzieAsync(Microsoft.AspNetCore.Http.DefaultHttpContext)">
<summary>
检查权限
</summary>
<param name="httpContext"></param>
<returns></returns>
</member>
<member name="M:Ewide.Web.Core.Service.DBqueryService.GetDataBase">
<summary>
读取数据库的所有表 并拿到数据
</summary>
<returns></returns>
</member>
</members>
</doc>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\joy\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\joy\\.nuget\\packages",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
]
}
}

View File

@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "5.0.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

Some files were not shown because too many files have changed in this diff Show More