{"id":18860495,"url":"https://github.com/lsqy/egg-one","last_synced_at":"2026-02-09T00:30:16.289Z","repository":{"id":112629587,"uuid":"113562479","full_name":"lsqy/egg-one","owner":"lsqy","description":"基于egg和one的API实现","archived":false,"fork":false,"pushed_at":"2018-07-26T11:24:13.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T20:22:17.326Z","etag":null,"topics":["egg","one"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/lsqy.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":"2017-12-08T10:28:52.000Z","updated_at":"2019-05-10T02:58:10.000Z","dependencies_parsed_at":"2023-06-10T03:00:30.545Z","dependency_job_id":null,"html_url":"https://github.com/lsqy/egg-one","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/lsqy%2Fegg-one","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsqy%2Fegg-one/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsqy%2Fegg-one/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsqy%2Fegg-one/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsqy","download_url":"https://codeload.github.com/lsqy/egg-one/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800482,"owners_count":19699127,"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":["egg","one"],"created_at":"2024-11-08T04:24:40.304Z","updated_at":"2026-02-09T00:30:16.225Z","avatar_url":"https://github.com/lsqy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-one\n\n\u003e 基于eggjs和one的API实现，仅用于学习交流,主要是为了学习应用eggjs提供api以及eggjs的目录结构实践,对比直接请求one来说,会更加简练一些;\n\n## 音乐列表\n\n```\n  请求音乐列表首页,每页返回10条数据\n  http://localhost:7001/api/v1/music/0\n\n  {\n    \"res\": 0,\n    \"data\": [\n      {\n        \"id\": \"13077\",\n        \"category\": \"4\",\n        \"display_category\": \"1\",\n        \"item_id\": \"2361\",\n        \"title\": \"这个世界未必所有事都如你所愿，但总有它的意思\",\n        \"forward\": \"上路去，别太挂念这里。\",\n        ...\n      }\n      ...\n    ]\n  }\n\n  分页加载更多\n  此处的id是上面请求出的列表的最后一条的id\n  http://localhost:7001/api/v1/music/{id}\n```\n## 音乐详情\n\n```\n  http://localhost:7001/api/v1/music/detail/{item_id}\n\n  {\n    \"res\": 0,\n    \"data\": {\n      \"id\": \"2361\",\n      \"title\": \"替你高兴\",\n      \"cover\": \"http://image.wufazhuce.com/Fl8W6nY1iRdNizZ9yNyFQ_pjMJC7\",\n      \"isfirst\": \"0\",\n      \"story_title\": \"上路去，别太念挂这里\",\n        ...\n      }\n      ...\n    ]\n  }\n  \n```\n\n\n\n## channel 频道\n\n\u003e「ONE · 一个」中有 6 种 channel 类型，分别是\n\n- hp : 图文\n- reading : 阅读\n- music : 音乐\n- movie : 影视\n- radio : 电台\n- author : 作者/音乐人","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsqy%2Fegg-one","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsqy%2Fegg-one","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsqy%2Fegg-one/lists"}