SkillAgentSearch skills...

Ginblog

Web blog developed based on Go language (Gin+Gorm+MySQL)

Install / Use

/learn @mazezen/Ginblog
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

gin-blog

go+gin+gorm+mysql+vue 博客简版

<a href="https://github.com/mazezen/gin-blog/releases"> <img src="https://img.shields.io/github/release/gin-blog/releases.svg" alt="GitHub release"> </a> <a href="https://github.com/mazezen/gin-blog/blob/master/LICENSE"> <img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="license"> </a>

功能

| 登陆 | ✅ | | ------------ | ---- | | 创建管理员 | ✅ | | 账号列表 | ✅ | | 删除账号 | ✅ | | 账号详情 | ✅ | | 修改账号信息 | ✅ | | 禁用 | ✅ | | 启用 | ✅ | | 创建标签 | ✅ | | 标签列表 | ✅ | | 修改标签名字 | ✅ | | 删除标签 | ✅ | | 创建分类 | ✅ | | 分类列表 | ✅ | | 修改分类名字 | ✅ | | 删除分类 | ✅ | | 写文章 | ✅ | | 文章列表 | ✅ | | 文章修改 | ✅ | | 删除文章 | ✅ | | 评论 | ✅ | | 评论列表 | ✅ | | 删除评论 | ✅ | | 添加友联 | ✅ | | 修改友联 | ✅ | | 删除友联 | ✅ |

目录结构

目录结构
	constants                       # 定义常量目录
		state.go 
	db                              # 数据库连接初始化
		core.go
	handler                         # 控制器
		......
	middleware                      # 中间件
		......
	models                          # 模型
		......
	routers                         # 路由
		router.go
	service                         # 服务层,业务逻辑处理,与models交互操作数据库
		......
	types                           # 状态码,状态信息
		code.go
	util                            # 工具包
		encrypt.go
		result.go
	.gitignore
	gin-blog
	go.mod 
	main.go
	README.md

后端

git clone git@github.com:mazezen/gin-blog.git
➜ cd gin-blog

➜ gowatch gin-blog

前端

npm install

npm run serve

访问: localhost:8081

admin / 123456

效果

tag

Related Skills

View on GitHub
GitHub Stars46
CategoryData
Updated3mo ago
Forks14

Languages

Go

Security Score

87/100

Audited on Dec 19, 2025

No findings