From 41c8dfc21629a29bf69f5f5a8175c14c0f726aac Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Wed, 23 Jun 2021 17:39:25 +0800
Subject: [PATCH 01/24] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E4=BB=BD=E7=AC=94?=
=?UTF-8?q?=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...257\276dotnet\345\221\275\344\273\244).md" | 17 +++++++++++++++++
...6\345\210\240\346\224\271\346\237\245).md" | 19 +++++++++++++++++++
2 files changed, 36 insertions(+)
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
new file mode 100644
index 0000000..2014e60
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
@@ -0,0 +1,17 @@
+
+### WebAPI 第一课dotnet命令
+
+1. 这是一个简单的构建HTTP服务的新框架
+
+2. 在.net平台上Web API 是一个开源的、理想的、构建REST-ful 服务技术
+
+3. 不像WCF REST Service .它可以使用HTTP 的全部特点(比如URIs、requirest/response 缓存,版本控制等等,单元测试)。
+
+4. 它同时也有支持MVC 的特征,像路由、控制器、action、filter、模型绑定、控制反转(IOC),单元测试
+
+5. 它也可以部署在应用程序和IIS上
+
+6. 这是一个轻量级的框架,并且对限宽带的设备,支持比较好。
+
+7. Response 可以被 Web API 的MediaTypeFormatter 转换成Json、XML或者任何你想转换的格式。
+
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
new file mode 100644
index 0000000..74c8d84
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -0,0 +1,19 @@
+
+### 今天讲的是数据的增删改查的工作
+
+1. dotnet new sln 建立解决方案文件。
+
+2. dotnet new webapi -n 文件夹名称
+
+3. dotnet run -p 文件夹名称 -- 运行解决方案
+
+## 插件小插曲
+
+### 显示自动提示:扩展文件是 C# XML 和 C# Extenslons /// better comments 自带的五种高亮注释
+### 格式化程序:Prettier -Code formatter
+
+4. dotnet sln add 文件名称 ---- 将新建项目添加到解决方案中去。
+
+5. dotnet build --- 让项目跑起来
+
+6.
\ No newline at end of file
--
Gitee
From 46c7e1f257450baacc2c18ba35c606e51abe1b6d Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Sat, 26 Jun 2021 17:26:52 +0800
Subject: [PATCH 02/24] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E4=BB=BD=E7=AC=94?=
=?UTF-8?q?=E8=AE=B0=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...3\347\232\204\350\277\236\346\216\245).md" | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
new file mode 100644
index 0000000..a73610f
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
@@ -0,0 +1,35 @@
+
+### 连接数据库的这里采用的是 EF Core
+
++ 连接数据库首先要下载 EF Core 等需要的插件,才能运用EF Core。EF Core是一个ORM(对象关系映射),
+
+```
+EF Core 也是支持多种数据库引擎:
+
+Microsoft SQL Sever
+
+SQLite
+
+Npgsql
+
+MySQL 等等
+
+```
+
+1. 就是如何获取通过NuGet 获取要使用的数据库支持。就要下载 Install-Package Microsoft.EntityFrameworkCore.SqlServer
+
+2. 模型
+
+EF Core 是通过一个模型就能经行数据库连接的,模型由实体类和表示与数据库中的会话组成的,以及允许查询和保存数据派生的一个上下文。
+
+
+3. 创建数据库所需要的命令:
+
+```
+dotnet tool install --global dotnet-ef
+dotnet add package Microsoft.EntityFrameworkCore.Design
+dotnet ef migrations add InitialCreate // 命令为迁移搭建基架,以便为模型创建一组初始表。
+dotnet ef database update // 命令创建数据库并向其应用新的迁移。
+
+```
+
--
Gitee
From d641b738345b2d2d02a3262bf79fdf87d3ca4d8b Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Sun, 27 Jun 2021 12:02:08 +0800
Subject: [PATCH 03/24] d
---
...6\345\272\223\347\232\204\350\277\236\346\216\245).md" | 8 ++++++++
...270\200\350\257\276dotnet\345\221\275\344\273\244).md" | 4 +++-
...4\345\242\236\345\210\240\346\224\271\346\237\245).md" | 5 +++--
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
index a73610f..672d661 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
@@ -33,3 +33,11 @@ dotnet ef database update // 命令创建数据库并向其应用新的迁
```
+4. 还有需要注意的地方是 尽量解决方案名称和项目名称不要重名。
+
+5. launch.json 是vscode 用于调试的配置文件 比如调试语言环境,指定类型等等。
+
+6.
+
+
+
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
index 2014e60..9826591 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
@@ -1,7 +1,9 @@
### WebAPI 第一课dotnet命令
-1. 这是一个简单的构建HTTP服务的新框架
+1. 这是一个简单的构建HTTP服务的新框架
+
+### dotnet -h (命令大全)
2. 在.net平台上Web API 是一个开源的、理想的、构建REST-ful 服务技术
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
index 74c8d84..b2dd4f9 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -14,6 +14,7 @@
4. dotnet sln add 文件名称 ---- 将新建项目添加到解决方案中去。
-5. dotnet build --- 让项目跑起来
+5. dotnet build --- 生成.NET项目其所有依赖项
+
+6. 查看 .NET 命令代码 dotnet -h
-6.
\ No newline at end of file
--
Gitee
From 9eff8539157900533c538d237c49689282f01811 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Tue, 29 Jun 2021 11:31:32 +0800
Subject: [PATCH 04/24] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E4=BB=BD=E7=AC=94?=
=?UTF-8?q?=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...257\276dotnet\345\221\275\344\273\244).md" | 4 +++
...5\345\222\214\346\216\245\345\217\243).md" | 28 +++++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
index 9826591..88f0d44 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
@@ -17,3 +17,7 @@
7. Response 可以被 Web API 的MediaTypeFormatter 转换成Json、XML或者任何你想转换的格式。
+### 完整项目的初始化进程:
+
+
+
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md"
new file mode 100644
index 0000000..2776156
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md"
@@ -0,0 +1,28 @@
+
+### 今天讲了数据的封装和接口的使用。
+
+1. 定义基类定义的查找对象接口:
+
+```
+ ///
+ /// 查询数据库,检查是否存在指定ID的对象
+ ///
+ /// 对象的ID值
+ /// 存在则返回指定的对象,否则返回Null
+ [HttpGet]
+ public virtual T FindByID(string id, string token)
+
+```
+
+2. 增删改查的接口,一般就需要声明式为POST方式来提交,而不是基于安全性的考虑。
+
+```
+ ///
+ /// 插入指定对象到数据库中
+ ///
+ /// 指定的对象
+ /// 执行操作是否成功。
+ [HttpPost]
+ public virtual CommonResult Insert(T info, string token, string signature, string timestamp, string nonce, string appid)
+
+```
\ No newline at end of file
--
Gitee
From f2318c5025cefbd858f973c812928cf3e480e60c Mon Sep 17 00:00:00 2001
From: liuhua <3207586618@qq.com>
Date: Wed, 30 Jun 2021 12:36:54 +0700
Subject: [PATCH 05/24] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...257\276dotnet\345\221\275\344\273\244).md" | 2 +-
...6\345\210\240\346\224\271\346\237\245).md" | 26 +++++++++++++++++++
...5\345\222\214\346\216\245\345\217\243).md" | 2 +-
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
index 88f0d44..f1e8039 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-22(\347\254\254\344\270\200\350\257\276dotnet\345\221\275\344\273\244).md"
@@ -17,7 +17,7 @@
7. Response 可以被 Web API 的MediaTypeFormatter 转换成Json、XML或者任何你想转换的格式。
-### 完整项目的初始化进程:
+
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
index b2dd4f9..bf12d26 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -11,6 +11,7 @@
### 显示自动提示:扩展文件是 C# XML 和 C# Extenslons /// better comments 自带的五种高亮注释
### 格式化程序:Prettier -Code formatter
+### REST Client(测试接口工具) 是一款用于测试Web服务的一个插件,也是可以用于发送HTTP 请求的方式的,并显示服务器响应。
4. dotnet sln add 文件名称 ---- 将新建项目添加到解决方案中去。
@@ -18,3 +19,28 @@
6. 查看 .NET 命令代码 dotnet -h
+get/uses 列出所用用户
+
+get/users/2 列出指定用户
+
+post/users 创建用户
+
+put/users/3 修改指定id
+
+delete/users/4 删除指定id
+
+### 项目的初始化:
+
++ dotnet -h
+
++ dotnet new sln
+
++ dotnet new webapi -n Admin3000.Backend.Api --no-https
+
++ 退出项目文件
+
++ dotnet run -p 项目文件名称
+
++ dotnet build
+
+
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md"
index 2776156..70b26d6 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-29(\345\260\201\350\243\205\345\222\214\346\216\245\345\217\243).md"
@@ -25,4 +25,4 @@
[HttpPost]
public virtual CommonResult Insert(T info, string token, string signature, string timestamp, string nonce, string appid)
-```
\ No newline at end of file
+```
--
Gitee
From 466a4ec245c84368f6c484ee69a40069888e9236 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Wed, 30 Jun 2021 17:17:03 +0800
Subject: [PATCH 06/24] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E4=BB=BD=E7=AC=94?=
=?UTF-8?q?=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...\236\345\210\240\346\224\271\346\237\245).md" | 16 +++++++++-------
...\250\345\205\245\344\276\235\350\265\226).md" | 8 ++++++++
2 files changed, 17 insertions(+), 7 deletions(-)
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
index bf12d26..a710d39 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -31,16 +31,18 @@ delete/users/4 删除指定id
### 项目的初始化:
-+ dotnet -h
-
-+ dotnet new sln
++ dotnet -h // dotnet 命令
+
++ dotnet new sln // 创建文件夹的解决方案
-+ dotnet new webapi -n Admin3000.Backend.Api --no-https
++ dotnet new webapi -n Admin3000.Backend.Api --no-https // 创建文件夹并去掉 https
+ 退出项目文件
-+ dotnet run -p 项目文件名称
-
-+ dotnet build
++ dotnet run -p 项目文件名称 // 生成并运行项目
++ dotnet build // 生成.NET 项目
+
++ dotnet tool install --global dotnet -ef // 安装全局域工具,
+
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md"
new file mode 100644
index 0000000..21f06fd
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md"
@@ -0,0 +1,8 @@
+
+### 讲了当前asp.net webapi 项目需要用到的技术及知识点
+
+1. 基于`asp.net core` 和`netcoreapp5.0`
+
+2. 基于`EntityFramework core `和数据库迁移技术
+
+3. 基于控制反转(IoC) 和依赖注入技术(DI)
\ No newline at end of file
--
Gitee
From 793618c31ba288478b7f24bc33d388ad5640c0b2 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Wed, 30 Jun 2021 17:40:51 +0800
Subject: [PATCH 07/24] d
---
...214\346\263\250\345\205\245\344\276\235\350\265\226).md" | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md"
index 21f06fd..46cc607 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-30(\346\216\247\345\210\266\345\217\215\350\275\254\345\222\214\346\263\250\345\205\245\344\276\235\350\265\226).md"
@@ -5,4 +5,8 @@
2. 基于`EntityFramework core `和数据库迁移技术
-3. 基于控制反转(IoC) 和依赖注入技术(DI)
\ No newline at end of file
+3. 基于控制反转(IoC) 和依赖注入技术(DI)
+
++ 控制反转:顾名思义,就好比作一件快递,可以由自己去拿或者由快递小哥送上门。都是一种方式,第一种就是自己去拿快递,其中就掌握了主动权,另一种就是快递小哥送上门,这期间的主动权就化为被动权,主动权就掌握在快递小哥哪里。
+
++ 依赖注入:就好比如男孩子找对象,首先就得要去了解对象的爱好、和特性。这就有对症下药。通过一个中间容器来实例化对象,
\ No newline at end of file
--
Gitee
From 76c1e49e5c1e11081bed11ce2740e7f8ceb6d449 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Fri, 2 Jul 2021 11:04:17 +0800
Subject: [PATCH 08/24] =?UTF-8?q?=E6=B3=A8=E5=85=A5=E4=BE=9D=E8=B5=96?=
=?UTF-8?q?=E4=BB=BD=E7=AC=94=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...5\350\265\226\346\263\250\345\205\245).md" | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-2(\344\276\235\350\265\226\346\263\250\345\205\245).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-2(\344\276\235\350\265\226\346\263\250\345\205\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-2(\344\276\235\350\265\226\346\263\250\345\205\245).md"
new file mode 100644
index 0000000..14a485a
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-2(\344\276\235\350\265\226\346\263\250\345\205\245).md"
@@ -0,0 +1,21 @@
+
+### C# 依赖注入
+
++ 依赖注入的定义:就好比如客服类只依赖于服务类的某个接口,而不是依赖于具体服务类,所以客户类就定义一个注入点。客户类不直接实例化具体服务类实列的,而客户类的运行上下环境或专门负责实例化服务类,然后将其注入到客户类中去的。
+
+#### 也使用了Restfull 约定,来分别完成数据的CRUD的行为,
+
+| 路由形式 | 说明 |
+| - | - |
+| get /users | 获取用户列表 |
+| get /user/:id | 获取指定id用户 |
+| put /users/ | 增加用户|
+|put /users/:id |修改指定用户|
+| delete /users/:id 删除指定用户|
+
++ CRUD用到的技术有:
+ 泛型、异步方法、接口、接口实现、泛型接口、集合、完整的属性
+
++ 也是基于webapi 的路由模式
+
++ 依赖注入也是需要一个容器的
\ No newline at end of file
--
Gitee
From 7bc079b763bce5f942981bca97fb491d40964f73 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Sat, 3 Jul 2021 17:26:34 +0800
Subject: [PATCH 09/24] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=8F=90=E4=BA=A4?=
=?UTF-8?q?=E5=B0=8F=E6=80=BB=E7=BB=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...3\347\232\204\350\277\236\346\216\245).md" | 0
...e-2021-7-3(C#\345\244\215\344\271\240).md" | 32 +++++++++++++++++++
2 files changed, 32 insertions(+)
rename "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md" => "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md" (100%)
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
similarity index 100%
rename from "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
rename to "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-26(\346\225\260\346\215\256\345\272\223\347\232\204\350\277\236\346\216\245).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
new file mode 100644
index 0000000..065bcd6
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
@@ -0,0 +1,32 @@
+
+#### 今天讲了复习C#的内容,也复习了一些dotnet 项目语法,
+
+### 接下来需要预习的技术有 :JWT、日志审计。
+
+1. dotnet 项目的语法:
+
+```
+dotnet new sln -n Admin3000.Backend
+// 创建解决方案和项目
+cd Admin3000.Backend
+// 切换到项目中
+dotnet new webapi -n Admin3000.Backend.Api
+
+dotnet sln add Admin3000.Backend.Api
+
+cd Admin3000.Backend.Api
+
+dotnet add package Microsoft.EntityFrameworkCore
+
+dotnet add package Microsoft.EntityFrameworkCore.SqlServer
+
+(定义实体类型、数据库上下文,定义数据连接字符串)
+dotnet tool install --global dotnet-ef
+
+dotnet add package Microsoft.EntityFrameworkCore.Design
+
+dotnet ef migrations add XXXX
+
+dotnet ef database update
+
+```
\ No newline at end of file
--
Gitee
From bcb1c8e4d8640eae232c7241a5dd5848a2a37ea0 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Sat, 3 Jul 2021 17:35:47 +0800
Subject: [PATCH 10/24] a
---
.../WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md" | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
index 065bcd6..cae66df 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
@@ -1,5 +1,5 @@
-#### 今天讲了复习C#的内容,也复习了一些dotnet 项目语法,
+#### 今天讲了复习C#的内容,也复习了一些dotnet 项目语法,导航图:XMind
### 接下来需要预习的技术有 :JWT、日志审计。
--
Gitee
From 2d5d5a9d824d0fa2de9e8f903eca1a71f1d95557 Mon Sep 17 00:00:00 2001
From: liuhua <3207586618@qq.com>
Date: Wed, 7 Jul 2021 20:49:57 +0700
Subject: [PATCH 11/24] =?UTF-8?q?=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...45\242\236\345\210\240\346\224\271\346\237\245).md" | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
index a710d39..b7bbdb3 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -45,4 +45,14 @@ delete/users/4 删除指定id
+ dotnet tool install --global dotnet -ef // 安装全局域工具,
+### 在本地初始化一个仓库:
++ git init // 初始化一个仓库
+
++ git remote add roigin // git添加远程源
+
++ git config --global user.email 邮箱
+
++ git config --global user.name 名字
+
++ git pull origin master 从远程拉去最新代码
\ No newline at end of file
--
Gitee
From 19bb455dfd9809f341a1ce19d40b5ff273e31e38 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Thu, 8 Jul 2021 08:43:17 +0800
Subject: [PATCH 12/24] =?UTF-8?q?=E8=A1=A5=E4=B8=8A=E6=9D=A5=E7=9A=84?=
=?UTF-8?q?=E7=AC=94=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...e-2021-7-3(C#\345\244\215\344\271\240).md" | 22 ++++++++++++-------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
index cae66df..cf58ae3 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
@@ -1,5 +1,4 @@
-
-#### 今天讲了复习C#的内容,也复习了一些dotnet 项目语法,导航图:XMind
+#### 今天讲了复习 C#的内容,也复习了一些 dotnet 项目语法,导航图:XMind
### 接下来需要预习的技术有 :JWT、日志审计。
@@ -8,25 +7,32 @@
```
dotnet new sln -n Admin3000.Backend
// 创建解决方案和项目
+
cd Admin3000.Backend
// 切换到项目中
+
dotnet new webapi -n Admin3000.Backend.Api
+// 在文件夹底下创建项目
dotnet sln add Admin3000.Backend.Api
+// 把解决方案sln添加到项目中去
cd Admin3000.Backend.Api
+// 切换到项目中去
dotnet add package Microsoft.EntityFrameworkCore
+// 为目标对象EF Core 数据库提供程序安装程序包
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
+// 为目标对象安装指定的数据库
-(定义实体类型、数据库上下文,定义数据连接字符串)
+(定义实体类型、数据库上下文 ,定义数据连接字符串)
dotnet tool install --global dotnet-ef
-
+// 安装 dotnet -ef 设计包
dotnet add package Microsoft.EntityFrameworkCore.Design
-
+// 生成依赖包 (定义数据库上下文)
dotnet ef migrations add XXXX
-
+// 生成迁移文件 (定义数据库连接字符串)
dotnet ef database update
-
-```
\ No newline at end of file
+// 创建数据库并向其应用新的迁移
+```
--
Gitee
From 48f0eff002a8c296903cd63fd5d68c6bfaf81027 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Thu, 8 Jul 2021 11:23:49 +0800
Subject: [PATCH 13/24] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md" | 3 +++
1 file changed, 3 insertions(+)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
index cf58ae3..68c2752 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-3(C#\345\244\215\344\271\240).md"
@@ -29,10 +29,13 @@ dotnet add package Microsoft.EntityFrameworkCore.SqlServer
(定义实体类型、数据库上下文 ,定义数据连接字符串)
dotnet tool install --global dotnet-ef
// 安装 dotnet -ef 设计包
+
dotnet add package Microsoft.EntityFrameworkCore.Design
// 生成依赖包 (定义数据库上下文)
+
dotnet ef migrations add XXXX
// 生成迁移文件 (定义数据库连接字符串)
+
dotnet ef database update
// 创建数据库并向其应用新的迁移
```
--
Gitee
From 086f2dca9d37c3330a938d8a1be97906957c21e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E7=BE=8E=E6=9E=97?= <1727813522@qq.com>
Date: Thu, 8 Jul 2021 17:33:36 +0800
Subject: [PATCH 14/24] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E4=BB=BD=E5=AE=A1?=
=?UTF-8?q?=E8=AE=A1=E6=97=A5=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...45\345\277\227\345\222\214token\344\275\277\347\224\250).md" | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 "\345\210\230\345\215\216\346\243\256/WebAPI-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md"
new file mode 100644
index 0000000..ab4e4b7
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md"
@@ -0,0 +1,2 @@
+
+### 讲了是如何使用审计日志,和token使用方法,可以借鉴网上的教程一步步来。
\ No newline at end of file
--
Gitee
From ec057a313d5828f41a83627dca59152a207c6a56 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E7=BE=8E=E6=9E=97?= <1727813522@qq.com>
Date: Fri, 9 Jul 2021 11:30:12 +0800
Subject: [PATCH 15/24] =?UTF-8?q?Newtonsoft.Json=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" | 2 ++
...45\345\277\227\345\222\214token\344\275\277\347\224\250).md" | 0
2 files changed, 2 insertions(+)
rename "\345\210\230\345\215\216\346\243\256/WebAPI-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md" => "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md" (100%)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
index b7bbdb3..7f281a5 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -45,6 +45,8 @@ delete/users/4 删除指定id
+ dotnet tool install --global dotnet -ef // 安装全局域工具,
++ dotnet add package - 向项目文件添加包引用 (Newtonsoft.Json 则是一个库) ,作用1.使用Newtonsoft.Json将对象转换成Json字符串(序列化),2.将Json字符串转换成对象(反序列化)
+
### 在本地初始化一个仓库:
+ git init // 初始化一个仓库
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md"
similarity index 100%
rename from "\345\210\230\345\215\216\346\243\256/WebAPI-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md"
rename to "\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-7-8(\345\256\241\350\256\241\346\227\245\345\277\227\345\222\214token\344\275\277\347\224\250).md"
--
Gitee
From 87b8b42ef60e328ee1845f4930a78959dfc7061b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E7=BE=8E=E6=9E=97?= <1727813522@qq.com>
Date: Fri, 9 Jul 2021 17:32:55 +0800
Subject: [PATCH 16/24] =?UTF-8?q?EF=20Core=E5=91=BD=E4=BB=A4=E7=9A=84?=
=?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...236\345\210\240\346\224\271\346\237\245).md" | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
index 7f281a5..1fb8666 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -47,6 +47,23 @@ delete/users/4 删除指定id
+ dotnet add package - 向项目文件添加包引用 (Newtonsoft.Json 则是一个库) ,作用1.使用Newtonsoft.Json将对象转换成Json字符串(序列化),2.将Json字符串转换成对象(反序列化)
+####
+1. dotnet ef database update 更新数据库
+
+2. dotnet ef migrations add Name 创建新的迁移文件
+
+3. dotnet ef database update drop 删除数据库
+
+4. dotnet ef migrations add migrationName migrationName为迁移名称
+
+5. dotnet ef migrationName remove 迁移删除最近的一次迁移
+
+6. dotnet ef database update 应以所有的迁移(使迁移文件应用到数据库)
+
+7. dotnet ef dbcontextinfo 查看数据库上下文信息
+
+8. dotnet ef migrations list 查看迁移列表
+
### 在本地初始化一个仓库:
+ git init // 初始化一个仓库
--
Gitee
From 59cba9bca50d8349ed67243ed477e1c797a651ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BD=A6=E4=BF=8A=E6=97=AD?= <209933047@qq.com>
Date: Tue, 13 Jul 2021 08:21:10 +0800
Subject: [PATCH 17/24] =?UTF-8?q?=E8=A1=A5=E4=BA=86=E4=B8=80=E4=B8=8B?=
=?UTF-8?q?=E7=AC=94=E8=BF=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...24\250\346\210\267\350\276\223\345\205\245).md" | 2 ++
...ue-note-2021-6-15(\350\267\257\347\224\261).md" | 14 ++++++++++++++
...73\244\350\241\214\345\267\245\345\205\267).md" | 4 +++-
...07\252\345\270\246\344\275\223\347\263\273).md" | 9 +++++++++
4 files changed, 28 insertions(+), 1 deletion(-)
create mode 100644 "\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-5-26(\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245).md" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-5-26(\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245).md"
index dfe195b..2795368 100644
--- "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-5-26(\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-5-26(\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245).md"
@@ -5,6 +5,8 @@
+ 还有就是那个项目竞赛可以用到的两个模板有 Layui 和 adminlte 这两个工具来辅助完成。
+#### 三大组件封装UL 1.adminlte 2. Elementui 3. ant vue 4. ant design pro
+
1. 条件与循环
```
diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-15(\350\267\257\347\224\261).md" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-15(\350\267\257\347\224\261).md"
index 3cf8606..e59a21f 100644
--- "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-15(\350\267\257\347\224\261).md"
+++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-15(\350\267\257\347\224\261).md"
@@ -1,5 +1,7 @@
### vue 路由的使用。
+### 安装路由 yarn add vue-router
+
### vue add -h (查看目录底下的文件夹)
+ yarn add vuex(文件夹) -D (下载到开发模式下的)。
@@ -31,4 +33,16 @@ router.map({
5. 使用 标签
+6. 路由的概念
+
++ 路由是指由URL分配到相对应的的地方去
+
++ route :也是一个路由的意思,它是单数的形式存在,也就是一个路由或者某个路由。
+
++ routes :表示一个复数的形式存在,表示多个路由组成的,也可以去理解成为一个多路由的集合或者数组集合。
+
++ router: 也是一个路由器的意思,这个路由器可以理解为一个容器或者为一个管理者,去负责管理 route、router,当用户在当前页面点击按钮的时候,这个时候router容器就会去寻找相对应的routes、route,直到找到为止。
+
+
+
diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md"
index 88aa214..a51b99e 100644
--- "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md"
+++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md"
@@ -19,4 +19,6 @@
+ 如:Users\Adminstrator\AppData\Local\Yarn\bin
-5. 退出命令模式,重新进入命令模式就可以使用 vue了。
\ No newline at end of file
+5. 退出命令模式,重新进入命令模式就可以使用 vue了。
+
+6. yarn add vue-router //下载路由组件
\ No newline at end of file
diff --git "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md" "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
new file mode 100644
index 0000000..111b43b
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
@@ -0,0 +1,9 @@
+## 用vue来做前端,
+
+1. 切换淘宝源,加快下载的速度
+
+2. 下载vue
+
+3. 需要下载的element快速开发工具的话就要引用配置,
+
+4. 下载element // yarn add element-ui
--
Gitee
From 16da9058aaf3491412b8048e97fb1d8289f36d22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BD=A6=E4=BF=8A=E6=97=AD?= <209933047@qq.com>
Date: Wed, 14 Jul 2021 12:05:50 +0800
Subject: [PATCH 18/24] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E4=BB=BD=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...3\256\350\207\252\345\270\246\344\275\223\347\263\273).md" | 4 ++++
1 file changed, 4 insertions(+)
diff --git "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md" "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
index 111b43b..292fabf 100644
--- "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
+++ "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
@@ -7,3 +7,7 @@
3. 需要下载的element快速开发工具的话就要引用配置,
4. 下载element // yarn add element-ui
+
+
+
+d
--
Gitee
From 18967e9b3893979fdc1c1c2774ecd638075e4892 Mon Sep 17 00:00:00 2001
From: liu
Date: Thu, 15 Jul 2021 08:30:42 +0800
Subject: [PATCH 19/24] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...07\252\345\270\246\344\275\223\347\263\273).md" | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md" "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
index 292fabf..999be7d 100644
--- "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
+++ "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
@@ -9,5 +9,17 @@
4. 下载element // yarn add element-ui
+### note-2021-7-15 导航栏图标的使用,和主页主键的新建一个文件夹放仪表盘。
+
++ 在 echarts 上寻找相对应的仪表盘,在布局上使用Layout使用重定向 redirect
+
++ 在打包环境下使用ECharts
+
++ 在终端下载 EChars // yarn add echarts
+
++ 在main.js引入 import * as echarts from 'echarts'; 在下面引入 Vue.prototype.$echarts = echarts
+
+
+
+
-d
--
Gitee
From dbabcc137867a61050b478226d4302e15abd85c1 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Fri, 16 Jul 2021 09:02:43 +0800
Subject: [PATCH 20/24] =?UTF-8?q?=E6=88=98=E7=95=A5=E6=80=A7=E6=B5=8B?=
=?UTF-8?q?=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...33\256\350\207\252\345\270\246\344\275\223\347\263\273).md" | 3 +++
1 file changed, 3 insertions(+)
diff --git "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md" "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
index 999be7d..411bdc3 100644
--- "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
+++ "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
@@ -19,6 +19,9 @@
+ 在main.js引入 import * as echarts from 'echarts'; 在下面引入 Vue.prototype.$echarts = echarts
++ 注意小细节
+
+
--
Gitee
From c6976ba4cfec970b18091d5822d489f5b405eb26 Mon Sep 17 00:00:00 2001
From: liu <3207586618@qq.com>
Date: Sat, 17 Jul 2021 08:41:43 +0800
Subject: [PATCH 21/24] =?UTF-8?q?=E6=9D=80=E6=AD=BB=E6=8C=96=E7=9F=BF?=
=?UTF-8?q?=E7=A8=8B=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...2\345\270\246\344\275\223\347\263\273).md" | 2 ++
...6\347\237\277\347\250\213\345\272\217).md" | 27 +++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 "\345\210\230\345\215\216\346\243\256/note-2021-7-17(\351\230\273\346\255\242\346\214\226\347\237\277\347\250\213\345\272\217).md"
diff --git "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md" "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
index 411bdc3..1ded2a4 100644
--- "a/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
+++ "b/\345\210\230\345\215\216\346\243\256/note-2021-7-10(\345\244\247\345\220\216\347\253\257\351\241\271\347\233\256\350\207\252\345\270\246\344\275\223\347\263\273).md"
@@ -21,6 +21,8 @@
+ 注意小细节
++ https://www.cnblogs.com/noneplus/p/13047609.html(处理恶意IP访问的)
+
diff --git "a/\345\210\230\345\215\216\346\243\256/note-2021-7-17(\351\230\273\346\255\242\346\214\226\347\237\277\347\250\213\345\272\217).md" "b/\345\210\230\345\215\216\346\243\256/note-2021-7-17(\351\230\273\346\255\242\346\214\226\347\237\277\347\250\213\345\272\217).md"
new file mode 100644
index 0000000..9c09dc9
--- /dev/null
+++ "b/\345\210\230\345\215\216\346\243\256/note-2021-7-17(\351\230\273\346\255\242\346\214\226\347\237\277\347\250\213\345\272\217).md"
@@ -0,0 +1,27 @@
+# 挖矿大部分是数据库的出现了问题,删除了 MD5和关闭了远程访问。
+
++ top // 查看进程
+
++ cd /var/lib/pgsql/13/data/
+
++ vim pg_hba.conf
+
++ vim postgresql.conf
+
++ systemctl restart postgresql-13 // 杀死进程
+
++ su postgres // 进入数据库
+
++ contrab -l
+
++ 倘若仍然发现进程的话就需要执行下一步操作
+
++ crontab -r
+
+## 开第二个窗口
+
++ top // 查看进程
+
++ kill -9 PID(恶意进程id)
+
++ top // 查看进程状态
--
Gitee
From 4b632cbdb799f20d9b01c32a864d76a27b2cf47e Mon Sep 17 00:00:00 2001
From: wjj <3207586618@qq.com>
Date: Tue, 20 Jul 2021 09:21:17 +0800
Subject: [PATCH 22/24] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80?=
=?UTF-8?q?=E4=B8=8B=E5=91=BD=E4=BB=A4=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md" "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
index 1fb8666..b9d0d20 100644
--- "a/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
+++ "b/\345\210\230\345\215\216\346\243\256/WebAPI-note-2021-6-23(\346\225\260\346\215\256\345\272\223\347\232\204\345\242\236\345\210\240\346\224\271\346\237\245).md"
@@ -43,7 +43,7 @@ delete/users/4 删除指定id
+ dotnet build // 生成.NET 项目
-+ dotnet tool install --global dotnet -ef // 安装全局域工具,
++ dotnet tool install --global dotnet-ef // 安装全局域工具,
+ dotnet add package - 向项目文件添加包引用 (Newtonsoft.Json 则是一个库) ,作用1.使用Newtonsoft.Json将对象转换成Json字符串(序列化),2.将Json字符串转换成对象(反序列化)
--
Gitee
From dc1a4028fce6058d65be59b74fb29f0debbbe6cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=A3=AE?= <3207586618@qq.com>
Date: Mon, 9 Aug 2021 03:30:54 +0000
Subject: [PATCH 23/24] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20Vue-note-2021-8-9(?=
=?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AFUL=E7=BB=84=E4=BB=B6)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "\345\210\230\345\215\216\346\243\256/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257UL\347\273\204\344\273\266)/.keep"
diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257UL\347\273\204\344\273\266)/.keep" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257UL\347\273\204\344\273\266)/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 521f55507d2b9923a6f8fbe943fbc4bcde6f1fa4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=A3=AE?= <3207586618@qq.com>
Date: Mon, 9 Aug 2021 03:34:42 +0000
Subject: [PATCH 24/24] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A7=BB=E5=8A=A8?=
=?UTF-8?q?=E7=AB=AF=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...3\345\212\250\347\253\257WebUL\347\273\204\344\273\266)" | 0
.../.keep" | 6 ++++++
2 files changed, 6 insertions(+)
create mode 100644 "Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257WebUL\347\273\204\344\273\266)"
diff --git "a/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257WebUL\347\273\204\344\273\266)" "b/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257WebUL\347\273\204\344\273\266)"
new file mode 100644
index 0000000..e69de29
diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257UL\347\273\204\344\273\266)/.keep" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257UL\347\273\204\344\273\266)/.keep"
index e69de29..62598e7 100644
--- "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257UL\347\273\204\344\273\266)/.keep"
+++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-8-9(\347\247\273\345\212\250\347\253\257UL\347\273\204\344\273\266)/.keep"
@@ -0,0 +1,6 @@
+
+1. vant 有赞团队
+
+2. antd-mobile
+
+3. fishd-mobile
\ No newline at end of file
--
Gitee