vgo

command module
v1.20.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Vgo

CI Build Release

vAdmin 的 Go 版本后端——基于 GoFrame v2 的后台管理系统,开箱自带 RBAC 权限、数据字典、任务调度、数据回收、开放平台签名与可执行插件体系。

技术栈

  • Go 1.27.3 · GoFrame v2.10.4(多模块 go.work 工作区)
  • sa-token-go 会话认证(Random64 服务端会话、顶号/刷新轮换/改密下线)
  • PostgreSQL(迁移命令 PG-only)· Redis(会话/缓存,可降级内存)
  • 密钥经 VGO_* 环境变量注入(.env 自动加载,严禁入库)

内置模块

模块 能力
base 用户/角色/部门/菜单/参数、RBAC、登录认证、文件上传(local/minio/oss)、系统日志
dict 数据字典
task 任务调度
recycle 数据回收站(删除快照/恢复/定期清理)
plugin 可执行插件体系(ZIP 安装、Hook 接管上传、热重载)
user C 端用户体系(手机/密码/微信登录、资料、收货地址)
openapi 开放平台应用与签名(防重放)
space 空间管理

插件为 Go 二进制可执行程序(pluginsdk + stdio JSON-RPC),vgo-tools plugin 一键脚手架、vgo-tools plugin-pack 多平台打包,详见插件开发指南。

快速开始

1. 安装 vgo-tools
wget -O vgo-tools https://github.com/vera-byte/vgo/releases/latest/download/vgo-tools_$(go env GOOS)_$(go env GOARCH) \
  && chmod +x vgo-tools && ./vgo-tools install && rm ./vgo-tools

下载慢可用 pgit 加速(pgit wget ...),或 go install github.com/vera-byte/vgo/vgo-tools@latest。验证:vgo-tools version。

2. 创建项目并配置
vgo-tools init hello-world && cd hello-world
cp .env.example .env            # 填数据库/Redis 凭证(VGO_* 变量)
3. 建库与启动
go mod tidy
go run main.go migrate          # 迁移全部模块(含内嵌迁移)
go run main.go server           # 启动 Web 服务(默认 :8001)

命令树:server / migrate / pack / utils + 各模块管理命令(go run main.go 查看)。

本仓库开发

git clone git@github.com:vera-byte/vgo.git && cd vgo
cp .env.example .env && cp manifest/config/config.example.yaml manifest/config/config.yaml
make test && make vet           # 门禁
go run . server                 # 或 make dev

多模块:根与各子模块 go.mod 均 replace 指向本地源码,克隆即可构建;gowork.sh 可生成 go.work 便于跨模块联调。

License

见 LICENSE。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
contrib
drivers/mysql module
drivers/pgsql module
files/local module
files/minio module
files/oss module
docs module
internal
packed
Package packed 是打包资源的占位包。
Package packed 是打包资源的占位包。
base module
demo module
dict module
openapi module
plugin module
recycle module
space module
task module
user module
v module
vgo-tools module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL