The design of the back-end GIN framework of the video copyright deposit system based on blockchain and IPFS

This section briefly introduces the back-end part of the video copyright storage system, including directory structure, file functions, and project processes (generating key pairs, registering video copyrights, and downloading files).

Please read carefully before purchasing the column: Introduction to the column "Data Sharing System Based on Blockchain and IPFS"

1. Introduction to the back-end part of the file directory

.
├── api 
│   ├── api.go               // 封装好的一些API接口
│   ├── config.yaml          // Fabric SDK使用的配置文件
│   └── rsa                  // 来源:https://github.com/wumansgy/goEncrypt
│       ├── getrsakey.go     // 生成密钥
│       └── rsacrypt.go      // 加解密、私钥转公钥等
├── controller				 
│   └── controller.go		 // 控制器(负责处理路由中的函数)
├── go.mod                   // Go模块文件,管理项目依赖项
├── go.sum                   // Go模块的校验文件
├── main.go                  // 入口文件
├── model 
│   └── model.go             // 存储数据的结构体使用
└── routers
    └── routers.go           // 路由请求

Guess you like

Origin blog.csdn.net/qq_41575489/article/details/131780369