Skip to content

A simple blog system based on golang and vue3

Notifications You must be signed in to change notification settings

yantijin/GoBlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoBlog

基于golang和vue的前后端分离的博客系统,持续开发ing.....

主要技术栈

后端

  • ✅ GIN
  • ✅ GORM-> 数据库
  • ✅ JWT-GO 鉴权
  • Casbin->权限管理
  • ✅ Zap->日志管理
  • ✅ Viper->配置读取
  • redis-go 缓存
  • ✅ lute markdown引擎

前端

  • ✅ Vite 脚手架,快速构建
  • ✅ vue3 前端框架
  • ✅ Element-Plus UI UI库
  • ✅ Vue-Router 前端路由
  • ✅ Pinia 状态管理器
  • ✅ Mitt 事件触发器
  • ✅ vditor markdown 编辑器/渲染

主要功能

  • 用户信息相关:

    • ✅ 注册 user/signup

    • ✅ 登录 user/signin

    • ✅ 修改密码 user/change_pwd

    • ✅ 编辑更新信息 user/getEditUser user/postEditUser

  • 文章功能:

    • ✅ 发表文章 article/postPublishArticle

    • ✅ 编辑文章 article/getEditArticle article/postEditArticle

    • ✅ 删除文章 article/deleteArtile/:artilceId

    • ✅ 获取某用户的文章 article/getUserArticles?id=xxx

    • ✅ 根据文章id查询文章 article/getArticle?=id=xxx

  • 评论功能:

    • ✅ 对文章/评论进行评论 comment/postCreateComments

    • ✅ 获取文章/评论的所有回复 comment/postGetComments

    • ✅ 获取某用户的所有回复(包括评论和文章) comment/getUserComments?id=xxx

  • 点赞功能:

    • ✅ 对文章/评论点赞 user_like/postLike

    • ✅ 对文章/评论取消点赞 user_like/postUnlike

    • ✅ 获取某用户对文章/评论的所有点赞 user_lie/getUserLike?entity_type=xxx&user_id=xxx

  • 用户权限管理

  • 基于角色的访问控制模型

  • 数据库初始化和CRUD

  • redis 缓存

  • operation record

  • 不同角色具体权限:

    • 用户:
      • 用户信息管理
        • CRUD
      • 博客
        • CRUD
    • 管理员:
      • 用户管理
      • 内容管理
      • 数据管理
      • 系统管理【各项统计数据报表监控】

About

A simple blog system based on golang and vue3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published