GithubHelp home page GithubHelp logo

go-admin's Introduction

gin-gorm-admin

基于gin-gorm-admin实现的权限管理系统。

账号:admin 密码:123456

特性

  • 遵循 RESTful API 设计规范 & 基于接口的编程规范
  • 基于 GIN 框架,提供了丰富的中间件支持(JWTAuth、CORS、RequestRateLimiter、Recover、GZIP)
  • 基于Casbin的 RBAC 访问控制模型
  • 基于jwt 认证
  • 基于go-playground/validator开源库简化gin的请求校验
  • 用Docker上云
  • 在token过期后的一个小时内,用户再次操作会要求重新登陆
  • 基于swaggo为Go工程生成自动化接口文档
  • 基于wire依赖注入
  • 基于gorm全功能ORM
  • 基于air自动编译,重启程序
  • 基于redis限制请求频率

内置

  1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
  2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
  3. 岗位管理:配置系统用户所属担任职务。
  4. 菜单管理:配置系统菜单,操作权限,按钮权限标识,接口权限等。
  5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
  6. 接口文档:根据业务代码自动生成相关的api接口文档。

项目结构


├─api
├─cmd
├─configs
├─docs
├─internal
│  ├─config
│  ├─contextx
│  ├─errors
│  ├─ginx
│  ├─middleware
│  ├─models
│  ├─schema
│  ├─service
│  └─validate
└─pkg
    ├─fileStore
    ├─gormx
    ├─hash
    ├─helper
    ├─logger
    ├─monitor
    ├─rabbitMQ
    ├─redisHelper
    ├─store
    ├─timer
    ├─types
    └─validate

下载依赖

depend.cmd

代码生成与运行

生成
generate.cmd
数据库
gin-admin.sql
运行
run.cmd 或go run ./cmd/gin-gorm-admin/ web -c ./configs/config.toml
sys_api表的数据如何添加

在项目启动时,使用-a true 系统会自动添加缺少的接口数据

go run ./cmd/gin-gorm-admin/ web -c ./configs/config.toml -a true
docker部署
deploy.cmd

go-admin's People

Contributors

dot123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.