From 950f32a006736bd9407bb5f73b744892b8bade2a Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期日, 26 一月 2025 09:41:12 +0800
Subject: [PATCH] no message

---
 CYZuoYeBenPeiSong.Core/BaseRepository.cs                            |   98 +++++++
 .gitignore                                                          |   11 
 CYZuoYeBenPeiSong.Application/System/Dtos/Mapper.cs                 |    8 
 CYZuoYeBenPeiSong.Application/System/SystemAppService.cs            |   29 ++
 CYZuoYeBenPeiSong.Web.Core/Startup.cs                               |   47 +++
 CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.csproj                |   23 +
 CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.xml                   |   30 ++
 CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj      |   22 +
 CYZuoYeBenPeiSong.Application/System/Services/SystemService.cs      |    9 
 CyZuoYeBenPeiSong.model/CyZuoYeBenPeiSong.model.csproj              |   13 +
 CYZuoYeBenPeiSong.Web.Entry/Program.cs                              |    1 
 CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.csproj  |   33 ++
 CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.xml           |    8 
 CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.xml     |   19 +
 CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.csproj        |   20 +
 CYZuoYeBenPeiSong.Web.Entry/appsettings.Development.json            |   10 
 CYZuoYeBenPeiSong.sln                                               |   49 +++
 CYZuoYeBenPeiSong.Web.Entry/appsettings.json                        |   38 ++
 CYZuoYeBenPeiSong.Application/System/Services/ISystemService.cs     |    6 
 CYZuoYeBenPeiSong.Application/GlobalUsings.cs                       |   15 +
 CYZuoYeBenPeiSong.Core/Startup.cs                                   |   86 ++++++
 CyZuoYeBenPeiSong.model/EC_OnlineAdviser.cs                         |   16 +
 CYZuoYeBenPeiSong.Web.Core/Handlers/JwtHandler.cs                   |   16 +
 CYZuoYeBenPeiSong.Web.Entry/SingleFilePublish.cs                    |   22 +
 CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj.user |    9 
 CYZuoYeBenPeiSong.Application/applicationsettings.json              |   31 ++
 CYZuoYeBenPeiSong.Web.Entry/Properties/launchSettings.json          |   31 ++
 CYZuoYeBenPeiSong.Core/DbContext.cs                                 |   23 +
 28 files changed, 723 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5dc5457
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+.vs/
+CYZuoYeBenPeiSong.Application/bin/
+CYZuoYeBenPeiSong.Core/bin/
+CYZuoYeBenPeiSong.Core/obj/
+CyZuoYeBenPeiSong.model/bin/
+CyZuoYeBenPeiSong.model/obj/
+CYZuoYeBenPeiSong.Web.Core/bin/
+CYZuoYeBenPeiSong.Web.Core/obj/
+CYZuoYeBenPeiSong.Web.Entry/bin/
+CYZuoYeBenPeiSong.Web.Entry/obj/
+CYZuoYeBenPeiSong.Application/obj/
diff --git a/CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.csproj b/CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.csproj
new file mode 100644
index 0000000..3a2e1a7
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.csproj
@@ -0,0 +1,33 @@
+锘�<Project Sdk="Microsoft.NET.Sdk">
+
+
+
+	<PropertyGroup>
+		<TargetFramework>net8.0</TargetFramework>
+		<NoWarn>1701;1702;1591</NoWarn>
+		<DocumentationFile>CYZuoYeBenPeiSong.Application.xml</DocumentationFile>
+		<ImplicitUsings>enable</ImplicitUsings>
+	</PropertyGroup>
+
+
+	<ItemGroup>
+		<None Remove="applicationsettings.json" />
+		<None Remove="CYZuoYeBenPeiSong.Application.xml" />
+	</ItemGroup>
+
+	<ItemGroup>
+		<Content Include="applicationsettings.json">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+		</Content>
+	</ItemGroup>
+
+	<ItemGroup>
+		<ProjectReference Include="..\CYZuoYeBenPeiSong.Core\CYZuoYeBenPeiSong.Core.csproj" />
+		<ProjectReference Include="..\CyZuoYeBenPeiSong.model\CyZuoYeBenPeiSong.model.csproj" />
+	</ItemGroup>
+
+	<ItemGroup>
+		<Folder Include="System\Services\" />
+	</ItemGroup>
+
+</Project>
diff --git a/CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.xml b/CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.xml
new file mode 100644
index 0000000..6d59176
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/CYZuoYeBenPeiSong.Application.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<doc>
+    <assembly>
+        <name>CYZuoYeBenPeiSong.Application</name>
+    </assembly>
+    <members>
+        <member name="T:CYZuoYeBenPeiSong.Application.SystemAppService">
+            <summary>
+            绯荤粺鏈嶅姟鎺ュ彛
+            </summary>
+        </member>
+        <member name="M:CYZuoYeBenPeiSong.Application.SystemAppService.GetDescription">
+            <summary>
+            鑾峰彇绯荤粺鎻忚堪
+            </summary>
+            <returns></returns>
+        </member>
+    </members>
+</doc>
diff --git a/CYZuoYeBenPeiSong.Application/GlobalUsings.cs b/CYZuoYeBenPeiSong.Application/GlobalUsings.cs
new file mode 100644
index 0000000..1f0aacd
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/GlobalUsings.cs
@@ -0,0 +1,15 @@
+锘縢lobal using Furion;
+global using Furion.DataEncryption;
+global using Furion.DataValidation;
+global using Furion.DependencyInjection;
+global using Furion.DynamicApiController;
+global using Furion.Extensions;
+global using Furion.FriendlyException;
+global using Furion.Logging;
+global using Mapster;
+global using Microsoft.AspNetCore.Authorization;
+global using Microsoft.AspNetCore.Http;
+global using Microsoft.AspNetCore.Mvc;
+global using Microsoft.CodeAnalysis;
+global using System.ComponentModel.DataAnnotations;
+global using SqlSugar;
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.Application/System/Dtos/Mapper.cs b/CYZuoYeBenPeiSong.Application/System/Dtos/Mapper.cs
new file mode 100644
index 0000000..499ba60
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/System/Dtos/Mapper.cs
@@ -0,0 +1,8 @@
+锘縩amespace CYZuoYeBenPeiSong.Application;
+
+public class Mapper : IRegister
+{
+    public void Register(TypeAdapterConfig config)
+    {
+    }
+}
diff --git a/CYZuoYeBenPeiSong.Application/System/Services/ISystemService.cs b/CYZuoYeBenPeiSong.Application/System/Services/ISystemService.cs
new file mode 100644
index 0000000..f6bbe1a
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/System/Services/ISystemService.cs
@@ -0,0 +1,6 @@
+锘縩amespace CYZuoYeBenPeiSong.Application;
+
+public interface ISystemService
+{
+    string GetDescription();
+}
diff --git a/CYZuoYeBenPeiSong.Application/System/Services/SystemService.cs b/CYZuoYeBenPeiSong.Application/System/Services/SystemService.cs
new file mode 100644
index 0000000..d23d828
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/System/Services/SystemService.cs
@@ -0,0 +1,9 @@
+锘縩amespace CYZuoYeBenPeiSong.Application;
+
+public class SystemService : ISystemService, ITransient
+{
+    public string GetDescription()
+    {
+        return "璁� .NET 寮�鍙戞洿绠�鍗曪紝鏇撮�氱敤锛屾洿娴佽銆�";
+    }
+}
diff --git a/CYZuoYeBenPeiSong.Application/System/SystemAppService.cs b/CYZuoYeBenPeiSong.Application/System/SystemAppService.cs
new file mode 100644
index 0000000..3b3dbf2
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/System/SystemAppService.cs
@@ -0,0 +1,29 @@
+锘縰sing CyZuoYeBenPeiSong.model;
+
+namespace CYZuoYeBenPeiSong.Application;
+
+/// <summary>
+/// 绯荤粺鏈嶅姟鎺ュ彛
+/// </summary>
+public class SystemAppService : IDynamicApiController
+{
+    private readonly ISystemService _systemService;
+    private readonly ISqlSugarClient _unitOfWork;
+    public SystemAppService(ISystemService systemService )
+    {
+        _systemService = systemService;
+        //_unitOfWork = sugarUnitOfWork;
+
+    }
+
+    /// <summary>
+    /// 鑾峰彇绯荤粺鎻忚堪
+    /// </summary>
+    /// <returns></returns>
+    public string GetDescription()
+    {
+        var unitOfWork = App.GetService<ISqlSugarClient>();//鐢ㄦ墜鍔ㄨ幏鍙栨柟寮忔敮鎸佸垏鎹粨鍌�
+        var a= unitOfWork.Queryable<EC_OnlineAdviser>().ToList();
+        return _systemService.GetDescription();
+    }
+}
diff --git a/CYZuoYeBenPeiSong.Application/applicationsettings.json b/CYZuoYeBenPeiSong.Application/applicationsettings.json
new file mode 100644
index 0000000..7a1cfde
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Application/applicationsettings.json
@@ -0,0 +1,31 @@
+锘縶
+  "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
+  "SpecificationDocumentSettings": {
+    "DocumentTitle": "Furion | 瑙勮寖鍖栨帴鍙�",
+    "GroupOpenApiInfos": [
+      {
+        "Group": "Default",
+        "Title": "瑙勮寖鍖栨帴鍙f紨绀�",
+        "Description": "璁� .NET 寮�鍙戞洿绠�鍗曪紝鏇撮�氱敤锛屾洿娴佽銆�",
+        "Version": "1.0.0",
+        "TermsOfService": "https://furion.net",
+        "Contact": {
+          "Name": "鐧惧皬鍍�",
+          "Url": "https://gitee.com/monksoul",
+          "Email": "monksoul@outlook.com"
+        },
+        "License": {
+          "Name": "Apache-2.0",
+          "Url": "https://gitee.com/dotnetchina/Furion/blob/rc1/LICENSE"
+        }
+      }
+    ]
+  },
+  "CorsAccessorSettings": {
+    "WithExposedHeaders": [
+      "access-token",
+      "x-access-token",
+      "environment"
+    ]
+  }
+}
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.Core/BaseRepository.cs b/CYZuoYeBenPeiSong.Core/BaseRepository.cs
new file mode 100644
index 0000000..6d57f84
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Core/BaseRepository.cs
@@ -0,0 +1,98 @@
+锘縰sing Furion;
+using SqlSugar;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Security.Claims;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CYZuoYeBenPeiSong.Core
+{
+    /// <summary>
+    /// 浠撳偍绫伙紝浣跨敤鏂瑰紡鍙渶瑕佺户鎵垮氨琛�
+    /// </summary>
+    /// <typeparam name="T"></typeparam>
+    public class BaseRepository<T> : SimpleClient<T> where T : class, new()
+    {
+
+
+        public BaseRepository(ISqlSugarClient context = null) : base(context)//榛樿鍊肩瓑浜巒ull涓嶈兘灏�
+        {
+            base.Context = App.GetService<ISqlSugarClient>();//鐢ㄦ墜鍔ㄨ幏鍙栨柟寮忔敮鎸佸垏鎹粨鍌�
+
+        }
+        ///// <summary>
+        ///// 閲嶅啓鏇存柊鏂规硶
+        ///// </summary>
+        ///// <param name="updateObj"></param>
+        ///// <returns></returns>
+        //public Task<bool> EzUpdateAsync(T updateObj)
+        //{
+
+        //    var intbs = updateObj as BaseModelBase;
+        //    if (intbs != null)
+        //    {
+        //        intbs.UpDataBy = GetJwtBy();
+        //        intbs.UpDataTime = DateTime.Now;
+        //    }
+        //    return base.UpdateAsync(updateObj);
+        //}
+        ///// <summary>
+        ///// 寮傛鎻掑叆
+        ///// </summary>
+        ///// <param name="insertObj"></param>
+        ///// <returns></returns>
+        //public Task<bool> EzInsertAsync(T insertObj)
+        //{
+        //    var intbs = insertObj as BaseModelBase;
+        //    if (intbs != null)
+        //    {
+        //        intbs.CreateBy = GetJwtBy();
+        //        intbs.CreateTime = DateTime.Now;
+        //    }
+
+        //    return base.InsertAsync(insertObj);
+        //}
+        ///// <summary>
+        ///// 閲嶅啓鎻掑叆
+        ///// </summary>
+        ///// <param name="insertObj"></param>
+        ///// <returns></returns>
+        //public T EzInsertReturnEntity(T insertObj)
+        //{
+        //    var intbs = insertObj as BaseModelBase;
+        //    if (intbs != null)
+        //    {
+        //        intbs.CreateBy = GetJwtBy();
+        //        intbs.CreateTime = DateTime.Now;
+        //    }
+        //    return base.InsertReturnEntity(insertObj);
+        //}
+
+        ///// <summary>
+        ///// 寮傛鎻掑叆
+        ///// </summary>
+        ///// <param name="insertObj"></param>
+        ///// <returns></returns>
+        //public Task<int> EzInsertReturnIdentityAsync(T insertObj)
+        //{
+
+        //    var intbs = insertObj as BaseModelBase;
+        //    if (intbs != null)
+        //    {
+        //        intbs.CreateBy = GetJwtBy();
+        //        intbs.CreateTime = DateTime.Now;
+        //    }
+        //    return base.InsertReturnIdentityAsync(insertObj);
+        //}
+        /// <summary>
+        /// 鑾峰彇鐢ㄦ埛濮撳悕鍜孖D
+        /// </summary>
+        /// <returns></returns>
+        private string GetJwtBy()
+        {
+            return (App.User?.FindFirstValue("UserID") ?? "") + "|" + (App.User?.FindFirstValue("NickName") ?? "绯荤粺鑷富澶勭悊");
+        }
+    }
+}
diff --git a/CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.csproj b/CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.csproj
new file mode 100644
index 0000000..79cb173
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.csproj
@@ -0,0 +1,23 @@
+锘�<Project Sdk="Microsoft.NET.Sdk">
+
+
+
+	<PropertyGroup>
+		<TargetFramework>net8.0</TargetFramework>
+		<NoWarn>1701;1702;1591</NoWarn>
+		<DocumentationFile>CYZuoYeBenPeiSong.Core.xml</DocumentationFile>
+	</PropertyGroup>
+
+
+	<ItemGroup>
+		<None Remove="CYZuoYeBenPeiSong.Core.xml" />
+	</ItemGroup>
+
+	<ItemGroup>
+		<PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.9.5.15" />
+		<PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.9.5.15" />
+		<PackageReference Include="Furion.Pure" Version="4.9.5.15" />
+		<PackageReference Include="SqlSugarCore" Version="5.1.4.169" />
+	</ItemGroup>
+
+</Project>
diff --git a/CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.xml b/CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.xml
new file mode 100644
index 0000000..c25bf18
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Core/CYZuoYeBenPeiSong.Core.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<doc>
+    <assembly>
+        <name>CYZuoYeBenPeiSong.Core</name>
+    </assembly>
+    <members>
+        <member name="T:CYZuoYeBenPeiSong.Core.BaseRepository`1">
+            <summary>
+            浠撳偍绫伙紝浣跨敤鏂瑰紡鍙渶瑕佺户鎵垮氨琛�
+            </summary>
+            <typeparam name="T"></typeparam>
+        </member>
+        <member name="M:CYZuoYeBenPeiSong.Core.BaseRepository`1.GetJwtBy">
+            <summary>
+            鑾峰彇鐢ㄦ埛濮撳悕鍜孖D
+            </summary>
+            <returns></returns>
+        </member>
+        <member name="T:CYZuoYeBenPeiSong.Core.DbContext">
+            <summary>
+            鏁版嵁搴撲笂涓嬫枃瀵硅薄
+            </summary>
+        </member>
+        <member name="F:CYZuoYeBenPeiSong.Core.DbContext.Instance">
+            <summary>
+            SqlSugar 鏁版嵁搴撳疄渚�
+            </summary>
+        </member>
+    </members>
+</doc>
diff --git a/CYZuoYeBenPeiSong.Core/DbContext.cs b/CYZuoYeBenPeiSong.Core/DbContext.cs
new file mode 100644
index 0000000..c083f21
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Core/DbContext.cs
@@ -0,0 +1,23 @@
+锘縰sing Furion;
+using SqlSugar;
+using System.Collections.Generic;
+
+namespace CYZuoYeBenPeiSong.Core;
+
+/// <summary>
+/// 鏁版嵁搴撲笂涓嬫枃瀵硅薄
+/// </summary>
+public static class DbContext
+{
+    /// <summary>
+    /// SqlSugar 鏁版嵁搴撳疄渚�
+    /// </summary>
+    public static readonly SqlSugarScope Instance = new(
+        // 璇诲彇 appsettings.json 涓殑 ConnectionConfigs 閰嶇疆鑺傜偣
+        App.GetConfig<List<ConnectionConfig>>("ConnectionConfigs")
+        , db =>
+        {
+            // 杩欓噷閰嶇疆鍏ㄥ眬浜嬩欢锛屾瘮濡傛嫤鎴墽琛� SQL
+            var a = 1;
+        });
+}
diff --git a/CYZuoYeBenPeiSong.Core/Startup.cs b/CYZuoYeBenPeiSong.Core/Startup.cs
new file mode 100644
index 0000000..4124609
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Core/Startup.cs
@@ -0,0 +1,86 @@
+锘�
+using Furion;
+using Furion.Logging.Extensions;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.DependencyInjection;
+using SqlSugar;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using System.Xml.Linq;
+
+namespace CYZuoYeBenPeiSong.Core
+{
+    public class Startup : AppStartup
+    {
+        //浣跨敤sqlsugar 鏁版嵁搴撹繛鎺ュ簱
+
+        public void ConfigureServices(IServiceCollection services)
+        {
+            var configConnection = App.GetConfig<List<ConnectionConfig>>("DbConnect");
+
+
+            services.AddSingleton<ISqlSugarClient>(s =>
+            {
+                SqlSugarScope sqlSugar = new SqlSugarScope(configConnection,
+               db =>
+               {
+                   db.CurrentConnectionConfig.ConfigureExternalServices = new ConfigureExternalServices()
+                   {
+                       //鍒ゆ柇鏄惁寮�鍚痳edis璁剧疆浜岀骇缂撳瓨鏂瑰紡
+                       //DataInfoCacheService = new SqlSugarRedisCache(),
+                       //妯″瀷瀹氫箟涓� int?鍙锋椂鑷姩涓哄彲绌�
+                       EntityService = (c, p) =>
+                       {
+                           /***楂樼増C#鍐欐硶***/
+                           //鏀寔string?鍜宻tring  
+                           if (p.IsPrimarykey == false && new NullabilityInfoContext()
+                            .Create(c).WriteState is NullabilityState.Nullable)
+                           {
+                               p.IsNullable = true;
+                           }
+                       }
+
+                   };
+                   db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings()
+                   {
+                       //鎵�鏈� 澧炪�佸垹 銆佹敼 浼氳嚜鍔ㄨ皟鐢�.RemoveDataCache()娓呯悊浜岀骇缂撳瓨
+                       IsAutoRemoveDataCache = true
+                   };
+                   db.Aop.OnError = (exp) =>
+                   {
+                       $"鏁版嵁搴撴墽琛岄敊璇簡:{exp}".LogInformation();
+                       //   NlogUtil.WriteFileLog(NLog.LogLevel.Error, LogType.Other, "SqlSugar", "鎵цSQL閿欒浜嬩欢", exp);
+                   };
+
+                   //鍗曚緥鍙傛暟閰嶇疆锛屾墍鏈変笂涓嬫枃鐢熸晥
+                   //db.Aop.OnLogExecuting = (sql, pars) =>
+                   //{
+                   //    //鑾峰彇浣淚OC浣滅敤鍩熷璞�
+                   //  //  var appServive = s.GetService<IHttpContextAccessor>();
+                   //   // var obj = appServive?.HttpContext?.RequestServices.GetService<Log>();
+                   // //   Console.WriteLine("AOP" + obj.GetHashCode());
+                   //};
+               });
+                //sqlSugar.DbMaintenance.CreateDatabase();
+                //Type[]? types = DbCoreUntil.DbCodeFirstModes("EzCoreNetFurion.Model", thisAttribute: typeof(CoderFirstAttribute));
+
+
+                //sqlSugar.CodeFirst.InitTables(types ?? new Type[] { });
+                return sqlSugar;
+            });
+
+
+        }
+
+        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
+        {
+
+        }
+    }
+}
diff --git a/CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.csproj b/CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.csproj
new file mode 100644
index 0000000..7887fd8
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.csproj
@@ -0,0 +1,20 @@
+锘�<Project Sdk="Microsoft.NET.Sdk">
+
+
+
+	<PropertyGroup>
+		<TargetFramework>net8.0</TargetFramework>
+		<NoWarn>1701;1702;1591</NoWarn>
+		<DocumentationFile>CYZuoYeBenPeiSong.Web.Core.xml</DocumentationFile>
+	</PropertyGroup>
+
+
+	<ItemGroup>
+		<None Remove="CYZuoYeBenPeiSong.Web.Core.xml" />
+	</ItemGroup>
+
+	<ItemGroup>
+		<ProjectReference Include="..\CYZuoYeBenPeiSong.Application\CYZuoYeBenPeiSong.Application.csproj" />
+	</ItemGroup>
+
+</Project>
diff --git a/CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.xml b/CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.xml
new file mode 100644
index 0000000..15103dc
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Core/CYZuoYeBenPeiSong.Web.Core.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<doc>
+    <assembly>
+        <name>CYZuoYeBenPeiSong.Web.Core</name>
+    </assembly>
+    <members>
+    </members>
+</doc>
diff --git a/CYZuoYeBenPeiSong.Web.Core/Handlers/JwtHandler.cs b/CYZuoYeBenPeiSong.Web.Core/Handlers/JwtHandler.cs
new file mode 100644
index 0000000..6b42ede
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Core/Handlers/JwtHandler.cs
@@ -0,0 +1,16 @@
+锘縰sing Furion.Authorization;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Http;
+using System.Threading.Tasks;
+
+namespace CYZuoYeBenPeiSong.Web.Core;
+
+public class JwtHandler : AppAuthorizeHandler
+{
+    public override Task<bool> PipelineAsync(AuthorizationHandlerContext context, DefaultHttpContext httpContext)
+    {
+        // 杩欓噷鍐欐偍鐨勬巿鏉冨垽鏂�昏緫锛屾巿鏉冮�氳繃杩斿洖 true锛屽惁鍒欒繑鍥� false
+
+        return Task.FromResult(true);
+    }
+}
diff --git a/CYZuoYeBenPeiSong.Web.Core/Startup.cs b/CYZuoYeBenPeiSong.Web.Core/Startup.cs
new file mode 100644
index 0000000..cf7f085
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Core/Startup.cs
@@ -0,0 +1,47 @@
+锘縰sing CYZuoYeBenPeiSong.Core;
+using Furion;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+using SqlSugar;
+
+namespace CYZuoYeBenPeiSong.Web.Core;
+
+public class Startup : AppStartup
+{
+    public void ConfigureServices(IServiceCollection services)
+    {
+        services.AddConsoleFormatter();
+        services.AddJwt<JwtHandler>();
+  
+        services.AddCorsAccessor();
+
+        services.AddControllers()
+                .AddInjectWithUnifyResult();
+    }
+
+    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
+    {
+        if (env.IsDevelopment())
+        {
+            app.UseDeveloperExceptionPage();
+        }
+
+        app.UseHttpsRedirection();
+
+        app.UseRouting();
+
+        app.UseCorsAccessor();
+
+        app.UseAuthentication();
+        app.UseAuthorization();
+
+        app.UseInject(string.Empty);
+
+        app.UseEndpoints(endpoints =>
+        {
+            endpoints.MapControllers();
+        });
+    }
+}
diff --git a/CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj b/CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj
new file mode 100644
index 0000000..9695242
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj
@@ -0,0 +1,22 @@
+锘�<Project Sdk="Microsoft.NET.Sdk.Web">
+
+
+
+	<PropertyGroup>
+		<TargetFramework>net8.0</TargetFramework>
+		<ImplicitUsings>enable</ImplicitUsings>
+		<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
+		<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
+	</PropertyGroup>
+
+
+	<ItemGroup>
+		<ProjectReference Include="..\CYZuoYeBenPeiSong.Web.Core\CYZuoYeBenPeiSong.Web.Core.csproj" />
+	</ItemGroup>
+	<ProjectExtensions>
+		<VisualStudio>
+			<UserProperties properties_4launchsettings_1json__JsonSchema="" />
+		</VisualStudio>
+	</ProjectExtensions>
+
+</Project>
diff --git a/CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj.user b/CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj.user
new file mode 100644
index 0000000..3a2a1c8
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Entry/CYZuoYeBenPeiSong.Web.Entry.csproj.user
@@ -0,0 +1,9 @@
+锘�<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+    <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
+  </PropertyGroup>
+  <PropertyGroup>
+    <ActiveDebugProfile>CYZuoYeBenPeiSong.Web.Entry</ActiveDebugProfile>
+  </PropertyGroup>
+</Project>
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.Web.Entry/Program.cs b/CYZuoYeBenPeiSong.Web.Entry/Program.cs
new file mode 100644
index 0000000..611ed5a
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Entry/Program.cs
@@ -0,0 +1 @@
+Serve.Run(RunOptions.Default.WithArgs(args));
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.Web.Entry/Properties/launchSettings.json b/CYZuoYeBenPeiSong.Web.Entry/Properties/launchSettings.json
new file mode 100644
index 0000000..d2a7039
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Entry/Properties/launchSettings.json
@@ -0,0 +1,31 @@
+锘縶
+  "$schema": "http://json.schemastore.org/launchsettings.json",
+  "iisSettings": {
+    "windowsAuthentication": false,
+    "anonymousAuthentication": true,
+    "iisExpress": {
+      "applicationUrl": "http://localhost:53785",
+      "sslPort": 44342
+    }
+  },
+  "profiles": {
+    "IIS Express": {
+      "commandName": "IISExpress",
+      "launchBrowser": true,
+      "launchUrl": "",
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      }
+    },
+    "CYZuoYeBenPeiSong.Web.Entry": {
+      "commandName": "Project",
+      "dotnetRunMessages": true,
+      "launchBrowser": true,
+      "launchUrl": "",
+      "applicationUrl": "https://localhost:5001;http://localhost:5000",
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      }
+    }
+  }
+}
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.Web.Entry/SingleFilePublish.cs b/CYZuoYeBenPeiSong.Web.Entry/SingleFilePublish.cs
new file mode 100644
index 0000000..162c9da
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Entry/SingleFilePublish.cs
@@ -0,0 +1,22 @@
+锘縰sing Furion;
+using System.Reflection;
+
+namespace CYZuoYeBenPeiSong.Web.Entry;
+
+public class SingleFilePublish : ISingleFilePublish
+{
+    public Assembly[] IncludeAssemblies()
+    {
+        return Array.Empty<Assembly>();
+    }
+
+    public string[] IncludeAssemblyNames()
+    {
+        return new[]
+        {
+            "CYZuoYeBenPeiSong.Application",
+            "CYZuoYeBenPeiSong.Core",
+            "CYZuoYeBenPeiSong.Web.Core"
+        };
+    }
+}
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.Web.Entry/appsettings.Development.json b/CYZuoYeBenPeiSong.Web.Entry/appsettings.Development.json
new file mode 100644
index 0000000..5f187ae
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Entry/appsettings.Development.json
@@ -0,0 +1,10 @@
+{
+  "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
+  "Logging": {
+    "LogLevel": {
+      "Default": "Information",
+      "Microsoft.AspNetCore": "Warning",
+      "Microsoft.EntityFrameworkCore": "Information"
+    }
+  }
+}
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.Web.Entry/appsettings.json b/CYZuoYeBenPeiSong.Web.Entry/appsettings.json
new file mode 100644
index 0000000..5b262b8
--- /dev/null
+++ b/CYZuoYeBenPeiSong.Web.Entry/appsettings.json
@@ -0,0 +1,38 @@
+{
+  "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
+  "Logging": {
+    "LogLevel": {
+      "Default": "Information",
+      "Microsoft.AspNetCore": "Warning",
+      "Microsoft.EntityFrameworkCore": "Information"
+    }
+  },
+  "AllowedHosts": "*",
+  "ConnectionConfigs": [
+    {
+
+
+      "ConnectionString": "Server=118.123.213.60;Database=ECTEST; User ID=sa;Password=123qwe!@#;",
+      "DbType": "SqlServer", // "SqlServer" ,mysql,
+      "IsAutoCloseConnection": true
+    }
+  ],
+
+  "DbConnect": [
+    {
+
+      "ConfigId": "default", //澶氬簱閰嶇疆ID
+      "ConnectionString": "Server=118.123.213.60;Database=ECTEST; User ID=sa;Password=123qwe!@#; Encrypt=True;TrustServerCertificate=True;",
+      "DbType": "SqlServer", // "SqlServer" ,mysql,
+      "IsAutoCloseConnection": true
+    }
+    //,
+    //{
+
+    //  "ConfigId": "1", //澶氬簱閰嶇疆ID
+    //  "ConnectionString": "Server=MS-FSEUTNLCXFDB\\SQLEXPRESS;Database=EzCoreDb; MultipleActiveResultSets=true;pooling=true;min pool size=5;max pool size=32767;connect timeout=20;Encrypt=True;TrustServerCertificate=True;integrated security=True;",
+    //  "DbType": "SqlServer", // "SqlServer" ,mysql,
+    //  "IsAutoCloseConnection": true
+    //}
+  ]
+}
\ No newline at end of file
diff --git a/CYZuoYeBenPeiSong.sln b/CYZuoYeBenPeiSong.sln
new file mode 100644
index 0000000..425ca1c
--- /dev/null
+++ b/CYZuoYeBenPeiSong.sln
@@ -0,0 +1,49 @@
+锘�
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32519.111
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CYZuoYeBenPeiSong.Application", "CYZuoYeBenPeiSong.Application\CYZuoYeBenPeiSong.Application.csproj", "{AB699EE9-43A8-46F2-A855-04A26DE63372}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CYZuoYeBenPeiSong.Web.Core", "CYZuoYeBenPeiSong.Web.Core\CYZuoYeBenPeiSong.Web.Core.csproj", "{9D14BB78-DA2A-4040-B9DB-5A515B599181}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CYZuoYeBenPeiSong.Core", "CYZuoYeBenPeiSong.Core\CYZuoYeBenPeiSong.Core.csproj", "{4FB30091-15C7-4FD9-AB7D-266814F360F5}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CYZuoYeBenPeiSong.Web.Entry", "CYZuoYeBenPeiSong.Web.Entry\CYZuoYeBenPeiSong.Web.Entry.csproj", "{C8D99F52-EDC7-411F-8300-6DB14BF59E8C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CyZuoYeBenPeiSong.model", "CyZuoYeBenPeiSong.model\CyZuoYeBenPeiSong.model.csproj", "{64B70280-D571-494F-9DD0-CE274C3C5B44}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{AB699EE9-43A8-46F2-A855-04A26DE63372}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{AB699EE9-43A8-46F2-A855-04A26DE63372}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{AB699EE9-43A8-46F2-A855-04A26DE63372}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{AB699EE9-43A8-46F2-A855-04A26DE63372}.Release|Any CPU.Build.0 = Release|Any CPU
+		{9D14BB78-DA2A-4040-B9DB-5A515B599181}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{9D14BB78-DA2A-4040-B9DB-5A515B599181}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{9D14BB78-DA2A-4040-B9DB-5A515B599181}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{9D14BB78-DA2A-4040-B9DB-5A515B599181}.Release|Any CPU.Build.0 = Release|Any CPU
+		{4FB30091-15C7-4FD9-AB7D-266814F360F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{4FB30091-15C7-4FD9-AB7D-266814F360F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{4FB30091-15C7-4FD9-AB7D-266814F360F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{4FB30091-15C7-4FD9-AB7D-266814F360F5}.Release|Any CPU.Build.0 = Release|Any CPU
+		{C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{C8D99F52-EDC7-411F-8300-6DB14BF59E8C}.Release|Any CPU.Build.0 = Release|Any CPU
+		{64B70280-D571-494F-9DD0-CE274C3C5B44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{64B70280-D571-494F-9DD0-CE274C3C5B44}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{64B70280-D571-494F-9DD0-CE274C3C5B44}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{64B70280-D571-494F-9DD0-CE274C3C5B44}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {B2073C2C-0FD3-452B-8047-8134D68E12CE}
+	EndGlobalSection
+EndGlobal
diff --git a/CyZuoYeBenPeiSong.model/CyZuoYeBenPeiSong.model.csproj b/CyZuoYeBenPeiSong.model/CyZuoYeBenPeiSong.model.csproj
new file mode 100644
index 0000000..4fc8445
--- /dev/null
+++ b/CyZuoYeBenPeiSong.model/CyZuoYeBenPeiSong.model.csproj
@@ -0,0 +1,13 @@
+锘�<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>net8.0</TargetFramework>
+    <ImplicitUsings>enable</ImplicitUsings>
+    <Nullable>enable</Nullable>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\CYZuoYeBenPeiSong.Core\CYZuoYeBenPeiSong.Core.csproj" />
+  </ItemGroup>
+
+</Project>
diff --git a/CyZuoYeBenPeiSong.model/EC_OnlineAdviser.cs b/CyZuoYeBenPeiSong.model/EC_OnlineAdviser.cs
new file mode 100644
index 0000000..a49a39e
--- /dev/null
+++ b/CyZuoYeBenPeiSong.model/EC_OnlineAdviser.cs
@@ -0,0 +1,16 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CyZuoYeBenPeiSong.model
+{
+    public class EC_OnlineAdviser
+    {
+        /// <summary>
+        /// 鏍囬
+        /// </summary>
+        public  string Title { get; set; }
+    }
+}

--
Gitblit v1.9.1