{"id":13820246,"url":"https://github.com/weiwei2012holy/short_url","last_synced_at":"2026-02-06T16:14:28.010Z","repository":{"id":118815338,"uuid":"432956527","full_name":"weiwei2012holy/short_url","owner":"weiwei2012holy","description":"开箱即用的短网址服务——GO语言部署版本","archived":false,"fork":false,"pushed_at":"2023-11-09T02:46:25.000Z","size":20864,"stargazers_count":37,"open_issues_count":0,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-19T19:44:08.553Z","etag":null,"topics":["go","short-url"],"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/weiwei2012holy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-29T08:14:27.000Z","updated_at":"2024-09-17T04:33:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"9748296f-9ba2-45c2-9b00-a5cdb2b5b408","html_url":"https://github.com/weiwei2012holy/short_url","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2012holy%2Fshort_url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2012holy%2Fshort_url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2012holy%2Fshort_url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2012holy%2Fshort_url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weiwei2012holy","download_url":"https://codeload.github.com/weiwei2012holy/short_url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254488672,"owners_count":22079469,"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","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":["go","short-url"],"created_at":"2024-08-04T08:01:00.059Z","updated_at":"2026-02-06T16:14:27.956Z","avatar_url":"https://github.com/weiwei2012holy.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"## GO版本短网址服务\n\n### 相关依赖\n\n1. 基础框架：GIN(https://github.com/gin-gonic/gin)\n2. 数据库：GORM(https://gorm.io/zh_CN/docs/)\n3. Redis：https://github.com/go-redis/redis\n4. 配置管理：https://github.com/spf13/viper\n5. 日期处理：Carbon\n\n### 部署方法\n\n1. Clone 本项目\n2. 修改配置`cp config.json.tmp config.json`，完善配置\n3. 数据迁移`go run main/migrate`\n4. 启动服务`go run main/service`\n\n### 使用方法\n\n1. 联系管理员获取Key+Secret，注意每个Key的数据相互隔离，数据存在`auth`数据表中\n2. 通过自定义Header传入验证参数（服务端调用，简单验证）\n    1. `X-Auth-Key` = Key\n    2. `X-Auth-Secret` = Secret \n    3. 调用接口：POST `127.0.0.1:8090/api/url` ,生成短链,访问短链即可跳转\n### 提供的接口\n\n详见：test目录下 `short_url.http`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweiwei2012holy%2Fshort_url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweiwei2012holy%2Fshort_url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweiwei2012holy%2Fshort_url/lists"}