87 lines
2.2 KiB
Markdown
87 lines
2.2 KiB
Markdown
## 六 天牛网盘
|
|
### 6.1 数据字典
|
|
|
|
#### 用户信息
|
|
|
|
#### 文件信息
|
|
|
|
编号、用户编号、文件名、目录编号 、类型、大小、位置、创建时间、状态、hash
|
|
|
|
#### 目录信息
|
|
|
|
编号、用户编号、目录名称、上级目录编号、目录路径、创建时间、状态
|
|
|
|
#### 分享信息
|
|
|
|
编号、用户编号、分享的数据编号、分类类型(file|folder)、提取码、分享有效期、状态
|
|
|
|
### 6.2 技术架构
|
|
|
|
```shell
|
|
# 安装前端ui框架
|
|
npm i element-plus @element-plus/icons-vue less less-loader
|
|
```
|
|
|
|
### 6.3 后端项目
|
|
|
|
```yaml
|
|
# 应用名称
|
|
spring:
|
|
application:
|
|
name: Driver
|
|
# 数据库
|
|
datasource:
|
|
name: defaultDataSource
|
|
url: jdbc:mysql://localhost:3306/net_driver?serverTimezone=Asia/Shanghai
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
username: root
|
|
password: 123456
|
|
# 添加druid数据库连接池
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
#数据源配置
|
|
druid:
|
|
max-active: 1000
|
|
initial-size: 10
|
|
max-wait: 1000
|
|
min-idle: 10
|
|
time-between-eviction-runs-millis: 60000
|
|
min-evictable-idle-time-millis: 300000
|
|
validation-query: select 1
|
|
test-while-idle: true
|
|
test-on-borrow: false
|
|
test-on-return: false
|
|
max-pool-prepared-statement-per-connection-size: 0
|
|
|
|
#监控
|
|
stat-view-servlet:
|
|
url-pattern: /druid/*
|
|
reset-enable: false
|
|
login-username: admin
|
|
login-password: admin
|
|
allow: 127.0.0.1
|
|
# 是否启用
|
|
enabled: true
|
|
web-stat-filter:
|
|
url-pattern: /*
|
|
exclusions: /druid/*,*.js,*.css,*.html,*.png,*.jpg
|
|
# redis缓存
|
|
redis:
|
|
database: 1
|
|
# 应用服务 WEB 访问端口
|
|
server:
|
|
port: 8080
|
|
# Actuator Web 访问端口
|
|
#management.server.port=8081
|
|
#management.endpoints.jmx.exposure.include=*
|
|
#management.endpoints.web.exposure.include=*
|
|
#management.endpoint.health.show-details=always
|
|
|
|
|
|
```
|
|
|
|
#### 参与贡献
|
|
|
|
1. Fork 本仓库
|
|
2. 新建 Feat_xxx 分支
|
|
3. 提交代码
|
|
4. 新建 Pull Request |