cauto 1 year ago
parent
commit
293a99ac82
100 changed files with 1708 additions and 179 deletions
  1. 6 1
      gpt_api.Application/GlobalUsings.cs
  2. 0 6
      gpt_api.Application/System/Services/ISystemService.cs
  3. 0 9
      gpt_api.Application/System/Services/SystemService.cs
  4. 0 22
      gpt_api.Application/System/SystemAppService.cs
  5. 34 7
      gpt_api.Application/System/user/UserService.cs
  6. 47 0
      gpt_api.Application/System/user/dto/UserOut.cs
  7. 56 0
      gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.deps.json
  8. BIN
      gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.dll
  9. BIN
      gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.pdb
  10. 44 5
      gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.xml
  11. BIN
      gpt_api.Application/bin/Debug/net7.0/gpt_api.Core.dll
  12. BIN
      gpt_api.Application/bin/Debug/net7.0/gpt_api.Core.pdb
  13. 117 9
      gpt_api.Application/bin/Debug/net7.0/gpt_api.Core.xml
  14. 2 5
      gpt_api.Application/gpt_api.Application.csproj
  15. 44 5
      gpt_api.Application/gpt_api.Application.xml
  16. BIN
      gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.csproj.AssemblyReference.cache
  17. 1 1
      gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.csproj.CoreCompileInputs.cache
  18. 4 0
      gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.csproj.FileListAbsolute.txt
  19. BIN
      gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.dll
  20. BIN
      gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.pdb
  21. BIN
      gpt_api.Application/obj/Debug/net7.0/ref/gpt_api.Application.dll
  22. BIN
      gpt_api.Application/obj/Debug/net7.0/refint/gpt_api.Application.dll
  23. 122 0
      gpt_api.Application/obj/gpt_api.Application.csproj.nuget.dgspec.json
  24. 1 1
      gpt_api.Application/obj/gpt_api.Application.csproj.nuget.g.props
  25. 45 1
      gpt_api.Application/obj/project.assets.json
  26. 1 1
      gpt_api.Application/obj/project.nuget.cache
  27. 1 1
      gpt_api.Application/obj/project.packagespec.json
  28. 16 0
      gpt_api.Core/Consts/ApiGroupConsts.cs
  29. 4 1
      gpt_api.Core/Dtos/Entity/BaseEntity.cs
  30. 3 1
      gpt_api.Core/GlobalUsings.cs
  31. 75 0
      gpt_api.Core/Utils/MutexUtil.cs
  32. 22 0
      gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.deps.json
  33. BIN
      gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.dll
  34. BIN
      gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.pdb
  35. 141 9
      gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.xml
  36. 141 9
      gpt_api.Core/gpt_api.Core.xml
  37. 1 1
      gpt_api.Core/obj/Debug/net7.0/gpt_api.Core.csproj.CoreCompileInputs.cache
  38. BIN
      gpt_api.Core/obj/Debug/net7.0/gpt_api.Core.dll
  39. BIN
      gpt_api.Core/obj/Debug/net7.0/gpt_api.Core.pdb
  40. BIN
      gpt_api.Core/obj/Debug/net7.0/ref/gpt_api.Core.dll
  41. BIN
      gpt_api.Core/obj/Debug/net7.0/refint/gpt_api.Core.dll
  42. 6 0
      gpt_api.Entity/System/SysUserEntiy.cs
  43. 54 0
      gpt_api.Entity/bash.sql
  44. BIN
      gpt_api.Entity/bin/Debug/net7.0/gpt_api.Core.dll
  45. BIN
      gpt_api.Entity/bin/Debug/net7.0/gpt_api.Core.pdb
  46. 141 9
      gpt_api.Entity/bin/Debug/net7.0/gpt_api.Core.xml
  47. 22 0
      gpt_api.Entity/bin/Debug/net7.0/gpt_api.Entity.deps.json
  48. BIN
      gpt_api.Entity/bin/Debug/net7.0/gpt_api.Entity.dll
  49. BIN
      gpt_api.Entity/bin/Debug/net7.0/gpt_api.Entity.pdb
  50. BIN
      gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.csproj.AssemblyReference.cache
  51. 1 1
      gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.csproj.CoreCompileInputs.cache
  52. BIN
      gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.dll
  53. BIN
      gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.pdb
  54. BIN
      gpt_api.Entity/obj/Debug/net7.0/ref/gpt_api.Entity.dll
  55. BIN
      gpt_api.Entity/obj/Debug/net7.0/refint/gpt_api.Entity.dll
  56. 1 1
      gpt_api.Respository/Respository.cs
  57. BIN
      gpt_api.Respository/bin/Debug/net7.0/gpt_api.Core.dll
  58. BIN
      gpt_api.Respository/bin/Debug/net7.0/gpt_api.Core.pdb
  59. 141 9
      gpt_api.Respository/bin/Debug/net7.0/gpt_api.Core.xml
  60. 22 0
      gpt_api.Respository/bin/Debug/net7.0/gpt_api.Respository.deps.json
  61. BIN
      gpt_api.Respository/bin/Debug/net7.0/gpt_api.Respository.dll
  62. BIN
      gpt_api.Respository/bin/Debug/net7.0/gpt_api.Respository.pdb
  63. BIN
      gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.csproj.AssemblyReference.cache
  64. 1 1
      gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.csproj.CoreCompileInputs.cache
  65. BIN
      gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.dll
  66. BIN
      gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.pdb
  67. BIN
      gpt_api.Respository/obj/Debug/net7.0/ref/gpt_api.Respository.dll
  68. BIN
      gpt_api.Respository/obj/Debug/net7.0/refint/gpt_api.Respository.dll
  69. 1 0
      gpt_api.Web.Core/Setup/SqlsugarSetup.cs
  70. 31 30
      gpt_api.Web.Core/Startup.cs
  71. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Application.dll
  72. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Application.pdb
  73. 44 5
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Application.xml
  74. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Core.dll
  75. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Core.pdb
  76. 117 9
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Core.xml
  77. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Entity.dll
  78. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Entity.pdb
  79. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Respository.dll
  80. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Respository.pdb
  81. 25 1
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Web.Core.deps.json
  82. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Web.Core.dll
  83. BIN
      gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Web.Core.pdb
  84. BIN
      gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.csproj.AssemblyReference.cache
  85. 1 1
      gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.csproj.CoreCompileInputs.cache
  86. BIN
      gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.dll
  87. BIN
      gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.pdb
  88. 6 0
      gpt_api.Web.Core/obj/gpt_api.Web.Core.csproj.nuget.dgspec.json
  89. 1 1
      gpt_api.Web.Core/obj/gpt_api.Web.Core.csproj.nuget.g.props
  90. 3 1
      gpt_api.Web.Core/obj/project.assets.json
  91. 1 1
      gpt_api.Web.Core/obj/project.nuget.cache
  92. BIN
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Application.dll
  93. BIN
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Application.pdb
  94. 44 5
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Application.xml
  95. BIN
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Core.dll
  96. BIN
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Core.pdb
  97. 117 9
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Core.xml
  98. BIN
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Entity.dll
  99. BIN
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Entity.pdb
  100. BIN
      gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Respository.dll

+ 6 - 1
gpt_api.Application/GlobalUsings.cs

@@ -6,10 +6,15 @@ global using Furion.DynamicApiController;
 global using Furion.Extensions;
 global using Furion.FriendlyException;
 global using Furion.Logging;
+global using Furion.DatabaseAccessor;
 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;
+global using SqlSugar;
+global using gpt_api.Core.Consts;
+global using gpt_api.Respository;
+global using gpt_api.Entity.System;
+global using gpt_api.Core.Utils;

+ 0 - 6
gpt_api.Application/System/Services/ISystemService.cs

@@ -1,6 +0,0 @@
-namespace gpt_api.Application;
-
-public interface ISystemService
-{
-    string GetDescription();
-}

+ 0 - 9
gpt_api.Application/System/Services/SystemService.cs

@@ -1,9 +0,0 @@
-namespace gpt_api.Application;
-
-public class SystemService : ISystemService, ITransient
-{
-    public string GetDescription()
-    {
-        return "让 .NET 开发更简单,更通用,更流行。";
-    }
-}

+ 0 - 22
gpt_api.Application/System/SystemAppService.cs

@@ -1,22 +0,0 @@
-namespace gpt_api.Application;
-
-/// <summary>
-/// 系统服务接口
-/// </summary>
-public class SystemAppService : IDynamicApiController
-{
-    private readonly ISystemService _systemService;
-    public SystemAppService(ISystemService systemService)
-    {
-        _systemService = systemService;
-    }
-
-    /// <summary>
-    /// 获取系统描述
-    /// </summary>
-    /// <returns></returns>
-    public string GetDescription()
-    {
-        return _systemService.GetDescription();
-    }
-}

+ 34 - 7
gpt_api.Application/System/user/UserService.cs

@@ -1,20 +1,47 @@
 
+
+
+using gpt_api.Application.System.user.dto;
+
 namespace gpt_api.Application.System.user
 {
+    /// <summary>
+    /// 用户接口
+    /// </summary>
+	[ApiDescriptionSettings(ApiGroupConsts.System, Module = ApiGroupConsts.System)]
 	public class UserService : IDynamicApiController
     {
-		public UserService()
-		{
-
-		}
-
+        private readonly IRepository<SysUserEntiy> _sysUserRepository;
+        private readonly IRepository<SysRoleEntity> _sysRoleRepository;
+        private readonly IRepository<SysUserRoleEntity> _sysUserRoleRepository;
+        public UserService(IRepository<SysUserEntiy> sysUserRepository, IRepository<SysRoleEntity> sysRoleRepository, IRepository<SysUserRoleEntity> sysUserRoleRepository)
+        {
+            _sysUserRepository = sysUserRepository;
+            _sysRoleRepository = sysRoleRepository;
+            _sysUserRoleRepository = sysUserRoleRepository;
+        }
+        
         /// <summary>
         /// 登陆接口
         /// </summary>
         /// <returns></returns>
-        public string Login()
+        [UnitOfWork]
+        [HttpGet]
+        public async Task<ICollection<UserOut>> Login()
         {
-            return "登陆";
+            var list = await _sysUserRepository.GetListAsync<UserOut>();
+            return list;
+        }
+
+        [UnitOfWork]
+        public async Task Add()
+        { 
+            /*
+             *
+             
+             */
+            
+            
         }
     }
 }

+ 47 - 0
gpt_api.Application/System/user/dto/UserOut.cs

@@ -0,0 +1,47 @@
+namespace gpt_api.Application.System.user.dto;
+
+public class UserOut
+{
+    /// <summary>
+    /// 用户ID
+    /// </summary>
+    public int Id { get; set; }
+    /// <summary>
+    /// 帐号
+    /// </summary>
+    public string account { get; set; }
+    /// <summary>
+    /// 密码
+    /// </summary>
+    public string password { get; set; }
+
+    /// <summary>
+    /// email
+    /// </summary>
+    public string email { get; set; }
+
+    /// <summary>
+    /// 手机号
+    /// </summary>
+    public string iphone { get; set; }
+
+    /// <summary>
+    /// 登陆IP
+    /// </summary>
+    public string lastloginip { get; set; }
+
+    /// <summary>
+    /// 是否有效
+    /// </summary>
+    public bool? isactive { get; set; }
+    /// <summary>
+    /// 最后登录时间
+    /// </summary>
+    public DateTime? lastloginTime { get; set; }
+
+
+    /// <summary>
+    /// 到期时间
+    /// </summary>
+    public DateTime? expirationtime { get; set; }
+}

+ 56 - 0
gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.deps.json

@@ -36,6 +36,8 @@
       "gpt_api.Application/1.0.0": {
         "dependencies": {
           "gpt_api.Core": "1.0.0",
+          "gpt_api.Entity": "1.0.0",
+          "gpt_api.Respository": "1.0.0",
           "Microsoft.AspNetCore.Antiforgery": "7.0.0.0",
           "Microsoft.AspNetCore.Authentication.Abstractions": "7.0.0.0",
           "Microsoft.AspNetCore.Authentication.Cookies": "7.0.0.0",
@@ -959,6 +961,20 @@
           "lib/net7.0/MySqlConnector.dll": {}
         }
       },
+      "Namotion.Reflection/2.1.1": {
+        "dependencies": {
+          "Microsoft.CSharp": "4.7.0"
+        },
+        "runtime": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {
+            "assemblyVersion": "2.1.1.0",
+            "fileVersion": "2.1.1.0"
+          }
+        },
+        "compile": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {}
+        }
+      },
       "Newtonsoft.Json/13.0.2": {
         "runtime": {
           "lib/net6.0/Newtonsoft.Json.dll": {
@@ -1750,6 +1766,7 @@
           "Furion.Extras.Authentication.JwtBearer": "4.8.7.36",
           "Furion.Extras.ObjectMapper.Mapster": "4.8.7.36",
           "Furion.Pure": "4.8.7.36",
+          "Namotion.Reflection": "2.1.1",
           "SqlSugarCore": "5.1.4.65"
         },
         "runtime": {
@@ -1759,6 +1776,28 @@
           "gpt_api.Core.dll": {}
         }
       },
+      "gpt_api.Entity/1.0.0": {
+        "dependencies": {
+          "gpt_api.Core": "1.0.0"
+        },
+        "runtime": {
+          "gpt_api.Entity.dll": {}
+        },
+        "compile": {
+          "gpt_api.Entity.dll": {}
+        }
+      },
+      "gpt_api.Respository/1.0.0": {
+        "dependencies": {
+          "gpt_api.Core": "1.0.0"
+        },
+        "runtime": {
+          "gpt_api.Respository.dll": {}
+        },
+        "compile": {
+          "gpt_api.Respository.dll": {}
+        }
+      },
       "Microsoft.AspNetCore.Antiforgery/7.0.0.0": {
         "compile": {
           "Microsoft.AspNetCore.Antiforgery.dll": {}
@@ -3830,6 +3869,13 @@
       "path": "mysqlconnector/2.2.5",
       "hashPath": "mysqlconnector.2.2.5.nupkg.sha512"
     },
+    "Namotion.Reflection/2.1.1": {
+      "type": "package",
+      "serviceable": true,
+      "sha512": "sha512-trZzWMjzoZyfn34HtMs6cuoR0ssPZGpn9pyBWMGkaHdGA9VZzWLho+Rldtf+Ojej596PIal/vPdrDr1+MERXbA==",
+      "path": "namotion.reflection/2.1.1",
+      "hashPath": "namotion.reflection.2.1.1.nupkg.sha512"
+    },
     "Newtonsoft.Json/13.0.2": {
       "type": "package",
       "serviceable": true,
@@ -4325,6 +4371,16 @@
       "serviceable": false,
       "sha512": ""
     },
+    "gpt_api.Entity/1.0.0": {
+      "type": "project",
+      "serviceable": false,
+      "sha512": ""
+    },
+    "gpt_api.Respository/1.0.0": {
+      "type": "project",
+      "serviceable": false,
+      "sha512": ""
+    },
     "Microsoft.AspNetCore.Antiforgery/7.0.0.0": {
       "type": "referenceassembly",
       "serviceable": false,

BIN
gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.dll


BIN
gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.pdb


+ 44 - 5
gpt_api.Application/bin/Debug/net7.0/gpt_api.Application.xml

@@ -4,16 +4,55 @@
         <name>gpt_api.Application</name>
     </assembly>
     <members>
-        <member name="T:gpt_api.Application.SystemAppService">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.Id">
             <summary>
-            系统服务接口
+            用户ID
             </summary>
         </member>
-        <member name="M:gpt_api.Application.SystemAppService.GetDescription">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.account">
             <summary>
-            获取系统描述
+            帐号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.password">
+            <summary>
+            密码
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.email">
+            <summary>
+            email
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.iphone">
+            <summary>
+            手机号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginip">
+            <summary>
+            登陆IP
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.isactive">
+            <summary>
+            是否有效
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginTime">
+            <summary>
+            最后登录时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.expirationtime">
+            <summary>
+            到期时间
+            </summary>
+        </member>
+        <member name="T:gpt_api.Application.System.user.UserService">
+            <summary>
+            用户接口
             </summary>
-            <returns></returns>
         </member>
         <member name="M:gpt_api.Application.System.user.UserService.Login">
             <summary>

BIN
gpt_api.Application/bin/Debug/net7.0/gpt_api.Core.dll


BIN
gpt_api.Application/bin/Debug/net7.0/gpt_api.Core.pdb


+ 117 - 9
gpt_api.Application/bin/Debug/net7.0/gpt_api.Core.xml

@@ -4,29 +4,79 @@
         <name>gpt_api.Core</name>
     </assembly>
     <members>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreationTime">
+        <member name="T:gpt_api.Core.Consts.ApiGroupConsts">
             <summary>
-            创建时间
+            api分组数据
+            </summary>
+        </member>
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.System">
+            <summary>
+            系统
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreatorUserId">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.Core">
             <summary>
-            创建人ID 
+            公共功能
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.createtime">
+            <summary>
+            创建时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.LastModificationTime">
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.updatetime">
             <summary>
             最近更新时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeletionTime">
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedInput">
             <summary>
-            删除时间
+            分页input
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeleterUserId">
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageIndex">
             <summary>
-            删除人id
+            当前页数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageSize">
+            <summary>
+            每页显示条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.OrderByField">
+            <summary>
+            排序字段(包含字段和排序方式,用单空格分割)
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.KeyWord">
+            <summary>
+            模糊查询参数
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedList`1">
+            <summary>
+            分页列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.TotalCount">
+            <summary>
+            总条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.List">
+            <summary>
+            列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.createtime">
+            <summary>
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.updatetime">
+            <summary>
+            最近更新时间
             </summary>
         </member>
         <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.IsDeleted">
@@ -39,6 +89,50 @@
             主建ID
             </summary>
         </member>
+        <member name="T:gpt_api.Core.Extensions.EnumExtension">
+            <summary>
+            枚举扩展方法
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.ListExtension">
+            <summary>
+            列表扩展方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.ToTree``1(System.Collections.Generic.List{``0},System.String,System.String,System.String,System.Object)">
+            <summary>
+            列表转Tree
+            使用反射进行转换,仅限小型列表数据使用
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="list"></param>
+            <param name="idFieldName">主键所属字段</param>
+            <param name="pIdFieldName">parent关联字段</param>
+            <param name="childFieldName">将要转换的子集列表字段</param>
+            <param name="pIdValue">parent关联字段的值</param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.Join(System.Collections.Generic.IEnumerable{System.String},System.String)">
+            <summary>
+            扩展列表转字符串分割拼接
+            </summary>
+            <param name="list"></param>
+            <param name="splitStr"></param>
+            <returns></returns>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.PagedQueryableExtension">
+            <summary>
+            分页扩展
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.PagedQueryableExtension.ToPagedListAsync``1(SqlSugar.ISugarQueryable{``0},gpt_api.Core.Dtos.Dto.PagedInput)">
+            <summary>
+            获取分页列表
+            </summary>
+            <param name="query"></param>
+            <param name="page"></param>
+            <returns></returns>
+        </member>
         <member name="T:gpt_api.Core.Extensions.TrimExtension">
             <summary>
             去除空格扩展方法
@@ -51,5 +145,19 @@
             <param name="obj">对象</param>
             <returns></returns>
         </member>
+        <member name="T:Photo.Core.Extensions.AdaptExtension">
+            <summary>
+            映射器扩展方法
+            </summary>
+        </member>
+        <member name="M:Photo.Core.Extensions.AdaptExtension.AdaptTo``2(``0,``1@)">
+            <summary>
+            映射器扩展方法-将input中带有AdaptMemberAttribute标识的字段自动转换赋值至实体对象中
+            </summary>
+            <typeparam name="T_input"></typeparam>
+            <typeparam name="T_entity"></typeparam>
+            <param name="input"></param>
+            <param name="entity"></param>
+        </member>
     </members>
 </doc>

+ 2 - 5
gpt_api.Application/gpt_api.Application.csproj

@@ -24,11 +24,8 @@
 
 	<ItemGroup>
 		<ProjectReference Include="..\gpt_api.Core\gpt_api.Core.csproj" />
-	</ItemGroup>
-
-	<ItemGroup>
-		<Folder Include="System\Services\" />
-		<Folder Include="System\user\" />
+		<ProjectReference Include="..\gpt_api.Entity\gpt_api.Entity.csproj" />
+		<ProjectReference Include="..\gpt_api.Respository\gpt_api.Respository.csproj" />
 	</ItemGroup>
 
 </Project>

+ 44 - 5
gpt_api.Application/gpt_api.Application.xml

@@ -4,16 +4,55 @@
         <name>gpt_api.Application</name>
     </assembly>
     <members>
-        <member name="T:gpt_api.Application.SystemAppService">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.Id">
             <summary>
-            系统服务接口
+            用户ID
             </summary>
         </member>
-        <member name="M:gpt_api.Application.SystemAppService.GetDescription">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.account">
             <summary>
-            获取系统描述
+            帐号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.password">
+            <summary>
+            密码
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.email">
+            <summary>
+            email
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.iphone">
+            <summary>
+            手机号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginip">
+            <summary>
+            登陆IP
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.isactive">
+            <summary>
+            是否有效
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginTime">
+            <summary>
+            最后登录时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.expirationtime">
+            <summary>
+            到期时间
+            </summary>
+        </member>
+        <member name="T:gpt_api.Application.System.user.UserService">
+            <summary>
+            用户接口
             </summary>
-            <returns></returns>
         </member>
         <member name="M:gpt_api.Application.System.user.UserService.Login">
             <summary>

BIN
gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.csproj.AssemblyReference.cache


+ 1 - 1
gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-1e2406d42d79de177cc5f4f9add8a0fc9cd6b6d3
+6aaad05c3cb040765fd670f1ca044f8d45436d2f

+ 4 - 0
gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.csproj.FileListAbsolute.txt

@@ -312,3 +312,7 @@
 /Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/obj/Debug/net7.0/refint/gpt_api.Application.dll
 /Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.pdb
 /Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/obj/Debug/net7.0/ref/gpt_api.Application.dll
+/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/bin/Debug/net7.0/gpt_api.Entity.dll
+/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/bin/Debug/net7.0/gpt_api.Respository.dll
+/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/bin/Debug/net7.0/gpt_api.Entity.pdb
+/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/bin/Debug/net7.0/gpt_api.Respository.pdb

BIN
gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.dll


BIN
gpt_api.Application/obj/Debug/net7.0/gpt_api.Application.pdb


BIN
gpt_api.Application/obj/Debug/net7.0/ref/gpt_api.Application.dll


BIN
gpt_api.Application/obj/Debug/net7.0/refint/gpt_api.Application.dll


+ 122 - 0
gpt_api.Application/obj/gpt_api.Application.csproj.nuget.dgspec.json

@@ -29,6 +29,12 @@
             "projectReferences": {
               "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj": {
                 "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj"
+              },
+              "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj": {
+                "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj"
+              },
+              "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj": {
+                "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj"
               }
             }
           }
@@ -137,6 +143,122 @@
           "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.202/RuntimeIdentifierGraph.json"
         }
       }
+    },
+    "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj",
+        "projectName": "gpt_api.Entity",
+        "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj",
+        "packagesPath": "/Users/cauto/.nuget/packages/",
+        "outputPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/obj/",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "/Users/cauto/.nuget/NuGet/NuGet.Config"
+        ],
+        "originalTargetFrameworks": [
+          "net7.0"
+        ],
+        "sources": {
+          "/usr/local/share/dotnet/library-packs": {},
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net7.0": {
+            "targetAlias": "net7.0",
+            "projectReferences": {
+              "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj": {
+                "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj"
+              }
+            }
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        }
+      },
+      "frameworks": {
+        "net7.0": {
+          "targetAlias": "net7.0",
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.202/RuntimeIdentifierGraph.json"
+        }
+      }
+    },
+    "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj",
+        "projectName": "gpt_api.Respository",
+        "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj",
+        "packagesPath": "/Users/cauto/.nuget/packages/",
+        "outputPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/obj/",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "/Users/cauto/.nuget/NuGet/NuGet.Config"
+        ],
+        "originalTargetFrameworks": [
+          "net7.0"
+        ],
+        "sources": {
+          "/usr/local/share/dotnet/library-packs": {},
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net7.0": {
+            "targetAlias": "net7.0",
+            "projectReferences": {
+              "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj": {
+                "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj"
+              }
+            }
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        }
+      },
+      "frameworks": {
+        "net7.0": {
+          "targetAlias": "net7.0",
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.202/RuntimeIdentifierGraph.json"
+        }
+      }
     }
   }
 }

+ 1 - 1
gpt_api.Application/obj/gpt_api.Application.csproj.nuget.g.props

@@ -7,7 +7,7 @@
     <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/cauto/.nuget/packages/</NuGetPackageRoot>
     <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/cauto/.nuget/packages/</NuGetPackageFolders>
     <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
-    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
   </PropertyGroup>
   <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
     <SourceRoot Include="/Users/cauto/.nuget/packages/" />

+ 45 - 1
gpt_api.Application/obj/project.assets.json

@@ -2029,6 +2029,32 @@
         "runtime": {
           "bin/placeholder/gpt_api.Core.dll": {}
         }
+      },
+      "gpt_api.Entity/1.0.0": {
+        "type": "project",
+        "framework": ".NETCoreApp,Version=v7.0",
+        "dependencies": {
+          "gpt_api.Core": "1.0.0"
+        },
+        "compile": {
+          "bin/placeholder/gpt_api.Entity.dll": {}
+        },
+        "runtime": {
+          "bin/placeholder/gpt_api.Entity.dll": {}
+        }
+      },
+      "gpt_api.Respository/1.0.0": {
+        "type": "project",
+        "framework": ".NETCoreApp,Version=v7.0",
+        "dependencies": {
+          "gpt_api.Core": "1.0.0"
+        },
+        "compile": {
+          "bin/placeholder/gpt_api.Respository.dll": {}
+        },
+        "runtime": {
+          "bin/placeholder/gpt_api.Respository.dll": {}
+        }
       }
     }
   },
@@ -6586,11 +6612,23 @@
       "type": "project",
       "path": "../gpt_api.Core/gpt_api.Core.csproj",
       "msbuildProject": "../gpt_api.Core/gpt_api.Core.csproj"
+    },
+    "gpt_api.Entity/1.0.0": {
+      "type": "project",
+      "path": "../gpt_api.Entity/gpt_api.Entity.csproj",
+      "msbuildProject": "../gpt_api.Entity/gpt_api.Entity.csproj"
+    },
+    "gpt_api.Respository/1.0.0": {
+      "type": "project",
+      "path": "../gpt_api.Respository/gpt_api.Respository.csproj",
+      "msbuildProject": "../gpt_api.Respository/gpt_api.Respository.csproj"
     }
   },
   "projectFileDependencyGroups": {
     "net7.0": [
-      "gpt_api.Core >= 1.0.0"
+      "gpt_api.Core >= 1.0.0",
+      "gpt_api.Entity >= 1.0.0",
+      "gpt_api.Respository >= 1.0.0"
     ]
   },
   "packageFolders": {
@@ -6621,6 +6659,12 @@
           "projectReferences": {
             "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj": {
               "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj"
+            },
+            "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj": {
+              "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj"
+            },
+            "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj": {
+              "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj"
             }
           }
         }

+ 1 - 1
gpt_api.Application/obj/project.nuget.cache

@@ -1,6 +1,6 @@
 {
   "version": 2,
-  "dgSpecHash": "aUP4uj9ujM9HOrEuH8kSE9DebnxRuj77l27uOiMxchv7jGm/84WdGpiQrZJ7ZYXscCDJeihybhO/l/9EQdjSpw==",
+  "dgSpecHash": "GXCqM1Dqf/uEuyZDl9ZkDzt0H09hBImn6VL+f7+MvJIOx9g2ET4pfyi5Yr8tdqpLTQMHGtduoIfpoSFcUs+J7Q==",
   "success": true,
   "projectFilePath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/gpt_api.Application.csproj",
   "expectedPackageFiles": [

+ 1 - 1
gpt_api.Application/obj/project.packagespec.json

@@ -1 +1 @@
-"restore":{"projectUniqueName":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/gpt_api.Application.csproj","projectName":"gpt_api.Application","projectPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/gpt_api.Application.csproj","outputPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net7.0"],"sources":{"/usr/local/share/dotnet/library-packs":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj":{"projectPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj"}}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/local/share/dotnet/sdk/7.0.202/RuntimeIdentifierGraph.json"}}
+"restore":{"projectUniqueName":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/gpt_api.Application.csproj","projectName":"gpt_api.Application","projectPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/gpt_api.Application.csproj","outputPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Application/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net7.0"],"sources":{"/usr/local/share/dotnet/library-packs":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj":{"projectPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj"},"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj":{"projectPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj"},"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj":{"projectPath":"/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj"}}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/local/share/dotnet/sdk/7.0.202/RuntimeIdentifierGraph.json"}}

+ 16 - 0
gpt_api.Core/Consts/ApiGroupConsts.cs

@@ -0,0 +1,16 @@
+namespace gpt_api.Core.Consts;
+
+/// <summary>
+/// api分组数据
+/// </summary>
+public static class ApiGroupConsts
+{
+    /// <summary>
+    /// 系统
+    /// </summary>
+    public const string System = "System";
+    /// <summary>
+    /// 公共功能
+    /// </summary>
+    public const string Core = "Core";
+}

+ 4 - 1
gpt_api.Core/Dtos/Entity/BaseEntity.cs

@@ -12,7 +12,10 @@
         /// </summary>
         public DateTime? updatetime { get; set; }
  
-
+        /// <summary>
+        /// 是否删除
+        /// </summary>
+        public bool? IsDeleted { get; set; } = false;
     }
 }
 

+ 3 - 1
gpt_api.Core/GlobalUsings.cs

@@ -1,4 +1,5 @@
 global using Furion;
+global using Furion.FriendlyException;
 global using SqlSugar;
 global using System;
 global using System.Collections.Generic;
@@ -8,4 +9,5 @@ global using System.Threading.Tasks;
 global using System.ComponentModel.DataAnnotations;
 global using gpt_api.Core.Extensions;
 global using gpt_api.Core.Dtos.Dto;
-global using gpt_api.Core.Dtos.Entity;
+global using gpt_api.Core.Dtos.Entity;
+global using System.Threading;

+ 75 - 0
gpt_api.Core/Utils/MutexUtil.cs

@@ -0,0 +1,75 @@
+namespace gpt_api.Core.Utils;
+
+/// <summary>
+/// mutex公共方法
+/// </summary>
+public static class MutexUtil
+{
+    /// <summary>
+    /// mutex互斥锁
+    /// 根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+    /// </summary>
+    /// <typeparam name="T"></typeparam>
+    /// <param name="mutKey"></param>
+    /// <param name="action"></param>
+    /// <returns></returns>
+    public static T MutexNoWait<T>(string mutKey, Func<T> action)
+    {
+        bool isWait = false;
+        using (Mutex mut = new Mutex(false, mutKey))
+        {
+            try
+            {
+                isWait = mut.WaitOne(0);
+                if (!isWait)
+                {
+                    throw Oops.Oh("当前接口存在正在进行中的访问");
+                }
+
+                return action();
+            }
+            finally
+            {
+                if (isWait)//WaitOne和ReleaseMutex成对出现
+                {
+                    mut.ReleaseMutex();
+                }
+            }
+        }
+    }
+
+    /// <summary>
+    /// mutex互斥锁
+    /// 根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+    /// </summary>
+    /// <param name="mutKey"></param>
+    /// <param name="action"></param>
+    /// <returns></returns>
+    public static void MutexNoWait(string mutKey, Action action)
+    {
+        bool isWait = false;
+        using (Mutex mut = new Mutex(false, mutKey))
+        {
+            try
+            {
+                isWait = mut.WaitOne(0);
+                if (!isWait)
+                {
+                    throw Oops.Oh("当前接口存在正在进行中的访问");
+                }
+
+                action();
+            }
+            finally
+            {
+                if (isWait)//WaitOne和ReleaseMutex成对出现
+                {
+                    mut.ReleaseMutex();
+                }
+            }
+        }
+    }
+
+
+
+}

+ 22 - 0
gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.deps.json

@@ -38,6 +38,7 @@
           "Furion.Extras.Authentication.JwtBearer": "4.8.7.36",
           "Furion.Extras.ObjectMapper.Mapster": "4.8.7.36",
           "Furion.Pure": "4.8.7.36",
+          "Namotion.Reflection": "2.1.1",
           "SqlSugarCore": "5.1.4.65",
           "Microsoft.AspNetCore.Antiforgery": "7.0.0.0",
           "Microsoft.AspNetCore.Authentication.Abstractions": "7.0.0.0",
@@ -962,6 +963,20 @@
           "lib/net7.0/MySqlConnector.dll": {}
         }
       },
+      "Namotion.Reflection/2.1.1": {
+        "dependencies": {
+          "Microsoft.CSharp": "4.7.0"
+        },
+        "runtime": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {
+            "assemblyVersion": "2.1.1.0",
+            "fileVersion": "2.1.1.0"
+          }
+        },
+        "compile": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {}
+        }
+      },
       "Newtonsoft.Json/13.0.2": {
         "runtime": {
           "lib/net6.0/Newtonsoft.Json.dll": {
@@ -3819,6 +3834,13 @@
       "path": "mysqlconnector/2.2.5",
       "hashPath": "mysqlconnector.2.2.5.nupkg.sha512"
     },
+    "Namotion.Reflection/2.1.1": {
+      "type": "package",
+      "serviceable": true,
+      "sha512": "sha512-trZzWMjzoZyfn34HtMs6cuoR0ssPZGpn9pyBWMGkaHdGA9VZzWLho+Rldtf+Ojej596PIal/vPdrDr1+MERXbA==",
+      "path": "namotion.reflection/2.1.1",
+      "hashPath": "namotion.reflection.2.1.1.nupkg.sha512"
+    },
     "Newtonsoft.Json/13.0.2": {
       "type": "package",
       "serviceable": true,

BIN
gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.dll


BIN
gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.pdb


+ 141 - 9
gpt_api.Core/bin/Debug/net7.0/gpt_api.Core.xml

@@ -4,29 +4,79 @@
         <name>gpt_api.Core</name>
     </assembly>
     <members>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreationTime">
+        <member name="T:gpt_api.Core.Consts.ApiGroupConsts">
             <summary>
-            创建时间
+            api分组数据
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreatorUserId">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.System">
             <summary>
-            创建人ID 
+            系统
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.LastModificationTime">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.Core">
+            <summary>
+            公共功能
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.createtime">
+            <summary>
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.updatetime">
             <summary>
             最近更新时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeletionTime">
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedInput">
+            <summary>
+            分页input
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageIndex">
+            <summary>
+            当前页数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageSize">
+            <summary>
+            每页显示条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.OrderByField">
+            <summary>
+            排序字段(包含字段和排序方式,用单空格分割)
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.KeyWord">
+            <summary>
+            模糊查询参数
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedList`1">
+            <summary>
+            分页列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.TotalCount">
+            <summary>
+            总条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.List">
             <summary>
-            删除时间
+            列表
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeleterUserId">
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.createtime">
             <summary>
-            删除人id
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.updatetime">
+            <summary>
+            最近更新时间
             </summary>
         </member>
         <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.IsDeleted">
@@ -39,6 +89,50 @@
             主建ID
             </summary>
         </member>
+        <member name="T:gpt_api.Core.Extensions.EnumExtension">
+            <summary>
+            枚举扩展方法
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.ListExtension">
+            <summary>
+            列表扩展方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.ToTree``1(System.Collections.Generic.List{``0},System.String,System.String,System.String,System.Object)">
+            <summary>
+            列表转Tree
+            使用反射进行转换,仅限小型列表数据使用
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="list"></param>
+            <param name="idFieldName">主键所属字段</param>
+            <param name="pIdFieldName">parent关联字段</param>
+            <param name="childFieldName">将要转换的子集列表字段</param>
+            <param name="pIdValue">parent关联字段的值</param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.Join(System.Collections.Generic.IEnumerable{System.String},System.String)">
+            <summary>
+            扩展列表转字符串分割拼接
+            </summary>
+            <param name="list"></param>
+            <param name="splitStr"></param>
+            <returns></returns>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.PagedQueryableExtension">
+            <summary>
+            分页扩展
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.PagedQueryableExtension.ToPagedListAsync``1(SqlSugar.ISugarQueryable{``0},gpt_api.Core.Dtos.Dto.PagedInput)">
+            <summary>
+            获取分页列表
+            </summary>
+            <param name="query"></param>
+            <param name="page"></param>
+            <returns></returns>
+        </member>
         <member name="T:gpt_api.Core.Extensions.TrimExtension">
             <summary>
             去除空格扩展方法
@@ -51,5 +145,43 @@
             <param name="obj">对象</param>
             <returns></returns>
         </member>
+        <member name="T:gpt_api.Core.Utils.MutexUtil">
+            <summary>
+            mutex公共方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait``1(System.String,System.Func{``0})">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait(System.String,System.Action)">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="T:Photo.Core.Extensions.AdaptExtension">
+            <summary>
+            映射器扩展方法
+            </summary>
+        </member>
+        <member name="M:Photo.Core.Extensions.AdaptExtension.AdaptTo``2(``0,``1@)">
+            <summary>
+            映射器扩展方法-将input中带有AdaptMemberAttribute标识的字段自动转换赋值至实体对象中
+            </summary>
+            <typeparam name="T_input"></typeparam>
+            <typeparam name="T_entity"></typeparam>
+            <param name="input"></param>
+            <param name="entity"></param>
+        </member>
     </members>
 </doc>

+ 141 - 9
gpt_api.Core/gpt_api.Core.xml

@@ -4,29 +4,79 @@
         <name>gpt_api.Core</name>
     </assembly>
     <members>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreationTime">
+        <member name="T:gpt_api.Core.Consts.ApiGroupConsts">
             <summary>
-            创建时间
+            api分组数据
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreatorUserId">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.System">
             <summary>
-            创建人ID 
+            系统
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.LastModificationTime">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.Core">
+            <summary>
+            公共功能
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.createtime">
+            <summary>
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.updatetime">
             <summary>
             最近更新时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeletionTime">
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedInput">
+            <summary>
+            分页input
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageIndex">
+            <summary>
+            当前页数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageSize">
+            <summary>
+            每页显示条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.OrderByField">
+            <summary>
+            排序字段(包含字段和排序方式,用单空格分割)
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.KeyWord">
+            <summary>
+            模糊查询参数
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedList`1">
+            <summary>
+            分页列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.TotalCount">
+            <summary>
+            总条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.List">
             <summary>
-            删除时间
+            列表
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeleterUserId">
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.createtime">
             <summary>
-            删除人id
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.updatetime">
+            <summary>
+            最近更新时间
             </summary>
         </member>
         <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.IsDeleted">
@@ -39,6 +89,50 @@
             主建ID
             </summary>
         </member>
+        <member name="T:gpt_api.Core.Extensions.EnumExtension">
+            <summary>
+            枚举扩展方法
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.ListExtension">
+            <summary>
+            列表扩展方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.ToTree``1(System.Collections.Generic.List{``0},System.String,System.String,System.String,System.Object)">
+            <summary>
+            列表转Tree
+            使用反射进行转换,仅限小型列表数据使用
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="list"></param>
+            <param name="idFieldName">主键所属字段</param>
+            <param name="pIdFieldName">parent关联字段</param>
+            <param name="childFieldName">将要转换的子集列表字段</param>
+            <param name="pIdValue">parent关联字段的值</param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.Join(System.Collections.Generic.IEnumerable{System.String},System.String)">
+            <summary>
+            扩展列表转字符串分割拼接
+            </summary>
+            <param name="list"></param>
+            <param name="splitStr"></param>
+            <returns></returns>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.PagedQueryableExtension">
+            <summary>
+            分页扩展
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.PagedQueryableExtension.ToPagedListAsync``1(SqlSugar.ISugarQueryable{``0},gpt_api.Core.Dtos.Dto.PagedInput)">
+            <summary>
+            获取分页列表
+            </summary>
+            <param name="query"></param>
+            <param name="page"></param>
+            <returns></returns>
+        </member>
         <member name="T:gpt_api.Core.Extensions.TrimExtension">
             <summary>
             去除空格扩展方法
@@ -51,5 +145,43 @@
             <param name="obj">对象</param>
             <returns></returns>
         </member>
+        <member name="T:gpt_api.Core.Utils.MutexUtil">
+            <summary>
+            mutex公共方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait``1(System.String,System.Func{``0})">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait(System.String,System.Action)">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="T:Photo.Core.Extensions.AdaptExtension">
+            <summary>
+            映射器扩展方法
+            </summary>
+        </member>
+        <member name="M:Photo.Core.Extensions.AdaptExtension.AdaptTo``2(``0,``1@)">
+            <summary>
+            映射器扩展方法-将input中带有AdaptMemberAttribute标识的字段自动转换赋值至实体对象中
+            </summary>
+            <typeparam name="T_input"></typeparam>
+            <typeparam name="T_entity"></typeparam>
+            <param name="input"></param>
+            <param name="entity"></param>
+        </member>
     </members>
 </doc>

+ 1 - 1
gpt_api.Core/obj/Debug/net7.0/gpt_api.Core.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-78b745959ee0d3cc8add0586572edec72a0c8aba
+9b60f92140d32023e7327f644daa066c9419d80a

BIN
gpt_api.Core/obj/Debug/net7.0/gpt_api.Core.dll


BIN
gpt_api.Core/obj/Debug/net7.0/gpt_api.Core.pdb


BIN
gpt_api.Core/obj/Debug/net7.0/ref/gpt_api.Core.dll


BIN
gpt_api.Core/obj/Debug/net7.0/refint/gpt_api.Core.dll


+ 6 - 0
gpt_api.Entity/System/SysUserEntiy.cs

@@ -1,5 +1,11 @@
 namespace gpt_api.Entity.System
 {
+    /*
+     
+     */
+    /// <summary>
+    /// 
+    /// </summary>
     [SugarTable("Sys_User", "系统-用户")]
     public class SysUserEntiy : BaseEntity
 	{

+ 54 - 0
gpt_api.Entity/bash.sql

@@ -0,0 +1,54 @@
+CREATE TABLE sys_user
+(
+    id             INT PRIMARY KEY NOT NULL AUTO_INCREMENT COMMENT '用户的id',
+    account        VARCHAR(200)    NOT NULL COMMENT '用户帐号',
+    password       VARCHAR(64)     NOT NULL COMMENT '用户密码',
+    email          VARCHAR(64)     NOT NULL COMMENT '用户邮箱',
+    iphone         VARCHAR(64) NULL DEFAULT NULL COMMENT '用户手机号',
+    lastloginip    VARCHAR(64) NULL DEFAULT NULL COMMENT '登陆IP',
+    isactive       INT             NOT NULL DEFAULT '0' COMMENT '是否激活',
+    IsDeleted      INT             NOT NULL DEFAULT '0' COMMENT '假删除',
+    lastloginTime  DATETIME        NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次登陆时间',
+    createtime     DATETIME        NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '用户创建时间',
+    updatetime     DATETIME        NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
+    expirationtime DATETIME        NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '用户的到期时间',
+    INDEX          account_index (account)
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci;
+
+
+CREATE TABLE sys_role
+(
+    id          INT PRIMARY KEY NOT NULL AUTO_INCREMENT COMMENT '角色的id',
+    role_name   VARCHAR(50)     NOT NULL COMMENT '角色的名称',
+    description VARCHAR(200)    NOT NULL COMMENT '角色的描述',
+    user_id     INT             NOT NULL COMMENT '用户id',
+    INDEX       user_index (user_id),
+    FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci;
+
+CREATE TABLE sys_permission
+(
+    id              INT PRIMARY KEY NOT NULL AUTO_INCREMENT COMMENT '权限的id',
+    permission_name VARCHAR(50)     NOT NULL COMMENT '权限的名称',
+    description     VARCHAR(200)    NOT NULL COMMENT '权限的描述',
+    role_id         INT             NOT NULL COMMENT '角色id',
+    INDEX           role_index (role_id),
+    FOREIGN KEY (role_id) REFERENCES role (id) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci;
+
+
+
+INSERT INTO role (role_name, description, user_id)
+VALUES ('admin', '管理员', 1),
+       ('editor', '编辑员', 2),
+       ('viewer', '观察员', 3),
+       ('operator', '操作员', 4),
+       ('guest', '游客', 5);
+
+
+INSERT INTO permission (permission_name, description, role_id)
+VALUES ('read', '读取权限', 1),
+       ('write', '写入权限', 2),
+       ('delete', '删除权限', 3),
+       ('execute', '执行权限', 4),
+       ('view', '查看权限', 5);

BIN
gpt_api.Entity/bin/Debug/net7.0/gpt_api.Core.dll


BIN
gpt_api.Entity/bin/Debug/net7.0/gpt_api.Core.pdb


+ 141 - 9
gpt_api.Entity/bin/Debug/net7.0/gpt_api.Core.xml

@@ -4,29 +4,79 @@
         <name>gpt_api.Core</name>
     </assembly>
     <members>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreationTime">
+        <member name="T:gpt_api.Core.Consts.ApiGroupConsts">
             <summary>
-            创建时间
+            api分组数据
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreatorUserId">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.System">
             <summary>
-            创建人ID 
+            系统
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.LastModificationTime">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.Core">
+            <summary>
+            公共功能
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.createtime">
+            <summary>
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.updatetime">
             <summary>
             最近更新时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeletionTime">
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedInput">
+            <summary>
+            分页input
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageIndex">
+            <summary>
+            当前页数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageSize">
+            <summary>
+            每页显示条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.OrderByField">
+            <summary>
+            排序字段(包含字段和排序方式,用单空格分割)
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.KeyWord">
+            <summary>
+            模糊查询参数
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedList`1">
+            <summary>
+            分页列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.TotalCount">
+            <summary>
+            总条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.List">
             <summary>
-            删除时间
+            列表
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeleterUserId">
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.createtime">
             <summary>
-            删除人id
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.updatetime">
+            <summary>
+            最近更新时间
             </summary>
         </member>
         <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.IsDeleted">
@@ -39,6 +89,50 @@
             主建ID
             </summary>
         </member>
+        <member name="T:gpt_api.Core.Extensions.EnumExtension">
+            <summary>
+            枚举扩展方法
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.ListExtension">
+            <summary>
+            列表扩展方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.ToTree``1(System.Collections.Generic.List{``0},System.String,System.String,System.String,System.Object)">
+            <summary>
+            列表转Tree
+            使用反射进行转换,仅限小型列表数据使用
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="list"></param>
+            <param name="idFieldName">主键所属字段</param>
+            <param name="pIdFieldName">parent关联字段</param>
+            <param name="childFieldName">将要转换的子集列表字段</param>
+            <param name="pIdValue">parent关联字段的值</param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.Join(System.Collections.Generic.IEnumerable{System.String},System.String)">
+            <summary>
+            扩展列表转字符串分割拼接
+            </summary>
+            <param name="list"></param>
+            <param name="splitStr"></param>
+            <returns></returns>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.PagedQueryableExtension">
+            <summary>
+            分页扩展
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.PagedQueryableExtension.ToPagedListAsync``1(SqlSugar.ISugarQueryable{``0},gpt_api.Core.Dtos.Dto.PagedInput)">
+            <summary>
+            获取分页列表
+            </summary>
+            <param name="query"></param>
+            <param name="page"></param>
+            <returns></returns>
+        </member>
         <member name="T:gpt_api.Core.Extensions.TrimExtension">
             <summary>
             去除空格扩展方法
@@ -51,5 +145,43 @@
             <param name="obj">对象</param>
             <returns></returns>
         </member>
+        <member name="T:gpt_api.Core.Utils.MutexUtil">
+            <summary>
+            mutex公共方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait``1(System.String,System.Func{``0})">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait(System.String,System.Action)">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="T:Photo.Core.Extensions.AdaptExtension">
+            <summary>
+            映射器扩展方法
+            </summary>
+        </member>
+        <member name="M:Photo.Core.Extensions.AdaptExtension.AdaptTo``2(``0,``1@)">
+            <summary>
+            映射器扩展方法-将input中带有AdaptMemberAttribute标识的字段自动转换赋值至实体对象中
+            </summary>
+            <typeparam name="T_input"></typeparam>
+            <typeparam name="T_entity"></typeparam>
+            <param name="input"></param>
+            <param name="entity"></param>
+        </member>
     </members>
 </doc>

+ 22 - 0
gpt_api.Entity/bin/Debug/net7.0/gpt_api.Entity.deps.json

@@ -959,6 +959,20 @@
           "lib/net7.0/MySqlConnector.dll": {}
         }
       },
+      "Namotion.Reflection/2.1.1": {
+        "dependencies": {
+          "Microsoft.CSharp": "4.7.0"
+        },
+        "runtime": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {
+            "assemblyVersion": "2.1.1.0",
+            "fileVersion": "2.1.1.0"
+          }
+        },
+        "compile": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {}
+        }
+      },
       "Newtonsoft.Json/13.0.2": {
         "runtime": {
           "lib/net6.0/Newtonsoft.Json.dll": {
@@ -1750,6 +1764,7 @@
           "Furion.Extras.Authentication.JwtBearer": "4.8.7.36",
           "Furion.Extras.ObjectMapper.Mapster": "4.8.7.36",
           "Furion.Pure": "4.8.7.36",
+          "Namotion.Reflection": "2.1.1",
           "SqlSugarCore": "5.1.4.65"
         },
         "runtime": {
@@ -3830,6 +3845,13 @@
       "path": "mysqlconnector/2.2.5",
       "hashPath": "mysqlconnector.2.2.5.nupkg.sha512"
     },
+    "Namotion.Reflection/2.1.1": {
+      "type": "package",
+      "serviceable": true,
+      "sha512": "sha512-trZzWMjzoZyfn34HtMs6cuoR0ssPZGpn9pyBWMGkaHdGA9VZzWLho+Rldtf+Ojej596PIal/vPdrDr1+MERXbA==",
+      "path": "namotion.reflection/2.1.1",
+      "hashPath": "namotion.reflection.2.1.1.nupkg.sha512"
+    },
     "Newtonsoft.Json/13.0.2": {
       "type": "package",
       "serviceable": true,

BIN
gpt_api.Entity/bin/Debug/net7.0/gpt_api.Entity.dll


BIN
gpt_api.Entity/bin/Debug/net7.0/gpt_api.Entity.pdb


BIN
gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.csproj.AssemblyReference.cache


+ 1 - 1
gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-205ec3486f97c0ff4430dc75f0ac678f67089bd9
+b695817d297006f2e56f9e18f1c8554083ed271a

BIN
gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.dll


BIN
gpt_api.Entity/obj/Debug/net7.0/gpt_api.Entity.pdb


BIN
gpt_api.Entity/obj/Debug/net7.0/ref/gpt_api.Entity.dll


BIN
gpt_api.Entity/obj/Debug/net7.0/refint/gpt_api.Entity.dll


+ 1 - 1
gpt_api.Respository/Respository.cs

@@ -206,7 +206,7 @@ namespace gpt_api.Respository
         /// <returns></returns>
         public virtual async Task<TEntity> GetAsync(int primaryKey)
         {
-            return await Context.Queryable<TEntity>().InSingleAsync(primaryKey);
+            return await  Context.Queryable<TEntity>().InSingleAsync(primaryKey);
         }
 
         /// <summary>

BIN
gpt_api.Respository/bin/Debug/net7.0/gpt_api.Core.dll


BIN
gpt_api.Respository/bin/Debug/net7.0/gpt_api.Core.pdb


+ 141 - 9
gpt_api.Respository/bin/Debug/net7.0/gpt_api.Core.xml

@@ -4,29 +4,79 @@
         <name>gpt_api.Core</name>
     </assembly>
     <members>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreationTime">
+        <member name="T:gpt_api.Core.Consts.ApiGroupConsts">
             <summary>
-            创建时间
+            api分组数据
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreatorUserId">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.System">
             <summary>
-            创建人ID 
+            系统
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.LastModificationTime">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.Core">
+            <summary>
+            公共功能
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.createtime">
+            <summary>
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.updatetime">
             <summary>
             最近更新时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeletionTime">
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedInput">
+            <summary>
+            分页input
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageIndex">
+            <summary>
+            当前页数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageSize">
+            <summary>
+            每页显示条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.OrderByField">
+            <summary>
+            排序字段(包含字段和排序方式,用单空格分割)
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.KeyWord">
+            <summary>
+            模糊查询参数
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedList`1">
+            <summary>
+            分页列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.TotalCount">
+            <summary>
+            总条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.List">
             <summary>
-            删除时间
+            列表
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeleterUserId">
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.createtime">
             <summary>
-            删除人id
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.updatetime">
+            <summary>
+            最近更新时间
             </summary>
         </member>
         <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.IsDeleted">
@@ -39,6 +89,50 @@
             主建ID
             </summary>
         </member>
+        <member name="T:gpt_api.Core.Extensions.EnumExtension">
+            <summary>
+            枚举扩展方法
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.ListExtension">
+            <summary>
+            列表扩展方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.ToTree``1(System.Collections.Generic.List{``0},System.String,System.String,System.String,System.Object)">
+            <summary>
+            列表转Tree
+            使用反射进行转换,仅限小型列表数据使用
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="list"></param>
+            <param name="idFieldName">主键所属字段</param>
+            <param name="pIdFieldName">parent关联字段</param>
+            <param name="childFieldName">将要转换的子集列表字段</param>
+            <param name="pIdValue">parent关联字段的值</param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.Join(System.Collections.Generic.IEnumerable{System.String},System.String)">
+            <summary>
+            扩展列表转字符串分割拼接
+            </summary>
+            <param name="list"></param>
+            <param name="splitStr"></param>
+            <returns></returns>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.PagedQueryableExtension">
+            <summary>
+            分页扩展
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.PagedQueryableExtension.ToPagedListAsync``1(SqlSugar.ISugarQueryable{``0},gpt_api.Core.Dtos.Dto.PagedInput)">
+            <summary>
+            获取分页列表
+            </summary>
+            <param name="query"></param>
+            <param name="page"></param>
+            <returns></returns>
+        </member>
         <member name="T:gpt_api.Core.Extensions.TrimExtension">
             <summary>
             去除空格扩展方法
@@ -51,5 +145,43 @@
             <param name="obj">对象</param>
             <returns></returns>
         </member>
+        <member name="T:gpt_api.Core.Utils.MutexUtil">
+            <summary>
+            mutex公共方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait``1(System.String,System.Func{``0})">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Utils.MutexUtil.MutexNoWait(System.String,System.Action)">
+            <summary>
+            mutex互斥锁
+            根据mutKey进行全局互斥,无等待,发现互斥直接报异常
+            </summary>
+            <param name="mutKey"></param>
+            <param name="action"></param>
+            <returns></returns>
+        </member>
+        <member name="T:Photo.Core.Extensions.AdaptExtension">
+            <summary>
+            映射器扩展方法
+            </summary>
+        </member>
+        <member name="M:Photo.Core.Extensions.AdaptExtension.AdaptTo``2(``0,``1@)">
+            <summary>
+            映射器扩展方法-将input中带有AdaptMemberAttribute标识的字段自动转换赋值至实体对象中
+            </summary>
+            <typeparam name="T_input"></typeparam>
+            <typeparam name="T_entity"></typeparam>
+            <param name="input"></param>
+            <param name="entity"></param>
+        </member>
     </members>
 </doc>

+ 22 - 0
gpt_api.Respository/bin/Debug/net7.0/gpt_api.Respository.deps.json

@@ -959,6 +959,20 @@
           "lib/net7.0/MySqlConnector.dll": {}
         }
       },
+      "Namotion.Reflection/2.1.1": {
+        "dependencies": {
+          "Microsoft.CSharp": "4.7.0"
+        },
+        "runtime": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {
+            "assemblyVersion": "2.1.1.0",
+            "fileVersion": "2.1.1.0"
+          }
+        },
+        "compile": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {}
+        }
+      },
       "Newtonsoft.Json/13.0.2": {
         "runtime": {
           "lib/net6.0/Newtonsoft.Json.dll": {
@@ -1750,6 +1764,7 @@
           "Furion.Extras.Authentication.JwtBearer": "4.8.7.36",
           "Furion.Extras.ObjectMapper.Mapster": "4.8.7.36",
           "Furion.Pure": "4.8.7.36",
+          "Namotion.Reflection": "2.1.1",
           "SqlSugarCore": "5.1.4.65"
         },
         "runtime": {
@@ -3830,6 +3845,13 @@
       "path": "mysqlconnector/2.2.5",
       "hashPath": "mysqlconnector.2.2.5.nupkg.sha512"
     },
+    "Namotion.Reflection/2.1.1": {
+      "type": "package",
+      "serviceable": true,
+      "sha512": "sha512-trZzWMjzoZyfn34HtMs6cuoR0ssPZGpn9pyBWMGkaHdGA9VZzWLho+Rldtf+Ojej596PIal/vPdrDr1+MERXbA==",
+      "path": "namotion.reflection/2.1.1",
+      "hashPath": "namotion.reflection.2.1.1.nupkg.sha512"
+    },
     "Newtonsoft.Json/13.0.2": {
       "type": "package",
       "serviceable": true,

BIN
gpt_api.Respository/bin/Debug/net7.0/gpt_api.Respository.dll


BIN
gpt_api.Respository/bin/Debug/net7.0/gpt_api.Respository.pdb


BIN
gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.csproj.AssemblyReference.cache


+ 1 - 1
gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-7c9ba4f9a8875e6294b1ba87dddce1ef666e30dd
+cde2d9444045977585d9310ab0891272759f89ad

BIN
gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.dll


BIN
gpt_api.Respository/obj/Debug/net7.0/gpt_api.Respository.pdb


BIN
gpt_api.Respository/obj/Debug/net7.0/ref/gpt_api.Respository.dll


BIN
gpt_api.Respository/obj/Debug/net7.0/refint/gpt_api.Respository.dll


+ 1 - 0
gpt_api.Web.Core/Setup/SqlsugarSetup.cs

@@ -17,6 +17,7 @@ namespace gpt_api.Web.Core.Setup
 				ConnectionString = conStr,
 				IsAutoCloseConnection = true,
 				InitKeyType = InitKeyType.Attribute,//从特性读取主键自增信息
+             
             };
 
 			SqlSugarScope sqlSugar = new SqlSugarScope(configConnection);

+ 31 - 30
gpt_api.Web.Core/Startup.cs

@@ -1,10 +1,10 @@
 using Furion;
-using Furion.UnifyResult;
-using gpt_api.Web.Core.Filters;
-using gpt_api.Web.Core.Setup;
+using Furion.UnifyResult;
+using gpt_api.Web.Core.Filters;
+using gpt_api.Web.Core.Setup;
 using Microsoft.AspNetCore.Builder;
 using Microsoft.AspNetCore.Hosting;
-using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc;
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.Hosting;
 
@@ -14,36 +14,37 @@ public class Startup : AppStartup
 {
     public void ConfigureServices(IServiceCollection services)
     {
-        services.AddConsoleFormatter();
-        // services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); ;
+        services.AddConsoleFormatter();
+        // services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); ;
         services.AddJwt<JwtHandler>();
-        services.AddCorsAccessor();
-
-        services.AddControllersWithViews()
-        .AddNewtonsoftJson(options =>
-        {
-            options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm:ss";
-        });
+        services.AddCorsAccessor();
+
+        services.AddControllersWithViews()
+        .AddNewtonsoftJson(options =>
+        {
+            options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm:ss";
+        });
 
 
         services.AddControllers()
-                .AddInjectWithUnifyResult<RESTfulResultProvider>();
-
-        //日志配置
-        services.AddLogSetup();
-
-
-        //去除入参string前后空格
-        services.Configure<MvcOptions>(options =>
-        {
-            options.Filters.Add<TrimInputActionFilter>();
-        });
-
-
-        //sqlsugar数据库配置
-        services.AddSqlsugarSetup(App.Configuration["ConnectionStrings:BaseNetDB"]);
-
-        //添加事件总线
+     
+            .AddInjectWithUnifyResult<RESTfulResultProvider>();
+
+        //日志配置
+        services.AddLogSetup();
+
+
+        //去除入参string前后空格
+        services.Configure<MvcOptions>(options =>
+        {
+            options.Filters.Add<TrimInputActionFilter>();
+        });
+
+
+        //sqlsugar数据库配置
+        services.AddSqlsugarSetup(App.Configuration["ConnectionStrings:BaseNetDB"]);
+
+        //添加事件总线
         services.AddEventBus();
 
     }

BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Application.dll


BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Application.pdb


+ 44 - 5
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Application.xml

@@ -4,16 +4,55 @@
         <name>gpt_api.Application</name>
     </assembly>
     <members>
-        <member name="T:gpt_api.Application.SystemAppService">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.Id">
             <summary>
-            系统服务接口
+            用户ID
             </summary>
         </member>
-        <member name="M:gpt_api.Application.SystemAppService.GetDescription">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.account">
             <summary>
-            获取系统描述
+            帐号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.password">
+            <summary>
+            密码
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.email">
+            <summary>
+            email
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.iphone">
+            <summary>
+            手机号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginip">
+            <summary>
+            登陆IP
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.isactive">
+            <summary>
+            是否有效
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginTime">
+            <summary>
+            最后登录时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.expirationtime">
+            <summary>
+            到期时间
+            </summary>
+        </member>
+        <member name="T:gpt_api.Application.System.user.UserService">
+            <summary>
+            用户接口
             </summary>
-            <returns></returns>
         </member>
         <member name="M:gpt_api.Application.System.user.UserService.Login">
             <summary>

BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Core.dll


BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Core.pdb


+ 117 - 9
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Core.xml

@@ -4,29 +4,79 @@
         <name>gpt_api.Core</name>
     </assembly>
     <members>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreationTime">
+        <member name="T:gpt_api.Core.Consts.ApiGroupConsts">
             <summary>
-            创建时间
+            api分组数据
+            </summary>
+        </member>
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.System">
+            <summary>
+            系统
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreatorUserId">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.Core">
             <summary>
-            创建人ID 
+            公共功能
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.createtime">
+            <summary>
+            创建时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.LastModificationTime">
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.updatetime">
             <summary>
             最近更新时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeletionTime">
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedInput">
             <summary>
-            删除时间
+            分页input
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeleterUserId">
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageIndex">
             <summary>
-            删除人id
+            当前页数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageSize">
+            <summary>
+            每页显示条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.OrderByField">
+            <summary>
+            排序字段(包含字段和排序方式,用单空格分割)
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.KeyWord">
+            <summary>
+            模糊查询参数
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedList`1">
+            <summary>
+            分页列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.TotalCount">
+            <summary>
+            总条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.List">
+            <summary>
+            列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.createtime">
+            <summary>
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.updatetime">
+            <summary>
+            最近更新时间
             </summary>
         </member>
         <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.IsDeleted">
@@ -39,6 +89,50 @@
             主建ID
             </summary>
         </member>
+        <member name="T:gpt_api.Core.Extensions.EnumExtension">
+            <summary>
+            枚举扩展方法
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.ListExtension">
+            <summary>
+            列表扩展方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.ToTree``1(System.Collections.Generic.List{``0},System.String,System.String,System.String,System.Object)">
+            <summary>
+            列表转Tree
+            使用反射进行转换,仅限小型列表数据使用
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="list"></param>
+            <param name="idFieldName">主键所属字段</param>
+            <param name="pIdFieldName">parent关联字段</param>
+            <param name="childFieldName">将要转换的子集列表字段</param>
+            <param name="pIdValue">parent关联字段的值</param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.Join(System.Collections.Generic.IEnumerable{System.String},System.String)">
+            <summary>
+            扩展列表转字符串分割拼接
+            </summary>
+            <param name="list"></param>
+            <param name="splitStr"></param>
+            <returns></returns>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.PagedQueryableExtension">
+            <summary>
+            分页扩展
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.PagedQueryableExtension.ToPagedListAsync``1(SqlSugar.ISugarQueryable{``0},gpt_api.Core.Dtos.Dto.PagedInput)">
+            <summary>
+            获取分页列表
+            </summary>
+            <param name="query"></param>
+            <param name="page"></param>
+            <returns></returns>
+        </member>
         <member name="T:gpt_api.Core.Extensions.TrimExtension">
             <summary>
             去除空格扩展方法
@@ -51,5 +145,19 @@
             <param name="obj">对象</param>
             <returns></returns>
         </member>
+        <member name="T:Photo.Core.Extensions.AdaptExtension">
+            <summary>
+            映射器扩展方法
+            </summary>
+        </member>
+        <member name="M:Photo.Core.Extensions.AdaptExtension.AdaptTo``2(``0,``1@)">
+            <summary>
+            映射器扩展方法-将input中带有AdaptMemberAttribute标识的字段自动转换赋值至实体对象中
+            </summary>
+            <typeparam name="T_input"></typeparam>
+            <typeparam name="T_entity"></typeparam>
+            <param name="input"></param>
+            <param name="entity"></param>
+        </member>
     </members>
 </doc>

BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Entity.dll


BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Entity.pdb


BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Respository.dll


BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Respository.pdb


+ 25 - 1
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Web.Core.deps.json

@@ -961,6 +961,20 @@
           "lib/net7.0/MySqlConnector.dll": {}
         }
       },
+      "Namotion.Reflection/2.1.1": {
+        "dependencies": {
+          "Microsoft.CSharp": "4.7.0"
+        },
+        "runtime": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {
+            "assemblyVersion": "2.1.1.0",
+            "fileVersion": "2.1.1.0"
+          }
+        },
+        "compile": {
+          "lib/netstandard2.0/Namotion.Reflection.dll": {}
+        }
+      },
       "Newtonsoft.Json/13.0.2": {
         "runtime": {
           "lib/net6.0/Newtonsoft.Json.dll": {
@@ -1749,7 +1763,9 @@
       },
       "gpt_api.Application/1.0.0": {
         "dependencies": {
-          "gpt_api.Core": "1.0.0"
+          "gpt_api.Core": "1.0.0",
+          "gpt_api.Entity": "1.0.0",
+          "gpt_api.Respository": "1.0.0"
         },
         "runtime": {
           "gpt_api.Application.dll": {}
@@ -1763,6 +1779,7 @@
           "Furion.Extras.Authentication.JwtBearer": "4.8.7.36",
           "Furion.Extras.ObjectMapper.Mapster": "4.8.7.36",
           "Furion.Pure": "4.8.7.36",
+          "Namotion.Reflection": "2.1.1",
           "SqlSugarCore": "5.1.4.65"
         },
         "runtime": {
@@ -3865,6 +3882,13 @@
       "path": "mysqlconnector/2.2.5",
       "hashPath": "mysqlconnector.2.2.5.nupkg.sha512"
     },
+    "Namotion.Reflection/2.1.1": {
+      "type": "package",
+      "serviceable": true,
+      "sha512": "sha512-trZzWMjzoZyfn34HtMs6cuoR0ssPZGpn9pyBWMGkaHdGA9VZzWLho+Rldtf+Ojej596PIal/vPdrDr1+MERXbA==",
+      "path": "namotion.reflection/2.1.1",
+      "hashPath": "namotion.reflection.2.1.1.nupkg.sha512"
+    },
     "Newtonsoft.Json/13.0.2": {
       "type": "package",
       "serviceable": true,

BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Web.Core.dll


BIN
gpt_api.Web.Core/bin/Debug/net7.0/gpt_api.Web.Core.pdb


BIN
gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.csproj.AssemblyReference.cache


+ 1 - 1
gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-8e6fb519387b1dbb67fa66b91c35222e51a90869
+30dfb78219c703c0c36c3885f6883028689da66c

BIN
gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.dll


BIN
gpt_api.Web.Core/obj/Debug/net7.0/gpt_api.Web.Core.pdb


+ 6 - 0
gpt_api.Web.Core/obj/gpt_api.Web.Core.csproj.nuget.dgspec.json

@@ -29,6 +29,12 @@
             "projectReferences": {
               "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj": {
                 "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Core/gpt_api.Core.csproj"
+              },
+              "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj": {
+                "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Entity/gpt_api.Entity.csproj"
+              },
+              "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj": {
+                "projectPath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Respository/gpt_api.Respository.csproj"
               }
             }
           }

+ 1 - 1
gpt_api.Web.Core/obj/gpt_api.Web.Core.csproj.nuget.g.props

@@ -7,7 +7,7 @@
     <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/cauto/.nuget/packages/</NuGetPackageRoot>
     <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/cauto/.nuget/packages/</NuGetPackageFolders>
     <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
-    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
   </PropertyGroup>
   <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
     <SourceRoot Include="/Users/cauto/.nuget/packages/" />

+ 3 - 1
gpt_api.Web.Core/obj/project.assets.json

@@ -2017,7 +2017,9 @@
         "type": "project",
         "framework": ".NETCoreApp,Version=v7.0",
         "dependencies": {
-          "gpt_api.Core": "1.0.0"
+          "gpt_api.Core": "1.0.0",
+          "gpt_api.Entity": "1.0.0",
+          "gpt_api.Respository": "1.0.0"
         },
         "compile": {
           "bin/placeholder/gpt_api.Application.dll": {}

+ 1 - 1
gpt_api.Web.Core/obj/project.nuget.cache

@@ -1,6 +1,6 @@
 {
   "version": 2,
-  "dgSpecHash": "oOXzoGGaMH49AiuM5+Mk+opNqhIDX/vSCadaqb3uPm5qBwXN12COTyL+TZ4xy4R7iOG3f7aK/Wowx72THquomQ==",
+  "dgSpecHash": "e1jUHQNR7UzuFBpXp+03TNs3YrVtgwJEUacaxHbGDjOAulu/7mWPDhgKbam5HW2SxMTP5jbe50U1A2zIDP9YbQ==",
   "success": true,
   "projectFilePath": "/Users/cauto/Desktop/work/net_work/gpt_api/gpt_api.Web.Core/gpt_api.Web.Core.csproj",
   "expectedPackageFiles": [

BIN
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Application.dll


BIN
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Application.pdb


+ 44 - 5
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Application.xml

@@ -4,16 +4,55 @@
         <name>gpt_api.Application</name>
     </assembly>
     <members>
-        <member name="T:gpt_api.Application.SystemAppService">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.Id">
             <summary>
-            系统服务接口
+            用户ID
             </summary>
         </member>
-        <member name="M:gpt_api.Application.SystemAppService.GetDescription">
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.account">
             <summary>
-            获取系统描述
+            帐号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.password">
+            <summary>
+            密码
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.email">
+            <summary>
+            email
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.iphone">
+            <summary>
+            手机号
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginip">
+            <summary>
+            登陆IP
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.isactive">
+            <summary>
+            是否有效
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.lastloginTime">
+            <summary>
+            最后登录时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Application.System.user.dto.UserOut.expirationtime">
+            <summary>
+            到期时间
+            </summary>
+        </member>
+        <member name="T:gpt_api.Application.System.user.UserService">
+            <summary>
+            用户接口
             </summary>
-            <returns></returns>
         </member>
         <member name="M:gpt_api.Application.System.user.UserService.Login">
             <summary>

BIN
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Core.dll


BIN
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Core.pdb


+ 117 - 9
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Core.xml

@@ -4,29 +4,79 @@
         <name>gpt_api.Core</name>
     </assembly>
     <members>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreationTime">
+        <member name="T:gpt_api.Core.Consts.ApiGroupConsts">
             <summary>
-            创建时间
+            api分组数据
+            </summary>
+        </member>
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.System">
+            <summary>
+            系统
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.CreatorUserId">
+        <member name="F:gpt_api.Core.Consts.ApiGroupConsts.Core">
             <summary>
-            创建人ID 
+            公共功能
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.createtime">
+            <summary>
+            创建时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.LastModificationTime">
+        <member name="P:gpt_api.Core.Dtos.Dto.BaseDto.updatetime">
             <summary>
             最近更新时间
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeletionTime">
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedInput">
             <summary>
-            删除时间
+            分页input
             </summary>
         </member>
-        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.DeleterUserId">
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageIndex">
             <summary>
-            删除人id
+            当前页数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.PageSize">
+            <summary>
+            每页显示条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.OrderByField">
+            <summary>
+            排序字段(包含字段和排序方式,用单空格分割)
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedInput.KeyWord">
+            <summary>
+            模糊查询参数
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Dtos.Dto.PagedList`1">
+            <summary>
+            分页列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.TotalCount">
+            <summary>
+            总条数
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Dto.PagedList`1.List">
+            <summary>
+            列表
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.createtime">
+            <summary>
+            创建时间
+            </summary>
+        </member>
+        <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.updatetime">
+            <summary>
+            最近更新时间
             </summary>
         </member>
         <member name="P:gpt_api.Core.Dtos.Entity.BaseEntity.IsDeleted">
@@ -39,6 +89,50 @@
             主建ID
             </summary>
         </member>
+        <member name="T:gpt_api.Core.Extensions.EnumExtension">
+            <summary>
+            枚举扩展方法
+            </summary>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.ListExtension">
+            <summary>
+            列表扩展方法
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.ToTree``1(System.Collections.Generic.List{``0},System.String,System.String,System.String,System.Object)">
+            <summary>
+            列表转Tree
+            使用反射进行转换,仅限小型列表数据使用
+            </summary>
+            <typeparam name="T"></typeparam>
+            <param name="list"></param>
+            <param name="idFieldName">主键所属字段</param>
+            <param name="pIdFieldName">parent关联字段</param>
+            <param name="childFieldName">将要转换的子集列表字段</param>
+            <param name="pIdValue">parent关联字段的值</param>
+            <returns></returns>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.ListExtension.Join(System.Collections.Generic.IEnumerable{System.String},System.String)">
+            <summary>
+            扩展列表转字符串分割拼接
+            </summary>
+            <param name="list"></param>
+            <param name="splitStr"></param>
+            <returns></returns>
+        </member>
+        <member name="T:gpt_api.Core.Extensions.PagedQueryableExtension">
+            <summary>
+            分页扩展
+            </summary>
+        </member>
+        <member name="M:gpt_api.Core.Extensions.PagedQueryableExtension.ToPagedListAsync``1(SqlSugar.ISugarQueryable{``0},gpt_api.Core.Dtos.Dto.PagedInput)">
+            <summary>
+            获取分页列表
+            </summary>
+            <param name="query"></param>
+            <param name="page"></param>
+            <returns></returns>
+        </member>
         <member name="T:gpt_api.Core.Extensions.TrimExtension">
             <summary>
             去除空格扩展方法
@@ -51,5 +145,19 @@
             <param name="obj">对象</param>
             <returns></returns>
         </member>
+        <member name="T:Photo.Core.Extensions.AdaptExtension">
+            <summary>
+            映射器扩展方法
+            </summary>
+        </member>
+        <member name="M:Photo.Core.Extensions.AdaptExtension.AdaptTo``2(``0,``1@)">
+            <summary>
+            映射器扩展方法-将input中带有AdaptMemberAttribute标识的字段自动转换赋值至实体对象中
+            </summary>
+            <typeparam name="T_input"></typeparam>
+            <typeparam name="T_entity"></typeparam>
+            <param name="input"></param>
+            <param name="entity"></param>
+        </member>
     </members>
 </doc>

BIN
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Entity.dll


BIN
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Entity.pdb


BIN
gpt_api.Web.Entry/bin/Debug/net7.0/gpt_api.Respository.dll


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