├── .env.exmaple ├── .gitignore ├── .idea └── icon.png ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── README-zh_CN.md ├── README.md ├── diesel.toml ├── docs └── images │ ├── logo.png │ └── repository-open-graph.png ├── migrations ├── .keep └── 2023-01-13-103514_init │ ├── down.sql │ └── up.sql ├── src ├── app │ ├── admin │ │ ├── admin_user.rs │ │ ├── carousels.rs │ │ ├── categories.rs │ │ ├── goods.rs │ │ ├── mod.rs │ │ ├── upload.rs │ │ └── users.rs │ ├── mall │ │ ├── address.rs │ │ ├── categories.rs │ │ ├── goods.rs │ │ ├── index.rs │ │ ├── mod.rs │ │ ├── order.rs │ │ ├── shop_cart.rs │ │ └── user.rs │ └── mod.rs ├── bootstrap │ ├── app.rs │ ├── database.rs │ ├── error.rs │ ├── mod.rs │ └── response.rs ├── config │ ├── app.rs │ ├── database.rs │ └── mod.rs ├── lib.rs ├── main.rs ├── middleware │ ├── authentication.rs │ └── mod.rs ├── models │ ├── admin_user.rs │ ├── admin_user_token.rs │ ├── carousel.rs │ ├── goods.rs │ ├── goods_category.rs │ ├── index_config.rs │ ├── mod.rs │ ├── order.rs │ ├── order_address.rs │ ├── order_item.rs │ ├── pagination.rs │ ├── schema.rs │ ├── shopping_cart.rs │ ├── user.rs │ ├── user_address.rs │ └── user_token.rs ├── routes │ ├── admin.rs │ ├── mall.rs │ └── mod.rs ├── services │ ├── admin_user.rs │ ├── carousel.rs │ ├── goods.rs │ ├── goods_category.rs │ ├── index.rs │ ├── mod.rs │ ├── order.rs │ ├── shopping_cart.rs │ ├── user.rs │ └── user_address.rs └── utils │ ├── mod.rs │ ├── number.rs │ └── token.rs └── website └── public └── upload └── .gitignore /.env.exmaple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/.env.exmaple -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | .env 3 | .idea 4 | tmp -------------------------------------------------------------------------------- /.idea/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/.idea/icon.png -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/LICENSE -------------------------------------------------------------------------------- /README-zh_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/README-zh_CN.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/README.md -------------------------------------------------------------------------------- /diesel.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/diesel.toml -------------------------------------------------------------------------------- /docs/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/docs/images/logo.png -------------------------------------------------------------------------------- /docs/images/repository-open-graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/docs/images/repository-open-graph.png -------------------------------------------------------------------------------- /migrations/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/2023-01-13-103514_init/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/migrations/2023-01-13-103514_init/down.sql -------------------------------------------------------------------------------- /migrations/2023-01-13-103514_init/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/migrations/2023-01-13-103514_init/up.sql -------------------------------------------------------------------------------- /src/app/admin/admin_user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/admin/admin_user.rs -------------------------------------------------------------------------------- /src/app/admin/carousels.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/admin/carousels.rs -------------------------------------------------------------------------------- /src/app/admin/categories.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/admin/categories.rs -------------------------------------------------------------------------------- /src/app/admin/goods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/admin/goods.rs -------------------------------------------------------------------------------- /src/app/admin/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/admin/mod.rs -------------------------------------------------------------------------------- /src/app/admin/upload.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/admin/upload.rs -------------------------------------------------------------------------------- /src/app/admin/users.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/admin/users.rs -------------------------------------------------------------------------------- /src/app/mall/address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/address.rs -------------------------------------------------------------------------------- /src/app/mall/categories.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/categories.rs -------------------------------------------------------------------------------- /src/app/mall/goods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/goods.rs -------------------------------------------------------------------------------- /src/app/mall/index.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/index.rs -------------------------------------------------------------------------------- /src/app/mall/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/mod.rs -------------------------------------------------------------------------------- /src/app/mall/order.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/order.rs -------------------------------------------------------------------------------- /src/app/mall/shop_cart.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/shop_cart.rs -------------------------------------------------------------------------------- /src/app/mall/user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mall/user.rs -------------------------------------------------------------------------------- /src/app/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/app/mod.rs -------------------------------------------------------------------------------- /src/bootstrap/app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/bootstrap/app.rs -------------------------------------------------------------------------------- /src/bootstrap/database.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/bootstrap/database.rs -------------------------------------------------------------------------------- /src/bootstrap/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/bootstrap/error.rs -------------------------------------------------------------------------------- /src/bootstrap/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/bootstrap/mod.rs -------------------------------------------------------------------------------- /src/bootstrap/response.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/bootstrap/response.rs -------------------------------------------------------------------------------- /src/config/app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/config/app.rs -------------------------------------------------------------------------------- /src/config/database.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/config/database.rs -------------------------------------------------------------------------------- /src/config/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/config/mod.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/middleware/authentication.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/middleware/authentication.rs -------------------------------------------------------------------------------- /src/middleware/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod authentication; 2 | -------------------------------------------------------------------------------- /src/models/admin_user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/admin_user.rs -------------------------------------------------------------------------------- /src/models/admin_user_token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/admin_user_token.rs -------------------------------------------------------------------------------- /src/models/carousel.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/carousel.rs -------------------------------------------------------------------------------- /src/models/goods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/goods.rs -------------------------------------------------------------------------------- /src/models/goods_category.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/goods_category.rs -------------------------------------------------------------------------------- /src/models/index_config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/index_config.rs -------------------------------------------------------------------------------- /src/models/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/mod.rs -------------------------------------------------------------------------------- /src/models/order.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/order.rs -------------------------------------------------------------------------------- /src/models/order_address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/order_address.rs -------------------------------------------------------------------------------- /src/models/order_item.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/order_item.rs -------------------------------------------------------------------------------- /src/models/pagination.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/pagination.rs -------------------------------------------------------------------------------- /src/models/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/schema.rs -------------------------------------------------------------------------------- /src/models/shopping_cart.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/shopping_cart.rs -------------------------------------------------------------------------------- /src/models/user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/user.rs -------------------------------------------------------------------------------- /src/models/user_address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/user_address.rs -------------------------------------------------------------------------------- /src/models/user_token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/models/user_token.rs -------------------------------------------------------------------------------- /src/routes/admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/routes/admin.rs -------------------------------------------------------------------------------- /src/routes/mall.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/routes/mall.rs -------------------------------------------------------------------------------- /src/routes/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/routes/mod.rs -------------------------------------------------------------------------------- /src/services/admin_user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/admin_user.rs -------------------------------------------------------------------------------- /src/services/carousel.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/carousel.rs -------------------------------------------------------------------------------- /src/services/goods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/goods.rs -------------------------------------------------------------------------------- /src/services/goods_category.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/goods_category.rs -------------------------------------------------------------------------------- /src/services/index.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/index.rs -------------------------------------------------------------------------------- /src/services/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/mod.rs -------------------------------------------------------------------------------- /src/services/order.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/order.rs -------------------------------------------------------------------------------- /src/services/shopping_cart.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/shopping_cart.rs -------------------------------------------------------------------------------- /src/services/user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/user.rs -------------------------------------------------------------------------------- /src/services/user_address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/services/user_address.rs -------------------------------------------------------------------------------- /src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/utils/mod.rs -------------------------------------------------------------------------------- /src/utils/number.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/utils/number.rs -------------------------------------------------------------------------------- /src/utils/token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnmai-dev/newbee-mall-api-rs/HEAD/src/utils/token.rs -------------------------------------------------------------------------------- /website/public/upload/.gitignore: -------------------------------------------------------------------------------- 1 | * --------------------------------------------------------------------------------