服务器部署测试~~~

This commit is contained in:
heiye111
2025-10-10 16:02:38 +08:00
parent 8ab52738c0
commit 5c186aa446
87 changed files with 5062 additions and 167 deletions

View File

@@ -0,0 +1,232 @@
[
{
"ContainingType": "Program\u002B\u003C\u003Ec",
"Method": "\u003C\u003CMain\u003E$\u003Eb__0_4",
"RelativePath": "",
"HttpMethod": "GET",
"IsController": false,
"Order": 0,
"Parameters": [],
"ReturnTypes": [
{
"Type": "System.String",
"MediaTypes": [
"text/plain"
],
"StatusCode": 200
}
]
},
{
"ContainingType": "SimpleTodoApiWithPg.Endpoints.UserEndpoints\u002B\u003C\u003Ec",
"Method": "\u003CMapUserEndpoints\u003Eb__0_5",
"RelativePath": "api/auth/",
"HttpMethod": "POST",
"IsController": false,
"Order": 0,
"Parameters": [
{
"Name": "loginRequest",
"Type": "SimpleTodoApiWithPg.Models.LoginRequest",
"IsRequired": true
}
],
"ReturnTypes": [
{
"Type": "System.Void",
"MediaTypes": [],
"StatusCode": 200
}
],
"Tags": [
"\u767B\u5F55\u8BA4\u8BC1\u6388\u6743\u63A5\u53E3!"
]
},
{
"ContainingType": "SimpleTodoApiWithPg.Endpoints.UserEndpoints\u002B\u003C\u003Ec",
"Method": "\u003CMapUserEndpoints\u003Eb__0_6",
"RelativePath": "api/auth/refresh-token",
"HttpMethod": "POST",
"IsController": false,
"Order": 0,
"Parameters": [
{
"Name": "refreshToken",
"Type": "SimpleTodoApiWithPg.Models.RefreshTokenRequest",
"IsRequired": true
}
],
"ReturnTypes": [
{
"Type": "System.Void",
"MediaTypes": [],
"StatusCode": 200
}
],
"Tags": [
"\u5237\u65B0\u4EE4\u724C\u63A5\u53E3"
]
},
{
"ContainingType": "SimpleTodoApiWithPg.Endpoints.UserEndpoints\u002B\u003C\u003Ec",
"Method": "\u003CMapUserEndpoints\u003Eb__0_0",
"RelativePath": "users/",
"HttpMethod": "GET",
"IsController": false,
"Order": 0,
"Parameters": [],
"ReturnTypes": [
{
"Type": "System.Collections.Generic.List\u00601[[SimpleTodoApiWithPg.Models.User, SimpleTodoApiWithPg, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]",
"MediaTypes": [
"application/json"
],
"StatusCode": 200
},
{
"Type": "System.String",
"MediaTypes": [
"application/json"
],
"StatusCode": 400
}
],
"Tags": [
"\u83B7\u53D6\u6240\u6709\u7528\u6237"
]
},
{
"ContainingType": "SimpleTodoApiWithPg.Endpoints.UserEndpoints\u002B\u003C\u003Ec",
"Method": "\u003CMapUserEndpoints\u003Eb__0_2",
"RelativePath": "users/",
"HttpMethod": "POST",
"IsController": false,
"Order": 0,
"Parameters": [
{
"Name": "request",
"Type": "SimpleTodoApiWithPg.Models.RegisterRequest",
"IsRequired": true
}
],
"ReturnTypes": [
{
"Type": "Microsoft.AspNetCore.Http.HttpValidationProblemDetails",
"MediaTypes": [
"application/problem\u002Bjson"
],
"StatusCode": 400
}
],
"Tags": [
"\u7528\u6237\u6CE8\u518C\u63A5\u53E3"
]
},
{
"ContainingType": "SimpleTodoApiWithPg.Endpoints.UserEndpoints\u002B\u003C\u003Ec",
"Method": "\u003CMapUserEndpoints\u003Eb__0_1",
"RelativePath": "users/{id}",
"HttpMethod": "GET",
"IsController": false,
"Order": 0,
"Parameters": [
{
"Name": "id",
"Type": "System.Guid",
"IsRequired": true
}
],
"ReturnTypes": [
{
"Type": "SimpleTodoApiWithPg.Models.User",
"MediaTypes": [
"application/json"
],
"StatusCode": 200
},
{
"Type": "System.String",
"MediaTypes": [
"application/json"
],
"StatusCode": 404
}
],
"Tags": [
"\u6839\u636Eid\u83B7\u53D6\u5BF9\u5E94\u7684\u7528\u6237\u4FE1\u606F"
]
},
{
"ContainingType": "SimpleTodoApiWithPg.Endpoints.UserEndpoints\u002B\u003C\u003Ec",
"Method": "\u003CMapUserEndpoints\u003Eb__0_3",
"RelativePath": "users/{id}",
"HttpMethod": "PATCH",
"IsController": false,
"Order": 0,
"Parameters": [
{
"Name": "id",
"Type": "System.Int32",
"IsRequired": true
},
{
"Name": "updateUser",
"Type": "SimpleTodoApiWithPg.Models.UpdateUserRequest",
"IsRequired": true
}
],
"ReturnTypes": [
{
"Type": "SimpleTodoApiWithPg.Models.User",
"MediaTypes": [
"application/json"
],
"StatusCode": 200
},
{
"Type": "System.String",
"MediaTypes": [
"application/json"
],
"StatusCode": 404
}
],
"Tags": [
"\u7528\u6237\u4FE1\u606F\u66F4\u65B0\u63A5\u53E3"
]
},
{
"ContainingType": "SimpleTodoApiWithPg.Endpoints.UserEndpoints\u002B\u003C\u003Ec",
"Method": "\u003CMapUserEndpoints\u003Eb__0_4",
"RelativePath": "users/{id}",
"HttpMethod": "DELETE",
"IsController": false,
"Order": 0,
"Parameters": [
{
"Name": "id",
"Type": "System.Guid",
"IsRequired": true
}
],
"ReturnTypes": [
{
"Type": "System.String",
"MediaTypes": [
"application/json"
],
"StatusCode": 200
},
{
"Type": "System.String",
"MediaTypes": [
"application/json"
],
"StatusCode": 404
}
],
"Tags": [
"\u5220\u9664\u7528\u6237\u63A5\u53E3"
]
}
]

View File

@@ -0,0 +1 @@
SimpleTodoApiWithPg.json

View File

@@ -0,0 +1,403 @@
{
"openapi": "3.0.4",
"info": {
"title": "SimpleTodoApiWithPg",
"version": "1.0"
},
"paths": {
"/api/auth": {
"post": {
"tags": [
"登录认证授权接口!"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/users/{id}": {
"get": {
"tags": [
"根据id获取对应的用户信息"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/User"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
},
"delete": {
"tags": [
"删除用户接口"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
},
"patch": {
"tags": [
"用户信息更新接口"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateUserRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/User"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/users": {
"get": {
"tags": [
"获取所有用户"
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
},
"post": {
"tags": [
"用户注册接口"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterRequest"
}
}
},
"required": true
},
"responses": {
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/HttpValidationProblemDetails"
}
}
}
}
}
}
},
"/api/auth/refresh-token": {
"post": {
"tags": [
"刷新令牌接口"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RefreshTokenRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/": {
"get": {
"tags": [
"SimpleTodoApiWithPg"
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"HttpValidationProblemDetails": {
"type": "object",
"properties": {
"type": {
"type": "string",
"nullable": true
},
"title": {
"type": "string",
"nullable": true
},
"status": {
"type": "integer",
"format": "int32",
"nullable": true
},
"detail": {
"type": "string",
"nullable": true
},
"instance": {
"type": "string",
"nullable": true
},
"errors": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"nullable": true
}
},
"additionalProperties": { }
},
"LoginRequest": {
"required": [
"password",
"username"
],
"type": "object",
"properties": {
"username": {
"maxLength": 50,
"minLength": 1,
"type": "string"
},
"password": {
"maxLength": 50,
"minLength": 1,
"type": "string"
}
},
"additionalProperties": false
},
"RefreshTokenRequest": {
"type": "object",
"properties": {
"refreshToken": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"RegisterRequest": {
"required": [
"email",
"username"
],
"type": "object",
"properties": {
"username": {
"type": "string",
"nullable": true
},
"email": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"UpdateUserRequest": {
"type": "object",
"properties": {
"username": {
"maxLength": 50,
"type": "string",
"nullable": true
},
"email": {
"maxLength": 100,
"type": "string",
"format": "email",
"nullable": true
},
"newPassword": {
"maxLength": 50,
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"User": {
"required": [
"email",
"passwordHash",
"username"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"username": {
"maxLength": 50,
"minLength": 1,
"type": "string"
},
"email": {
"maxLength": 50,
"minLength": 5,
"type": "string",
"format": "email"
},
"passwordHash": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false
}
}
}
}

View File

@@ -1,9 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
@@ -13,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("SimpleTodoApiWithPg")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8ab52738c086cb1a3aa894122cfb801985cf1b9b")]
[assembly: System.Reflection.AssemblyProductAttribute("SimpleTodoApiWithPg")]
[assembly: System.Reflection.AssemblyTitleAttribute("SimpleTodoApiWithPg")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
e0a450d7f7ecf2071ba072fc6f6c15983dfaa6fea6288c9b6a218625a530e48f
bc56e06accd466e2627943e8dc62f6bb1f983bfa111ed39fecd5b88f6b089ded

View File

@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")]
// 由 MSBuild WriteCodeFragment 类生成。

View File

@@ -1 +1 @@
2bce65f69d2c68eb81bc3d1d692a255f9f87885472ee7fbdc1d07c93d722e3a8
0effd9d609e1d00c69ee989d814ac6a47d1f1ea54efb5cc3ae49700f1991fab2

View File

@@ -1,12 +1,22 @@
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.csproj.AssemblyReference.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.GeneratedMSBuildEditorConfig.editorconfig
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.AssemblyInfoInputs.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.AssemblyInfo.cs
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.csproj.CoreCompileInputs.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.MvcApplicationPartsAssemblyInfo.cache
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\appsettings.Development.json
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\appsettings.json
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\global.json
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\SimpleTodoApiWithPg.staticwebassets.endpoints.json
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\ecc-certificate.pfx
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\SimpleTodoApiWithPg.exe
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\SimpleTodoApiWithPg.deps.json
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\SimpleTodoApiWithPg.runtimeconfig.json
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\SimpleTodoApiWithPg.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\SimpleTodoApiWithPg.pdb
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\BCrypt.Net-Next.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Humanizer.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.AspNetCore.Authentication.JwtBearer.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.Bcl.AsyncInterfaces.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.Build.Locator.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.CodeAnalysis.dll
@@ -29,6 +39,12 @@ C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.Extensions.Logging.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.Extensions.Logging.Abstractions.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.Extensions.Options.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.Extensions.Primitives.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.IdentityModel.Abstractions.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.IdentityModel.JsonWebTokens.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.IdentityModel.Logging.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.IdentityModel.Protocols.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.IdentityModel.Tokens.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Mono.TextTemplating.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Npgsql.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Npgsql.EntityFrameworkCore.PostgreSQL.dll
@@ -38,6 +54,7 @@ C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\System.Composition.Convention.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\System.Composition.Hosting.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\System.Composition.Runtime.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\System.Composition.TypedParts.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\System.IdentityModel.Tokens.Jwt.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\System.Text.Json.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\cs\Microsoft.CodeAnalysis.resources.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\de\Microsoft.CodeAnalysis.resources.dll
@@ -104,12 +121,6 @@ C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\ru\Microsoft.CodeAnalysis.Workspace
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\tr\Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.resources.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\zh-Hans\Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.resources.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\zh-Hant\Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.resources.dll
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.csproj.AssemblyReference.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.GeneratedMSBuildEditorConfig.editorconfig
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.AssemblyInfoInputs.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.AssemblyInfo.cs
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.csproj.CoreCompileInputs.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.MvcApplicationPartsAssemblyInfo.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\scopedcss\bundle\SimpleTodoApiWithPg.styles.css
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\staticwebassets.build.json
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\staticwebassets.development.json
@@ -120,9 +131,17 @@ C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\staticwebassets\msbuild.build.Simpl
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\staticwebassets\msbuild.buildMultiTargeting.SimpleTodoApiWithPg.props
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\staticwebassets\msbuild.buildTransitive.SimpleTodoApiWithPg.props
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\staticwebassets.pack.json
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\staticwebassets.upToDateCheck.txt
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTo.008CF47A.Up2Date
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.dll
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\refint\SimpleTodoApiWithPg.dll
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.pdb
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.genruntimeconfig.cache
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\ref\SimpleTodoApiWithPg.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Microsoft.OpenApi.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Swashbuckle.AspNetCore.Swagger.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\Swashbuckle.AspNetCore.SwaggerUI.dll
C:\code\SimpleTodoApiWithPg\obj\Debug\net9.0\SimpleTodoApiWithPg.MvcApplicationPartsAssemblyInfo.cs
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\FluentValidation.dll
C:\code\SimpleTodoApiWithPg\bin\Debug\net9.0\FluentValidation.DependencyInjectionExtensions.dll

Binary file not shown.