8000 GitHub - ourcx/xiaohaiyun: 仿百度网盘项目
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ourcx/xiaohaiyun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

bd网盘

架构

使用MVC架构搭建,环境是Gin+Gorm+MySql+Redis+go

根目录和资源目录
  1. 创建一个go目录,用于存放Go代码;一个resources资源目录,存放配置文件

  2. go根目录底下,创建controller、service、dao、entity包,另外,还需要一个router包

  3. 在resources资源目录创建一个application.yaml配置文件

    dao层主要是用来放数据库

    entity层定义:用来放表结构的结构体

    servise层来建立增删改查的业务逻辑

    controller用来搞简历Uesr的控制

    routes层增加路由文件,用于根据请求url进行转发。

    建立一个main的启动类,要引入上面的所有东西

使用go-zero进行微服务

把核心的功能:用户\文件上传下载\文件分享\数据监控

拆分成不同的微服务

分别进行处理

技术栈是go-zero

前端实现

vue3+vite+pinia+element-plus+d3js

大概要有到的技术栈

About

仿百度网盘项目

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0