{"id":23869062,"url":"https://github.com/pppercywang/iris-gorm-demo","last_synced_at":"2025-09-08T18:31:11.344Z","repository":{"id":57485375,"uuid":"189967440","full_name":"pppercyWang/iris-gorm-demo","owner":"pppercyWang","description":"iris+gorm+mysql的restful api项目起手式","archived":false,"fork":false,"pushed_at":"2019-12-26T08:56:32.000Z","size":43,"stargazers_count":94,"open_issues_count":3,"forks_count":33,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T23:11:24.645Z","etag":null,"topics":["golang","gorm","iris","mysql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pppercyWang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-03T08:41:13.000Z","updated_at":"2025-08-06T06:30:35.000Z","dependencies_parsed_at":"2022-08-26T11:11:27.285Z","dependency_job_id":null,"html_url":"https://github.com/pppercyWang/iris-gorm-demo","commit_stats":null,"previous_names":["pppercywang/lib-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pppercyWang/iris-gorm-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pppercyWang%2Firis-gorm-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pppercyWang%2Firis-gorm-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pppercyWang%2Firis-gorm-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pppercyWang%2Firis-gorm-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pppercyWang","download_url":"https://codeload.github.com/pppercyWang/iris-gorm-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pppercyWang%2Firis-gorm-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274229367,"owners_count":25245187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","gorm","iris","mysql"],"created_at":"2025-01-03T12:14:52.571Z","updated_at":"2025-09-08T18:31:11.068Z","avatar_url":"https://github.com/pppercyWang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iris-gorm-demo\n与lib-ui对应的服务端代码，使用iris+gorm+mysql搭建的一个restful项目模板\n\n#### 12.26更新\n1. 优化代码结构\n2. jwt实现\n3. json传参\n4. md5处理\n```\nconf  配置文件\ncontrollers  控制器 入参处理 api的入口\ndatasource 数据库配置 \nmodels  结构体\ndb  sql数据文件 postman接口文件\nrepo 数据库的操作\nmiddleware 中间件 jwt实现\nroute  注册路由\nservice 业务逻辑代码\nutils  工具类\nconfig.json 配置文件的映射\nmain.go 主程序入口\n```\n### 启动项目\n```\n1.安装依赖 go get\n2.go run main.go\n```\n1. 使用go get直接下载依赖，或在github手动下载包放到gopath/src/github.com/\n2. 导包时使用相对路径需要将项目放在你配置的GOPATH目录下\n3. 这里我没有使用go module来管理依赖，是因为下载包很容易被墙。你可以使用go mod init用go mod来管理 \n\n#### 前端\nhttps://github.com/pppercyWang/lib-ui\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpppercywang%2Firis-gorm-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpppercywang%2Firis-gorm-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpppercywang%2Firis-gorm-demo/lists"}