{"id":21578043,"url":"https://github.com/hellosaofei/express-demo","last_synced_at":"2025-08-30T09:17:21.903Z","repository":{"id":243392450,"uuid":"803326153","full_name":"hellosaofei/express-demo","owner":"hellosaofei","description":"一款使用express搭建的nodeJs后端项目，与vue-admin-demo配套构成完整的一套后台管理系统","archived":false,"fork":false,"pushed_at":"2024-06-29T12:34:07.000Z","size":483,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T07:29:21.313Z","etag":null,"topics":[],"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/hellosaofei.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":"2024-05-20T14:06:25.000Z","updated_at":"2024-06-29T12:34:11.000Z","dependencies_parsed_at":"2024-06-10T16:23:04.976Z","dependency_job_id":null,"html_url":"https://github.com/hellosaofei/express-demo","commit_stats":null,"previous_names":["hellosaofei/express-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellosaofei/express-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellosaofei%2Fexpress-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellosaofei%2Fexpress-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellosaofei%2Fexpress-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellosaofei%2Fexpress-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellosaofei","download_url":"https://codeload.github.com/hellosaofei/express-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellosaofei%2Fexpress-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272829196,"owners_count":25000176,"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-08-30T02:00:09.474Z","response_time":77,"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":[],"created_at":"2024-11-24T13:09:29.215Z","updated_at":"2025-08-30T09:17:21.870Z","avatar_url":"https://github.com/hellosaofei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 提交说明\n\n```\nrefactor:重构代码\nchore:零星的工作\nfeat:重大变化\nfix:bug修复\ndevelop:开发中\n```\n\n# 接口文档\n\n## 公共中间件\n\n**状态码**\n\n- 5xxx\n- 5001:请求中没有 accessToken\n- 5002：accessToken 已经过期\n\n## 用户相关\n\n### /login\n\n**接口说明**\n用户登录接口\n\n**请求参数**\n\n- username: 用户名\n- password: 密码\n\n**状态码**\n\n- 2000:返回成功\n- **返回示例**\n\n```js\n{\n    code:2000,\n    message:\"登录成功\",\n    data:{\n        accessToken:\"xxxx\",\n        refreshToken:\"xxxx\"\n    }\n}\n```\n\n### /register\n\n**接口说明**\n用户登录接口\n\n**请求参数**\n\n- username: 用户名\n- password: 密码\n\n**状态码**\n\n- 2000:返回成功\n- **返回示例**\n\n```js\n{\n    code:2000,\n    message:\"注册成功\",\n}\n```\n\n### /refresh\n\n**接口说明**\n用于刷新 `accessToken`\n\n**请求参数**\n\n**状态码**\n\n- 2000: 成功返回\n- 3000：\n- 4000：请求中没有 token\n\n**返回示例**\n\n```js\n{\n    code:2000,\n    message:\"token 获取成功\",\n    data:{\n        accessToken:\"xxxx\",\n        refreshToken:\"xxxx\"\n    }\n}\n```\n\n## 《后台管理专项》部分\n\n### /order/getList\n\n**请求方式**\n\n- post\n\n**接口说明**\n\n- 《后台管理专项》\u003e《管理》 \u003e《订单管理》\n\n**请求参数**\n\n- title:''\n  要搜索的内容\n\n- pageNo:1\n  分页页码\n\n- pageSize:20\n  每页评论数量\n\n**状态码**\n\n- 2000: 成功返回\n\n**返回示例**\n\n```js\n{\n    code: 200,\n    msg: \"success\",\n    totalCount: 10,\n    data: [\n        {\n            \"good_id\": \"120000202202202376\",\n            \"good_name\": \"火么装书却。\",\n            \"good_image\": \"https://picsum.photos/40/40?random=B2Fa8DF2-3Ab6-cc94-EaEe-5Ef7f575cE0E\",\n            \"rate\": 4,\n            \"comment_content\": \"动种军写联解西况广管被利具效但。\",\n            \"reply_content\": \"华每率住省口积省边可七长去。\",\n            \"user_name\": \"通林门。\",\n            \"user_ip\": \"黑龙江省\",\n            \"status\": 1,\n            \"date\": \"1996-10-17 15:48:36\"\n        },\n    ]\n}\n```\n\n### /icon/getList\n\n**请求方式**\n\n- get\n\n**接口说明**\n\n- 《后台管理专项》\u003e 《图标》\n\n**请求参数**\n\n- 无\n\n**状态码**\n\n- 2000: 成功返回\n\n**返回示例**\n\n```js\n{\n\n    code: 200,\n    msg: \"success\",\n    totalCount: 10,\n    data: [\n        {\n            \"platform-eleme\",\n            \"eleme\",\n            \"delete-solid\",\n            //...\n        }\n    ],\n}\n```\n\n### /comment/getList\n\n**请求方式**\n\n- post\n  **接口说明**\n- 《后台管理专项》\u003e 《管理》\u003e《评论管理》\n\n**请求参数**\n\n- title\n  要搜索的内容\n- pageNo\n  分页页码\n- pageSize\n  每页评论数量\n\n**状态码**\n\n- 2000: 成功返回\n\n**返回示例**\n\n```js\n{\n    code:2000,\n    message:\"token 获取成功\",\n    data:{\n        accessToken:\"xxxx\",\n        refreshToken:\"xxxx\"\n    }\n}\n```\n\n## 《更新日志》部分\n\n### /timeline/v1/getList\n\n**请求方式**\nget\n**接口说明**\n前端项目更新日志\n\n**请求参数**\n\n- 无\n  **状态码**\n\n- 2000: 成功返回\n\n**返回示例**\n\n```js\n{\n    code:2000,\n    message:\"token 获取成功\",\n    data:{\n        accessToken:\"xxxx\",\n        refreshToken:\"xxxx\"\n    }\n}\n```\n\n### /timeline/v2/getList\n\n**请求方式**\nget\n**接口说明**\n后端项目更新日志\n\n**请求参数**\n\n- 无\n  **状态码**\n\n- 2000: 成功返回\n  **返回示例**\n\n```js\n{\n    code:2000,\n    message:\"token 获取成功\",\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellosaofei%2Fexpress-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellosaofei%2Fexpress-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellosaofei%2Fexpress-demo/lists"}