1. 开发环境搭建
网盘插件的应用须要配合智汀家庭云(SA)和LVM服务的反对,通过智汀家庭云(SA)受权登录,通过LVM服务进行io操作。
2.环境筹备
go 版本为1.15.0或以上
确保LVM服务和智汀家庭云服务可能失常拜访
步骤
获取代码
git clone https://github.com/zhiting-tech/zhiting-nas.git
同步依赖
go mod tidy
复制 app.yaml.example 到 app.yaml 并配置
Server: RunMode: debug HttpPort: 8089 ReadTimeout: WriteTimeout: App: DefaultPageSize: MaxPageSize: LogSavePath: LogFileName: LogFileExt: # 上传文件保留门路 UploadSavePath: "" # SQLite 文件门路 DbSavePath: "" ExtServer: # LVM服务的拜访地址 LvmServer: # 智汀家庭云的拜访地址 SaServer: "" SaHttp: http
编译运行
go run main.go