-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
1 changed file
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,33 @@ | ||
# 菜鸟驿站 | ||
# dousheng | ||
|
||
## 项目运行 | ||
|
||
### | ||
|
||
具体功能内容参考飞书说明文档 | ||
|
||
工程无其他依赖,直接编译运行即可 | ||
## 4399 菜鸟驿站队 | ||
|
||
### 项目启动方式 | ||
```shell | ||
go run main.go | ||
``` | ||
|
||
### 功能说明 | ||
|
||
接口功能不完善,仅作为示例 | ||
底层服务:mysql、Redis<br> | ||
ORM框架:Gorm、Gorm拓展soft-delete<br> | ||
HTTP框架:Gin、Gin拓展Gin-Jwt<br> | ||
配置管理:Viper<br> | ||
日志管理:Zap<br> | ||
|
||
### 代码结构 | ||
|
||
>configs 存放配置文件<br> | ||
>controller 存储各个部分控制器<br> | ||
>dao 数据访问层<br> | ||
>global 全局变量<br> | ||
>logic 存放实际业务逻辑<br> | ||
>models 存放数据库结构体<br> | ||
>pkg 项目相关模块包<br> | ||
> | ||
>>middleware 存放拦截器等中间件<br> | ||
>>jwt 鉴权模块<br> | ||
>>seting 全局信息相关<br> | ||
> | ||
>public 暂时存放视频,随后视频会自动传送到aliyun-oss<br> | ||
>router 存放路由器<br> | ||
>storage 项目生成的临时文件<br> | ||
* 用户登录数据保存在内存中,单次运行过程中有效 | ||
* 视频上传后会保存到本地 public 目录中,访问时用 127.0.0.1:8080/static/video_name 即可 |