docs: 统一图片路径和命名规则 (#359)

This commit is contained in:
danny
2020-03-11 23:04:34 +08:00
committed by GitHub
parent e74f9ace8a
commit 60e734d431
43 changed files with 30 additions and 30 deletions

View File

@@ -275,7 +275,7 @@ node_modules是litemall-admin和litemall-vue模块所依赖的项目库可能
2. 然后分别创建空的node_modules文件夹
3. 重新打开IDEA分别设置litemall-admin模块和litemall-vue模块的node_modules文件夹Excluded状态。
![](./pic/excluded.png)
![](./pics/faq/excluded.png)
### 4.2 项目war打包

View File

@@ -355,7 +355,7 @@ API应该存在版本控制以保证兼容性。
例如测试2.4.2节商品详情API
![](./pic/get.png)
![](./pics/admin/get.png)
#### 1.8.2 GET & Token 示例
@@ -365,15 +365,15 @@ API应该存在版本控制以保证兼容性。
如果没有登录,则返回未登录信息
![](./pic/get_no_token.png)
![](./pics/admin/get_no_token.png)
因此测试这些API需要先登录
![](./pic/login.png)
![](./pics/admin/login.png)
然后,采用自定义`X-Litemall-Token`来携带token访问商场API
![](./pic/get_with_token.png)
![](./pics/admin/get_with_token.png)
注意:
> 访问受保护商场API是采用自定义`X-Litemall-Token`头部;
@@ -387,15 +387,15 @@ API应该存在版本控制以保证兼容性。
如果需要登录才能提交数据则需要先向后端请求登录得到token然后请求时携带token。
![](./pic/post_no_token.png)
![](./pics/admin/post_no_token.png)
因此测试这些API需要先登录
![](./pic/login.png)
![](./pics/admin/login.png)
然后,采用自定义`X-Litemall-Token`来携带token访问商场API
![](./pic/get_with_token.png)
![](./pics/admin/get_with_token.png)
注意:
> 访问受保护商场API是采用自定义`X-Litemall-Token`头部;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

View File

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 107 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View File

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 206 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 111 KiB

View File

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 107 KiB

View File

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 155 KiB

View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 131 KiB

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

View File

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 157 KiB

View File

Before

Width:  |  Height:  |  Size: 487 B

After

Width:  |  Height:  |  Size: 487 B

View File

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 155 KiB

View File

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

@@ -183,7 +183,7 @@ litemall_region表保存了行政区域信息包括省级、市级、县级
#### 2.1.4.1 订单状态
![](pic2/2-1.png)
![](./pics/platform/order-status.png)
订单分成几种基本的状态:
@@ -587,7 +587,7 @@ litemall-db模块是一个普通的Spring Boot应用基于mybatis框架实现
* Mybatis Generator
* Mybatis Generator非官方插件mybatis-generator-plugin
![](./pic2/2-2.png)
![](./pics/platform/db-main.png)
这里litemall-db模块可以分成以下几种代码
@@ -610,7 +610,7 @@ mybatis数据库访问代码是指dao接口代码、dao数据库XML文件和doma
#### 2.2.1.1 自动生成代码
![](./pic2/2-3.png)
![](./pics/platform/mybatis-generator.png)
如上图所示,双击`mybatis-generator:generate`则mybatis generator插件会

View File

@@ -4,7 +4,7 @@
litemall是一个简单的商场系统基于现有的开源项目重新实现一个完整的前后端项目包含小程序客户端、移动客户端和网页管理端。
![](./pic1/1-1.png)
![](./pics/project/project-structure.png)
项目的架构是四个系统和九个模块:
@@ -236,7 +236,7 @@ Spring Boot技术栈参考以下文档或者项目
接下来从项目的开发、部署测试和上线三个阶段介绍litemall。
![](pic1/1-10.png)
![](./pics/project/stage.png)
首先需要明确的是三个不同阶段:
@@ -277,7 +277,7 @@ Spring Boot技术栈参考以下文档或者项目
## 1.4 开发方案
![](pic1/1-2.png)
![](./pics/project/develop-stage.png)
如图所示,当前开发阶段的方案:
@@ -336,7 +336,7 @@ flush privilege
或者采用IDEA的Maven插件安装本项目依赖库点击`install`
![](pic1/1-8.png)
![](./pics/project/idea-maven-insatll.png)
7. 采用Maven命令编译本项目
@@ -363,7 +363,7 @@ flush privilege
如果采用IDEA则litemall-all模块的Application类
右键` Run Application.main()`方式运行该模块,
![](pic1/1-9.png)
![](./pics/project/idea-run-all.png)
打开浏览器,输入
```
@@ -826,7 +826,7 @@ litemall:
主要流程是创建云服务器安装ubuntu操作系统按照JDK和MySQL应用运行环境部署单一Spring Boot服务。
![](pic1/1-11.png)
![](./pics/project/deploy-single.png)
#### 1.5.1.1 云服务器
@@ -841,7 +841,7 @@ litemall:
3. 创建安全组
![](pic1/1-4.png)
![](./pics/project/security-group.png)
目前允许的端口808080443223306
@@ -1037,7 +1037,7 @@ cd litemall
* 提供管理后台前端所需要的数据;
* 提供小商城前端所需要的数据。
![](pic1/1-12.png)
![](./pics/project/online-deploy.png)
开发者可以基于自身业务采用其他上线方案。
@@ -1160,7 +1160,7 @@ http://www.example.com
总结经过以上不同方面的配置nginx这里最终的配置是如下
1. 证书`1_www.example.com_bundle.crt`和`2_www.example.com.key`放置在
`/etc/nginx/`文件夹内。
2. 把`/etc/nginx/nginx.conf`文件进行修改,具体可以参考[本项目的nginx.conf](./pic/nginx.conf)
2. 把`/etc/nginx/nginx.conf`文件进行修改,具体可以参考[本项目的nginx.conf](./conf/nginx.conf)
3. 重启nginx
注意:
@@ -1423,9 +1423,9 @@ application配置文件中但是问题就是数据库信息一旦改变则其
3. 上线阶段同样地在litemall.jar包同级目录创建上线配置文件。
此外,这里还可以采用另外一种思路,如下图:
![](pic1/1-13.png)
![](pic1/1-14.png)
![](pic1/1-15.png)
![](./pics/project/maven-profile.png)
![](./pics/project/spring-profile.png)
![](./pics/project/yml-resource.png)
其实原理也很简单就是配置文件采用application-{module}-{profile}.yml来支持不同模块不同阶段的配置需求。

View File

Before

Width:  |  Height:  |  Size: 240 KiB

After

Width:  |  Height:  |  Size: 240 KiB

View File

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 189 KiB

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB