重构账单查询sql
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
This commit is contained in:
59
Web/src/api/AGENTS.md
Normal file
59
Web/src/api/AGENTS.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# API CLIENTS KNOWLEDGE BASE
|
||||
|
||||
**Generated:** 2026-01-28
|
||||
**Parent:** EmailBill/AGENTS.md
|
||||
|
||||
## OVERVIEW
|
||||
Axios-based HTTP client modules for backend API integration with request/response interceptors.
|
||||
|
||||
## STRUCTURE
|
||||
```
|
||||
Web/src/api/
|
||||
├── request.js # Base HTTP client setup
|
||||
├── auth.js # Authentication API
|
||||
├── budget.js # Budget management API
|
||||
├── transactionRecord.js # Transaction CRUD API
|
||||
├── transactionCategory.js # Category management
|
||||
├── transactionPeriodic.js # Periodic transactions
|
||||
├── statistics.js # Analytics API
|
||||
├── message.js # Message API
|
||||
├── notification.js # Push notifications
|
||||
├── emailRecord.js # Email records
|
||||
├── config.js # Configuration API
|
||||
├── billImport.js # Bill import
|
||||
├── log.js # Application logs
|
||||
└── job.js # Background job management
|
||||
```
|
||||
|
||||
## WHERE TO LOOK
|
||||
| Task | Location | Notes |
|
||||
|------|----------|-------|
|
||||
| Base HTTP setup | request.js | Axios interceptors, error handling |
|
||||
| Authentication | auth.js | Login, token management |
|
||||
| Budget data | budget.js | Budget CRUD, statistics |
|
||||
| Transactions | transactionRecord.js | Transaction operations |
|
||||
| Categories | transactionCategory.js | Category management |
|
||||
| Statistics | statistics.js | Analytics, reports |
|
||||
| Notifications | notification.js | Push subscription handling |
|
||||
|
||||
## CONVENTIONS
|
||||
- All functions return Promises with async/await
|
||||
- Error handling via try/catch with user messages
|
||||
- HTTP methods: get, post, put, delete mapping to REST
|
||||
- Request/response data transformation
|
||||
- Token-based authentication via headers
|
||||
- Consistent error message format
|
||||
|
||||
## ANTI-PATTERNS (THIS LAYER)
|
||||
- Never fetch directly without going through these modules
|
||||
- Don't hardcode API endpoints (use environment variables)
|
||||
- Avoid synchronous operations
|
||||
- Don't duplicate request logic across components
|
||||
- No business logic in API clients
|
||||
|
||||
## UNIQUE STYLES
|
||||
- Chinese error messages for user feedback
|
||||
- Automatic token refresh handling
|
||||
- Request/response logging for debugging
|
||||
- Paged query patterns for list endpoints
|
||||
- File upload handling for imports
|
||||
60
Web/src/views/AGENTS.md
Normal file
60
Web/src/views/AGENTS.md
Normal file
@@ -0,0 +1,60 @@
|
||||
# FRONTEND VIEWS KNOWLEDGE BASE
|
||||
|
||||
**Generated:** 2026-01-28
|
||||
**Parent:** EmailBill/AGENTS.md
|
||||
|
||||
## OVERVIEW
|
||||
Vue 3 views using Composition API with Vant UI components for mobile-first budget tracking.
|
||||
|
||||
## STRUCTURE
|
||||
```
|
||||
Web/src/views/
|
||||
├── BudgetView.vue # Main budget management
|
||||
├── TransactionsRecord.vue # Transaction list and CRUD
|
||||
├── StatisticsView.vue # Charts and analytics
|
||||
├── LoginView.vue # Authentication
|
||||
├── CalendarView.vue # Calendar-based viewing
|
||||
├── Classification* # Transaction classification views
|
||||
│ ├── ClassificationSmart.vue # AI-powered classification
|
||||
│ ├── ClassificationEdit.vue # Manual classification
|
||||
│ ├── ClassificationBatch.vue # Batch operations
|
||||
│ └── ClassificationNLP.vue # NLP classification
|
||||
├── BillAnalysisView.vue # Bill analysis
|
||||
├── SettingView.vue # App settings
|
||||
├── MessageView.vue # Message management
|
||||
├── EmailRecord.vue # Email records
|
||||
└── PeriodicRecord.vue # Periodic transactions
|
||||
```
|
||||
|
||||
## WHERE TO LOOK
|
||||
| Task | Location | Notes |
|
||||
|------|----------|-------|
|
||||
| Budget management | BudgetView.vue | Main budget interface |
|
||||
| Transactions | TransactionsRecord.vue | CRUD operations |
|
||||
| Statistics | StatisticsView.vue | Charts, analytics |
|
||||
| Classification | Classification* | Transaction categorization |
|
||||
| Authentication | LoginView.vue | User login flow |
|
||||
| Settings | SettingView.vue | App configuration |
|
||||
| Email features | EmailRecord.vue | Email integration |
|
||||
|
||||
## CONVENTIONS
|
||||
- Vue 3 Composition API with `<script setup lang="ts">`
|
||||
- Vant UI components: `<van-*>`
|
||||
- Mobile-first responsive design
|
||||
- SCSS with BEM naming convention
|
||||
- Pinia for state management
|
||||
- Vue Router for navigation
|
||||
|
||||
## ANTI-PATTERNS (THIS LAYER)
|
||||
- Never use Options API (always Composition API)
|
||||
- Don't access APIs directly (use api/ modules)
|
||||
- Avoid inline styles (use SCSS modules)
|
||||
- No synchronous API calls
|
||||
- Don't mutate props directly
|
||||
|
||||
## UNIQUE STYLES
|
||||
- Chinese interface labels for business concepts
|
||||
- Mobile-optimized layouts with Vant components
|
||||
- Integration with backend API via api/ modules
|
||||
- Real-time data updates via Pinia stores
|
||||
- Gesture interactions for mobile users
|
||||
Reference in New Issue
Block a user