{"id":18666737,"url":"https://github.com/johnmai-dev/newbee-mall-api-rs","last_synced_at":"2025-04-11T23:33:05.520Z","repository":{"id":65806327,"uuid":"599175272","full_name":"johnmai-dev/newbee-mall-api-rs","owner":"johnmai-dev","description":" 🔥🔥 Newbee Mall Backend API - Rust Language Version.  新蜂商城后端接口 - rust 语言版本 🚧[WIP]","archived":false,"fork":false,"pushed_at":"2024-06-09T12:24:04.000Z","size":504,"stargazers_count":66,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T19:53:14.801Z","etag":null,"topics":["actix","actix-web","diesel","diesel-rs","mysql","newbee-mall","newbee-mall-api","newbee-mall-api-rs","newbee-mall-vue","newbee-mall-vue3","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnmai-dev.png","metadata":{"files":{"readme":"README-zh_CN.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-08T15:56:39.000Z","updated_at":"2025-02-04T15:06:45.000Z","dependencies_parsed_at":"2023-12-29T12:33:55.753Z","dependency_job_id":"6b1cbecc-b3ff-4c47-8d19-042a18f60c4a","html_url":"https://github.com/johnmai-dev/newbee-mall-api-rs","commit_stats":null,"previous_names":["johnmai-dev/newbee-mall-api-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2Fnewbee-mall-api-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2Fnewbee-mall-api-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2Fnewbee-mall-api-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmai-dev%2Fnewbee-mall-api-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnmai-dev","download_url":"https://codeload.github.com/johnmai-dev/newbee-mall-api-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248495762,"owners_count":21113695,"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":["actix","actix-web","diesel","diesel-rs","mysql","newbee-mall","newbee-mall-api","newbee-mall-api-rs","newbee-mall-vue","newbee-mall-vue3","rust","rust-lang"],"created_at":"2024-11-07T08:33:47.745Z","updated_at":"2025-04-11T23:33:00.496Z","avatar_url":"https://github.com/johnmai-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n[English](./README.md) | 简体中文 \n\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/newbee-ltd/newbee-mall-api\"\u003e\n    \u003cimg src=\"docs/images/logo.png\" alt=\"Logo\" width=\"120\" height=\"120\"\u003e\n  \u003c/a\u003e\n\n\u003ch3 align=\"center\"\u003enewbee-mall-api-rs\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n    新蜂商城后端接口 \u003ca href=\"https://github.com/newbee-ltd/newbee-mall-api\"\u003enewbee-mall-api\u003c/a\u003e 的 rust 语言版本。\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    -\n    \u003ca href=\"https://github.com/maiqingqiang/newbee-mall-api-rs/issues\"\u003e反馈 Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/maiqingqiang/newbee-mall-api-rs/discussions\"\u003e讨论\u003c/a\u003e\n    -\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## 关于\n\n本项目为新蜂商城后端接口 [newbee-mall-api](https://github.com/newbee-ltd/newbee-mall-api) 的 rust\n语言版本。本项目采用了原版本的所有数据结构，并参考大部分逻辑。\n\n本项目还处于开发阶段，存在一些不完善的地方，望请见谅。\n\n### 技术栈\n\n- [Rust](https://www.rust-lang.org/)\n- [Diesel](https://diesel.rs/)\n- [Actix](https://actix.rs/)\n\n#### 依赖前端项目\n\n- [新蜂商城 Vue2 版本 newbee-mall-vue-app](https://github.com/newbee-ltd/newbee-mall-vue-app)\n- [新蜂商城 Vue3 版本 newbee-mall-vue3-app](https://github.com/newbee-ltd/newbee-mall-vue3-app)\n- [新蜂商城后台管理系统 Vue3 版本 vue3-admin](https://github.com/newbee-ltd/vue3-admin)\n\n## 如何运行\n\n### 1. 配置项目\n\n```shell\n# 克隆本项目\ngit clone https://github.com/maiqingqiang/newbee-mall-api-rs\n\n# 进去项目目录\ncd newbee-mall-api-rs\n\n# 生成.env\ncp .env.exmaple .env\n```\n\n### 2. 配置数据库\n\n```sh\n# 安装 diesel_cli。如果安装失败，可以查看 Diesel 文档: https://diesel.rs/guides/getting-started or https://github.com/diesel-rs/diesel/blob/master/guide_drafts/backend_installation.md\ncargo install diesel_cli --no-default-features --features mysql --version 2.1.1\n\n# 数据库迁移，运行前请确认`.env`是否配置好`DATABASE_URL`\ndiesel migration run\n```\n\n### 3. 运行项目\n\n```sh\n# 运行\ncargo run\n```\n\n\u003e 前端项目运行，这里就不介绍，直接去对应的项目看看~\n\n## 项目进度\n\n- [X] 商城前台接口\n  - [X] 商品详情接口\n  - [X] 商品搜索接口\n  - [X] 获取分类数据接口\n  - [X] 获取首页数据接口\n  - [X] 模拟支付成功回调的接口\n  - [X] 生成订单接口\n  - [X] 订单详情接口\n  - [X] 订单取消接口\n  - [X] 确认收货接口\n  - [X] 订单列表接口\n  - [X] 获取用户信息接口\n  - [X] 修改用户信息接口\n  - [X] 登录接口\n  - [X] 登出接口\n  - [X] 用户注册接口\n  - [X] 购物车列表(网页移动端不分页)接口\n  - [X] 修改购物项数据接口\n  - [X] 添加商品到购物车接口\n  - [X] 购物车列表(每页默认5条)接口\n  - [X] 根据购物项id数组查询购物项明细接口\n  - [X] 删除购物项\n- [ ] 商城后台接口\n  - [X] 后台登录接口\n  - [X] 获取用户信息接口\n  - [X] 修改密码接口\n  - [X] 修改用户名称接口\n  - [X] 登出接口\n  - [X] 轮播图列表接口\n  - [X] 获取单条轮播图信息接口\n  - [X] 批量删除轮播图信息接口\n  - [X] 新增轮播图接口\n  - [X] 单图上传接口\n  - [X] 多图上传接口\n  - [X] 修改轮播图信息接口\n  - [X] 商品分类列表接口\n  - [X] 新增分类接口\n  - [X] 批量删除分类信息接口\n  - [X] 修改分类信息接口\n  - [X] 获取单条分类信息接口\n  - [X] 商城注册用户列表接口\n  - [X] 修改用户状态接口\n  - [X] 商品列表接口\n  - [X] 修改商品信息接口\n  - [X] 获取单条商品信息接口\n  - [X] 新增商品信息接口\n  - [ ] 批量修改销售状态接口\n  - [ ] 首页配置列表接口\n  - [ ] 修改首页配置项接口\n  - [ ] 新增首页配置项接口\n  - [ ] 批量删除首页配置项信息接口\n  - [ ] 获取单条首页配置项信息接口\n  - [ ] 订单列表接口\n  - [ ] 修改订单状态为配货成功接口\n  - [ ] 修改订单状态为已出库接口\n  - [ ] 修改订单状态为商家关闭接口\n  - [ ] 订单详情接口\n- [ ] 优化数据结构 \u0026 逻辑\n- [ ] 单元测试\n\n## 版权说明\n\n该项目签署了 GNU General Public License v3.0 授权许可，详情请参阅 [LICENSE](LICENSE)\n\n## 鸣谢\n\n- [newbee-ltd](https://github.com/newbee-ltd)\n- [十三](https://github.com/ZHENFENG13)\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/maiqingqiang/newbee-mall-api-rs.svg?style=for-the-badge\n[contributors-url]: https://github.com/maiqingqiang/newbee-mall-api-rs/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/maiqingqiang/newbee-mall-api-rs.svg?style=for-the-badge\n[forks-url]: https://github.com/maiqingqiang/newbee-mall-api-rs/network/members\n[stars-shield]: https://img.shields.io/github/stars/maiqingqiang/newbee-mall-api-rs.svg?style=for-the-badge\n[stars-url]: https://github.com/maiqingqiang/newbee-mall-api-rs/stargazers\n[issues-shield]: https://img.shields.io/github/issues/maiqingqiang/newbee-mall-api-rs.svg?style=for-the-badge\n[issues-url]: https://github.com/maiqingqiang/newbee-mall-api-rs/issues\n[license-shield]: https://img.shields.io/github/license/maiqingqiang/newbee-mall-api-rs.svg?style=for-the-badge\n[license-url]: https://github.com/maiqingqiang/newbee-mall-api-rs/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmai-dev%2Fnewbee-mall-api-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnmai-dev%2Fnewbee-mall-api-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmai-dev%2Fnewbee-mall-api-rs/lists"}