ant-forum-admin:博客系统,gin,casbin,jwt,restful api-源码

上传者: 42181319 | 上传时间: 2021-03-11 19:06:54 | 文件大小: 89KB | 文件类型: ZIP
开始 启动 go run main.go 生成api文档 swag init 访问 使用air启动 安装空气 go get -v github.com/cosmtrek/air/cmd/... 创建.air.conf文件 可以复制里面的air.conf.example内容 启动 根目录下 air 遇到的一些问题 如何方式gorm save的时候覆盖create_at细分 db.Save(&user)会共同更新created_at。为了使created_at细分的值不被重置,可以使用省略忽略前缀。即:db.Omit(“ created_at”)。Save(&user)

文件下载

资源详情

[{"title":"( 80 个子文件 89KB ) ant-forum-admin:博客系统,gin,casbin,jwt,restful api-源码","children":[{"title":"ant-forum-admin-master","children":[{"title":"pkg","children":[{"title":"auth","children":[{"title":"auth.go <span style='color:#111;'> 479B </span>","children":null,"spread":false}],"spread":true},{"title":"constvar","children":[{"title":"constvar.go <span style='color:#111;'> 47B </span>","children":null,"spread":false}],"spread":true},{"title":"errno","children":[{"title":"code.go <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"errno.go <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"token","children":[{"title":"token.go <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"version","children":[{"title":"doc.go <span style='color:#111;'> 16B </span>","children":null,"spread":false},{"title":"base.go <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"version.go <span style='color:#111;'> 787B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".air.conf <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"log","children":[{"title":"ant_forum.log <span style='color:#111;'> 296.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"handler","children":[{"title":"sd","children":[{"title":"check.go <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false}],"spread":true},{"title":"v1","children":[{"title":"handler.go <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"tags","children":[{"title":"list.go <span style='color:#111;'> 928B </span>","children":null,"spread":false},{"title":"update.go <span style='color:#111;'> 960B </span>","children":null,"spread":false},{"title":"create.go <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"get.go <span style='color:#111;'> 937B </span>","children":null,"spread":false},{"title":"req_res_model.go <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"delete.go <span style='color:#111;'> 814B </span>","children":null,"spread":false}],"spread":true},{"title":"articles","children":[{"title":"articles_req_res_model.go <span style='color:#111;'> 1014B </span>","children":null,"spread":false},{"title":"list.go <span style='color:#111;'> 1018B </span>","children":null,"spread":false},{"title":"validate.go <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":"create.go <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"get.go <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"delete.go <span style='color:#111;'> 847B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"list.go <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":"update.go <span style='color:#111;'> 985B </span>","children":null,"spread":false},{"title":"create.go <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"get.go <span style='color:#111;'> 903B </span>","children":null,"spread":false},{"title":"req_res_model.go <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"delete.go <span style='color:#111;'> 817B </span>","children":null,"spread":false}],"spread":true},{"title":"role","children":[{"title":"list.go <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":"update.go <span style='color:#111;'> 967B </span>","children":null,"spread":false},{"title":"create.go <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"get.go <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"req_res_model.go <span style='color:#111;'> 458B </span>","children":null,"spread":false},{"title":"delete.go <span style='color:#111;'> 817B </span>","children":null,"spread":false}],"spread":true},{"title":"user","children":[{"title":"list.go <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"update.go <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"create.go <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"get.go <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"req_res_model.go <span style='color:#111;'> 601B </span>","children":null,"spread":false},{"title":"delete.go <span style='color:#111;'> 836B </span>","children":null,"spread":false},{"title":"login.go <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"categories","children":[{"title":"list.go <span style='color:#111;'> 957B </span>","children":null,"spread":false},{"title":"create.go <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"get.go <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"req_res_model.go <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"delete.go <span style='color:#111;'> 855B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"config","children":[{"title":"config.go <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false}],"spread":true},{"title":"conf","children":[{"title":"config.yaml <span style='color:#111;'> 734B </span>","children":null,"spread":false},{"title":"rbac_model.conf <span style='color:#111;'> 349B </span>","children":null,"spread":false}],"spread":true},{"title":"docs","children":[{"title":"swagger.json <span style='color:#111;'> 48.45KB </span>","children":null,"spread":false},{"title":"docs.go <span style='color:#111;'> 49.71KB </span>","children":null,"spread":false},{"title":"swagger.yaml <span style='color:#111;'> 23.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"init.go <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"categories.go <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"menu.go <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"articles.go <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false},{"title":"tags.go <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"base_model.go <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"role.go <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"user.go <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"main.go <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"forum.sql <span style='color:#111;'> 5.42KB </span>","children":null,"spread":false},{"title":"service","children":[{"title":"categories.go <span style='color:#111;'> 516B </span>","children":null,"spread":false},{"title":"menu.go <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"articles.go <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"tags.go <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"role.go <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"users.go <span style='color:#111;'> 448B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 602B </span>","children":null,"spread":false},{"title":"util","children":[{"title":"util.go <span style='color:#111;'> 320B </span>","children":null,"spread":false},{"title":"setcasbin.go <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":false},{"title":"router","children":[{"title":"router.go <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"middleware","children":[{"title":"casbin.go <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"auth.go <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"header.go <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"logging.go <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"requestid.go <span style='color:#111;'> 545B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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