# guchengwuyue/yshop-drink architecture

> Architecture diagram of the GitHub repository guchengwuyue/yshop-drink, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/guchengwuyue/yshop-drink
- Repository: https://github.com/guchengwuyue/yshop-drink

## Overview

Yshop Drink is a multi-store online ordering system for dine-in QR, takeaway, and pickup, with UniApp customer clients and a Vue administration frontend backed by Spring Boot services. The documented customer journey is to browse and order, then pay and track the order; administration supports store, product, and operational management. The sampled sources confirm order-service capabilities, authentication interfaces, and WeChat notifications. Most domain implementations and frontend API wiring were not sampled, so those connections are marked unverified rather than presented as observed calls.

Main entry points: [`yshop-drink-vue3/src/main.ts`](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-vue3/src/main.ts) (Admin Console), [`yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java`](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java) (WeChat Messaging), [`yshop-drink-boot3/yshop-module-mall/yshop-module-order-biz/src/main/java/co/yixiang/yshop/module/order/service/storeorder/AppStoreOrderService.java`](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-mall/yshop-module-order-biz/src/main/java/co/yixiang/yshop/module/order/service/storeorder/AppStoreOrderService.java) (Store Orders), [`yshop-drink-uniapp-vue3/App.vue`](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-uniapp-vue3/App.vue) (UniApp Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Customer and Admin Clients"]
  node_mobile["UniApp Client<br/>[App.vue]"]
  node_admin["Admin Console<br/>[main.ts]"]
end

subgraph group_commerce["Ordering and Commerce"]
  node_order["Store Orders"]
  node_products["Product Catalog"]
  node_stores["Store Management"]
  node_coupons["Coupons"]
  node_points["Points Exchange"]
  node_payments["Payment Config"]
end

subgraph group_platform["Platform Services"]
  node_member["Member Accounts"]
  node_tenant["Tenant Services"]
  node_shared["Common Contracts"]
end

subgraph group_operations["Operations and Messaging"]
  node_codegen["Code Generation<br/>[CodegenEngine.java]"]
  node_wechat["WeChat Messaging"]
  node_templates["Message Templates"]
  node_mp["Official Accounts"]
end

node_diner(("Diner"))
node_wechat_api{{"WeChat Platform"}}

node_diner -->|"uses"| node_mobile
node_mobile -.->|"submits orders"| node_order
node_admin -.->|"manages orders"| node_order
node_admin -.->|"manages catalog"| node_products
node_admin -.->|"manages stores"| node_stores
node_admin -.->|"configures offers"| node_coupons
node_admin -.->|"manages exchange"| node_points
node_admin -.->|"configures payments"| node_payments
node_order -.->|"notifies customers"| node_wechat
node_wechat -->|"reads templates"| node_templates
node_wechat -->|"reads member identity"| node_member
node_wechat -->|"sends notices"| node_wechat_api
node_admin -.->|"requests generation"| node_codegen

click node_mobile "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-uniapp-vue3/App.vue"
click node_admin "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-vue3/src/main.ts"
click node_order "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-mall/yshop-module-order-biz/src/main/java/co/yixiang/yshop/module/order/service/storeorder/AppStoreOrderService.java"
click node_products "https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-mall/yshop-module-product-biz"
click node_stores "https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-mall/yshop-module-shop-biz"
click node_coupons "https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-marketing/yshop-module-coupon-biz"
click node_points "https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-score/yshop-module-score-biz"
click node_payments "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-pay/yshop-module-pay-biz/src/main/java/co/yixiang/yshop/module/pay/service/merchantdetails/MerchantDetailsService.java"
click node_member "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-member/yshop-module-member-biz/src/main/java/co/yixiang/yshop/module/member/service/auth/MemberAuthService.java"
click node_tenant "https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-framework/yshop-spring-boot-starter-biz-tenant/src/main/java/co/yixiang/yshop/framework/tenant"
click node_shared "https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-framework/yshop-common/src/main/java/co/yixiang/yshop/framework/common"
click node_codegen "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-infra/yshop-module-infra-biz/src/main/java/co/yixiang/yshop/module/infra/service/codegen/inner/CodegenEngine.java"
click node_wechat "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java"
click node_templates "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/service/wechattemplate/WechatTemplateService.java"
click node_mp "https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-mp/yshop-module-mp-biz/src/main/java/co/yixiang/yshop/module/mp/service/account/MpAccountService.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mobile,node_admin toneBlue
class node_order,node_products,node_stores,node_coupons,node_points,node_payments toneAmber
class node_member,node_tenant,node_shared toneMint
class node_codegen,node_wechat,node_templates,node_mp toneRose
class node_diner,node_wechat_api toneIndigo
```

## Components

### Customer and Admin Clients

- [UniApp Client](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-uniapp-vue3/App.vue): `yshop-drink-uniapp-vue3/App.vue`
- [Admin Console](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-vue3/src/main.ts): `yshop-drink-vue3/src/main.ts`

### Ordering and Commerce

- [Store Orders](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-mall/yshop-module-order-biz/src/main/java/co/yixiang/yshop/module/order/service/storeorder/AppStoreOrderService.java): `yshop-drink-boot3/yshop-module-mall/yshop-module-order-biz/src/main/java/co/yixiang/yshop/module/order/service/storeorder/AppStoreOrderService.java`
- [Product Catalog](https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-mall/yshop-module-product-biz): `yshop-drink-boot3/yshop-module-mall/yshop-module-product-biz`
- [Store Management](https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-mall/yshop-module-shop-biz): `yshop-drink-boot3/yshop-module-mall/yshop-module-shop-biz`
- [Coupons](https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-marketing/yshop-module-coupon-biz): `yshop-drink-boot3/yshop-module-marketing/yshop-module-coupon-biz`
- [Points Exchange](https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-module-score/yshop-module-score-biz): `yshop-drink-boot3/yshop-module-score/yshop-module-score-biz`
- [Payment Config](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-pay/yshop-module-pay-biz/src/main/java/co/yixiang/yshop/module/pay/service/merchantdetails/MerchantDetailsService.java): `yshop-drink-boot3/yshop-module-pay/yshop-module-pay-biz/src/main/java/co/yixiang/yshop/module/pay/service/merchantdetails/MerchantDetailsService.java`

### Platform Services

- [Member Accounts](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-member/yshop-module-member-biz/src/main/java/co/yixiang/yshop/module/member/service/auth/MemberAuthService.java): `yshop-drink-boot3/yshop-module-member/yshop-module-member-biz/src/main/java/co/yixiang/yshop/module/member/service/auth/MemberAuthService.java`
- [Tenant Services](https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-framework/yshop-spring-boot-starter-biz-tenant/src/main/java/co/yixiang/yshop/framework/tenant): `yshop-drink-boot3/yshop-framework/yshop-spring-boot-starter-biz-tenant/src/main/java/co/yixiang/yshop/framework/tenant`
- [Common Contracts](https://github.com/guchengwuyue/yshop-drink/tree/master/yshop-drink-boot3/yshop-framework/yshop-common/src/main/java/co/yixiang/yshop/framework/common): `yshop-drink-boot3/yshop-framework/yshop-common/src/main/java/co/yixiang/yshop/framework/common`

### Operations and Messaging

- [Code Generation](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-infra/yshop-module-infra-biz/src/main/java/co/yixiang/yshop/module/infra/service/codegen/inner/CodegenEngine.java): `yshop-drink-boot3/yshop-module-infra/yshop-module-infra-biz/src/main/java/co/yixiang/yshop/module/infra/service/codegen/inner/CodegenEngine.java`
- [WeChat Messaging](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java): `yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java`
- [Message Templates](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/service/wechattemplate/WechatTemplateService.java): `yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/service/wechattemplate/WechatTemplateService.java`
- [Official Accounts](https://github.com/guchengwuyue/yshop-drink/blob/master/yshop-drink-boot3/yshop-module-mp/yshop-module-mp-biz/src/main/java/co/yixiang/yshop/module/mp/service/account/MpAccountService.java): `yshop-drink-boot3/yshop-module-mp/yshop-module-mp-biz/src/main/java/co/yixiang/yshop/module/mp/service/account/MpAccountService.java`

### Other components

- **Diner**
- **WeChat Platform**

## Connections

- Diner → UniApp Client: uses (evidence: `README.md`)
- UniApp Client → Store Orders: submits orders
- Admin Console → Store Orders: manages orders
- Admin Console → Product Catalog: manages catalog
- Admin Console → Store Management: manages stores
- Admin Console → Coupons: configures offers
- Admin Console → Points Exchange: manages exchange
- Admin Console → Payment Config: configures payments
- Store Orders → WeChat Messaging: notifies customers
- WeChat Messaging → Message Templates: reads templates (evidence: `yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java`)
- WeChat Messaging → Member Accounts: reads member identity (evidence: `yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java`)
- WeChat Messaging → WeChat Platform: sends notices (evidence: `yshop-drink-boot3/yshop-module-message/yshop-module-message-biz/src/main/java/co/yixiang/yshop/module/message/supply/WeiXinSubscribeService.java`)
- Admin Console → Code Generation: requests generation
