How onon094/student_service works
粤教服务 is a multi-agent education and overseas-study service system: React provides the public site and role-based workspace, FastAPI enforces business rules and persists records, and Dify can orchestrate backend tools. A typical user submits a request through the interface, which reaches a domain API, is checked and processed by its service, and may read or write SQLite before a result returns. Documented capabilities include student services, counseling and alerts, employee CRM, courses and events, recommendations, and read-only natural-language SQL. Some frontend and domain implementation details were not sampled; their subsystem paths and links are included only where the README or source index supports them.
Main entry points: main.py FastAPI composition · db.py SQLite persistence · App.jsx Website and workspace · service.py Student services
Components 20
Web experience
- Website and workspace
frontend/src/App.jsx - Public site
frontend/src/Site.jsx - Role workspace
frontend/src/Workspace.jsx - Service panels
frontend/src/panels.jsx - Support chat
frontend/src/ChatWidget.jsx
Backend entry
- FastAPI composition
app/main.py - Request authorization
app/shared/deps.py
Education services
- Identity and login
app/identity/internal/service.py - Student services
app/student/internal/service.py - Counseling and alerts
app/psych/internal/service.py - CRM and reports
app/employee/internal/service.py - Courses and events
app/catalog/internal/service.py
Shared data and identity
- SQLite persistence
app/shared/db.py - Runtime configuration
app/shared/config.py
AI capabilities
- Profile recommendations
app/recommend/internal/service.py - Read-only NL2SQL
app/nl2sql/internal/service.py
Other components
- Students and staff
- Public visitor
- Dify agents
- Configured LLM provider
Connections 31
- Public visitor → Website and workspace: visits
README.md - Students and staff → Website and workspace: uses
README.md - Website and workspace → Public site: renders
frontend/src/App.jsx - Website and workspace → Role workspace: renders
frontend/src/App.jsx - Role workspace → Service panels: shows
- Website and workspace → Support chat: renders
frontend/src/App.jsx - Website and workspace → FastAPI composition: calls endpoints
app/main.py - Dify agents → FastAPI composition: invokes tools
README.md - FastAPI composition → Request authorization: uses permissions
app/main.py - FastAPI composition → Identity and login: registers routes
app/main.py - FastAPI composition → Student services: registers routes
app/main.py - FastAPI composition → Counseling and alerts: registers routes
app/main.py - FastAPI composition → CRM and reports: registers routes
app/main.py - FastAPI composition → Courses and events: registers routes
app/main.py - FastAPI composition → Profile recommendations: registers routes
app/main.py - FastAPI composition → Read-only NL2SQL: registers routes
app/main.py - Student services → Identity and login: validates students
app/student/internal/service.py - Counseling and alerts → Identity and login: validates students
app/psych/internal/service.py - CRM and reports → Identity and login: manages accounts
app/employee/internal/service.py - CRM and reports → Student services: creates enrollment
app/employee/internal/service.py - Student services → Courses and events: checks projects
app/student/internal/service.py - Profile recommendations → Courses and events: gets catalog
app/recommend/internal/service.py - Identity and login → SQLite persistence: reads and writes
- Student services → SQLite persistence: reads and writes
- Counseling and alerts → SQLite persistence: reads and writes
- CRM and reports → SQLite persistence: reads and writes
- Courses and events → SQLite persistence: reads and writes
- Read-only NL2SQL → SQLite persistence: executes SELECT
app/nl2sql/internal/service.py - Read-only NL2SQL → Configured LLM provider: requests SQL
app/nl2sql/internal/service.py - FastAPI composition → Runtime configuration: loads settings
app/main.py - SQLite persistence → Runtime configuration: gets DB path
app/shared/db.py