{"id":18345264,"url":"https://github.com/hunter-ji/resetful-gin-demo","last_synced_at":"2026-04-09T02:31:22.891Z","repository":{"id":105932170,"uuid":"287904260","full_name":"hunter-ji/resetful-gin-demo","owner":"hunter-ji","description":"gin的resetful案例","archived":false,"fork":false,"pushed_at":"2020-11-12T15:27:27.000Z","size":57,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T22:42:44.763Z","etag":null,"topics":["demo","docker","dockerfile","gin","golang","mysql","redis","restful-api","web"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hunter-ji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-08-16T08:30:10.000Z","updated_at":"2020-11-12T15:27:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3621712-5ba0-4ec8-b2af-c1df2929b01e","html_url":"https://github.com/hunter-ji/resetful-gin-demo","commit_stats":null,"previous_names":["hunter-ji/resetful-gin-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hunter-ji/resetful-gin-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fresetful-gin-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fresetful-gin-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fresetful-gin-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fresetful-gin-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunter-ji","download_url":"https://codeload.github.com/hunter-ji/resetful-gin-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fresetful-gin-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31582589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["demo","docker","dockerfile","gin","golang","mysql","redis","restful-api","web"],"created_at":"2024-11-05T21:07:38.694Z","updated_at":"2026-04-09T02:31:22.875Z","avatar_url":"https://github.com/hunter-ji.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resetful Gin Demo\n\n\n\n## 简介\n\n使用`gin`开发的resetful风格的todo项目，包括用户管理和todo的增删改查。使用query params的方式携带token来验证身份，中间件拦截请求，验证token，将相关用户信息写到上下文中。数据库连接使用`gin`的`GIN_MODE`环境变量来切换生产和开发环境。\n\n\n\n## 路由\n\n| 路由         | 说明                          |\n| ------------ | ----------------------------- |\n| /ping        | ping/pong检测mysql和redis连接 |\n| /user/login  | 登录                          |\n| /user/info   | 用户信息                      |\n| /user/logout | 注销                          |\n| /todo        | todo的增删改查                |\n| /todo/single | 单个todo的详情                |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-ji%2Fresetful-gin-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunter-ji%2Fresetful-gin-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-ji%2Fresetful-gin-demo/lists"}