source: update Base rule Agent

This commit is contained in:
2026-03-09 18:01:01 +07:00
parent 3003a0ff0b
commit fd9f558fa1
22 changed files with 501 additions and 1426 deletions

View File

@@ -1,31 +1,31 @@
# Tài liệu Kiến trúc C4 - Mức 3: Component Diagram (Landing Page)
# C4 Architecture Document - Level 3: Component Diagram (Landing Page)
Chi tiết hóa các thành phần logic trong **Sales Landing App** **BFF Service**.
Detailed breakdown of the logical components within the **Sales Landing App** and **BFF Service**.
## 1. Frontend Components (Sales Landing App)
### 1.1. Modules
- **Auth Module**: Form đăng nhập, xử lý Token.
- **Customer Module**: Form nhập liệu, Component Camera/Upload cho OCR.
- **Product Module**: Giao diện chọn sản phẩm (Card chọn UVL-IC/UVL-EL).
- **Illustration Module**: Hiển thị PDF (PDF Viewer) và nút tải về/Submit.
- **Auth Module**: Login form, Token handling.
- **Customer Module**: Input form, Camera/Upload Component for OCR.
- **Product Module**: Product selection interface (Card selection for UVL-IC/UVL-EL).
- **Illustration Module**: PDF display (PDF Viewer) and download/Submit buttons.
### 1.2. Shared
- **UI Kit**: Button, Input, Modal (theo Design System).
- **API Client**: Axios wrapper để gọi BFF.
- **UI Kit**: Button, Input, Modal (matching the Design System).
- **API Client**: Axios wrapper for calling the BFF.
## 2. Backend Components (BFF Service)
### 2.1. Controllers
- **AuthController**: Xác thực với Auth API.
- **OCRController**: Proxy ảnh sang OCR Service.
- **IllustrationController**: Tổng hợp dữ liệu -> Gọi PDF Engine -> Trả về URL/File.
- **SubmissionController**: Gửi dữ liệu cuối cùng về Core.
- **AuthController**: Authentication via Auth API.
- **OCRController**: Proxies images to the OCR Service.
- **IllustrationController**: Aggregates data -> Calls PDF Engine -> Returns URL/File.
- **SubmissionController**: Submits final data to the Core system.
### 2.2. Services
- **ClientService**: Lưu/Lấy thông tin khách hàng từ Database.
- **ClientService**: Saves/Retrieves customer information from the Database.
## 3. Sơ đồ Component
## 3. Component Diagram
```mermaid
C4Component
@@ -58,4 +58,4 @@ C4Component
```
---
*Biên soạn bởi: Agent mbl-landing-page-architecture*
*Authored by: Agent mbl-landing-page-architecture*