go-admin:go web api,包含gin + gorm + jwt + rbac等-源码

上传者: 42126749 | 上传时间: 2021-05-08 22:25:14 | 文件大小: 79KB | 文件类型: ZIP
转到网络管理员 一个Go Web Api尽可能简单的例子,包含用户,权限,菜单,JWT,RBAC(Casbin)等! 表 用户用户名密码 角色名称 菜单名称路径方法 API注释 目录结构 conf:用于存储配置文件 docs:文档 sql执行命令 API注释 日志:日志 中间件:应用中间件 注入初始化对象 jwt 权限验证 型号:应用数据库模型 pkg:第三方包 路由器:路由逻辑处理 服务:逻辑处理 测试:单元测试 权限验证说明 项目启动时,会自动user role menu 进行自动关联! 如有更改,会删除对应的权限,重新加载! 用户 关联 角色 角色 关联 菜单 权限

文件下载

资源详情

[{"title":"( 42 个子文件 79KB ) go-admin:go web api,包含gin + gorm + jwt + rbac等-源码","children":[{"title":"go-admin-master","children":[{"title":"conf","children":[{"title":"rbac_model.conf <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"app.ini <span style='color:#111;'> 327B </span>","children":null,"spread":false}],"spread":true},{"title":"go.mod <span style='color:#111;'> 591B </span>","children":null,"spread":false},{"title":"pkg","children":[{"title":"e","children":[{"title":"code.go <span style='color:#111;'> 519B </span>","children":null,"spread":false},{"title":"msg.go <span style='color:#111;'> 892B </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"pagination.go <span style='color:#111;'> 287B </span>","children":null,"spread":false},{"title":"jwt.go <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"md5.go <span style='color:#111;'> 780B </span>","children":null,"spread":false}],"spread":true},{"title":"file","children":[{"title":"file.go <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"setting","children":[{"title":"setting.go <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"logging","children":[{"title":"log.go <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"file.go <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"app","children":[{"title":"response.go <span style='color:#111;'> 281B </span>","children":null,"spread":false},{"title":"request.go <span style='color:#111;'> 215B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"service","children":[{"title":"menu_service","children":[{"title":"menu.go <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"bll","children":[{"title":"b_common.go <span style='color:#111;'> 267B </span>","children":null,"spread":false}],"spread":true},{"title":"role_service","children":[{"title":"role.go <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false}],"spread":true},{"title":"user_service","children":[{"title":"user.go <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"main.go <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"models","children":[{"title":"role.go <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"models.go <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"user.go <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"menu.go <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"go.sum <span style='color:#111;'> 25.59KB </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"middleware","children":[{"title":"jwt","children":[{"title":"jwt.go <span style='color:#111;'> 865B </span>","children":null,"spread":false}],"spread":true},{"title":"permission","children":[{"title":"permissions.go <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"inject","children":[{"title":"inject.go <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 253B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"main.go <span style='color:#111;'> 299B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"sql","children":[{"title":"go.sql <span style='color:#111;'> 6.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"swagger","children":[{"title":"swagger.yaml <span style='color:#111;'> 7.86KB </span>","children":null,"spread":false},{"title":"swagger.json <span style='color:#111;'> 17.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"docs.go <span style='color:#111;'> 17.72KB </span>","children":null,"spread":false},{"title":"demo.jpg <span style='color:#111;'> 63.02KB </span>","children":null,"spread":false}],"spread":false},{"title":"routers","children":[{"title":"api","children":[{"title":"v1","children":[{"title":"role.go <span style='color:#111;'> 4.71KB </span>","children":null,"spread":false},{"title":"menu.go <span style='color:#111;'> 4.75KB </span>","children":null,"spread":false}],"spread":false},{"title":"user.go <span style='color:#111;'> 8.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"router.go <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明