# hyeyulkim/helpdesk architecture

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

- Interactive diagram: https://gitdiagram.com/hyeyulkim/helpdesk
- Repository: https://github.com/hyeyulkim/helpdesk

## Overview

HelpDesk is an internal employee ticketing web application. Employees register requests, track status, and exchange comments and attachments; agents advance work, while dashboards summarize activity. The graph follows the request controller into request services and their evidenced history and notification effects. README and the tree establish the broader web-service capabilities, but source excerpts do not show every subsystem’s runtime wiring, so those links are omitted rather than inferred.

Main entry points: [`src/main/java/com/helpdesk/request/service/RequestService.java`](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/service/RequestService.java) (Request workflow), [`src/main/java/com/helpdesk/notification/service/NotificationService.java`](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/notification/service/NotificationService.java) (Notification service), [`src/main/java/com/helpdesk/attachment/service/AttachmentService.java`](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/attachment/service/AttachmentService.java) (Attachment handling), [`src/main/java/com/helpdesk/comment/service/CommentService.java`](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/comment/service/CommentService.java) (Comment handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ticketing["Ticket lifecycle"]
  node_request_web["Request endpoints"]
  node_requests["Request workflow"]
  node_request_status["Status progression<br/>[RequestStatus.java]"]
  node_request_data["Request persistence<br/>[RequestMapper.java]"]
  node_history["Status history"]
end

subgraph group_collaboration["Ticket collaboration"]
  node_attachment_web["Attachment endpoints"]
  node_attachments["Attachment handling"]
  node_file_store[("Uploaded files")]
  node_comment_web["Comment endpoints"]
  node_comments["Comment handling"]
  node_notification_web["Notification endpoints"]
  node_notifications["Notification service"]
  node_notification_store[("Notification persistence")]
  node_websocket["Live notification channel"]
end

subgraph group_identity["Identity and access"]
  node_identity_web["User endpoints"]
  node_users["User registration<br/>[UserService.java]"]
  node_user_store[("User persistence<br/>[UserMapper.java]")]
  node_verification["Email verification"]
  node_mail_sender["Verification mail"]
  node_gmail["Gmail OAuth"]
  node_login["Authentication identity"]
  node_oauth_login["OAuth login service"]
end

subgraph group_insights["Operations insights"]
  node_statistics_web["Statistics endpoints"]
  node_statistics["Dashboard aggregation"]
  node_statistics_store[("Statistics queries")]
end

node_employee(("Employee or agent"))

node_employee -->|"submits or manages"| node_request_web
node_request_web -->|"delegates requests"| node_requests
node_requests -->|"queries and writes"| node_request_data
node_requests -->|"records transitions"| node_history
node_requests -->|"notifies status changes"| node_notifications
node_requests -->|"advances status"| node_request_status
node_employee -->|"uploads or removes"| node_attachment_web
node_attachment_web -->|"delegates files"| node_attachments
node_attachments -->|"checks request access"| node_requests
node_attachments -->|"writes and deletes files"| node_file_store
node_employee -->|"posts or reads comments"| node_comment_web
node_comment_web -->|"delegates comments"| node_comments
node_comments -->|"checks ticket access"| node_requests
node_comments -->|"notifies new comments"| node_notifications
node_employee -->|"views notifications"| node_notification_web
node_notification_web -->|"delegates notification actions"| node_notifications
node_notifications -->|"stores and reads alerts"| node_notification_store
node_notifications -->|"pushes live alerts"| node_websocket
node_employee -->|"signs up"| node_identity_web
node_identity_web -->|"checks email verification"| node_verification
node_identity_web -->|"registers account"| node_users
node_users -->|"checks and stores users"| node_user_store
node_verification -->|"sends verification mail"| node_mail_sender
node_gmail -.->|"provides OAuth token"| node_mail_sender
node_employee -.->|"authenticates with OAuth"| node_oauth_login
node_oauth_login -->|"creates user identity"| node_login
node_employee -->|"opens dashboard"| node_statistics_web
node_statistics_web -->|"requests dashboard"| node_statistics
node_statistics -->|"aggregates ticket metrics"| node_statistics_store

click node_request_web "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/controller/RequestController.java"
click node_requests "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/service/RequestService.java"
click node_request_status "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/domain/RequestStatus.java"
click node_request_data "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/mapper/RequestMapper.java"
click node_history "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statushistory/service/RequestStatusHistoryService.java"
click node_attachment_web "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/attachment/controller/AttachmentController.java"
click node_attachments "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/attachment/service/AttachmentService.java"
click node_comment_web "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/comment/controller/CommentController.java"
click node_comments "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/comment/service/CommentService.java"
click node_notification_web "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/notification/controller/NotificationController.java"
click node_notifications "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/notification/service/NotificationService.java"
click node_notification_store "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/notification/mapper/NotificationMapper.java"
click node_websocket "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/config/WebSocketConfig.java"
click node_identity_web "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/user/controller/UserController.java"
click node_users "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/user/service/UserService.java"
click node_user_store "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/user/mapper/UserMapper.java"
click node_verification "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/emailverification/service/EmailVerificationService.java"
click node_mail_sender "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/emailverification/service/VerificationMailSender.java"
click node_gmail "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/emailverification/oauth/GmailOAuthTokenProvider.java"
click node_login "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/security/CustomUserDetails.java"
click node_oauth_login "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/security/CustomOAuth2UserService.java"
click node_statistics_web "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statistics/controller/StatisticsController.java"
click node_statistics "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statistics/service/StatisticsService.java"
click node_statistics_store "https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statistics/mapper/StatisticsMapper.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_request_web,node_requests,node_request_status,node_request_data,node_history toneBlue
class node_attachment_web,node_attachments,node_file_store,node_comment_web,node_comments,node_notification_web,node_notifications,node_notification_store,node_websocket toneAmber
class node_identity_web,node_users,node_user_store,node_verification,node_mail_sender,node_gmail,node_login,node_oauth_login toneMint
class node_statistics_web,node_statistics,node_statistics_store toneRose
class node_employee toneIndigo
```

## Components

### Ticket lifecycle

- [Request endpoints](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/controller/RequestController.java): `src/main/java/com/helpdesk/request/controller/RequestController.java`
- [Request workflow](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/service/RequestService.java): `src/main/java/com/helpdesk/request/service/RequestService.java`
- [Status progression](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/domain/RequestStatus.java): `src/main/java/com/helpdesk/request/domain/RequestStatus.java`
- [Request persistence](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/request/mapper/RequestMapper.java): `src/main/java/com/helpdesk/request/mapper/RequestMapper.java`
- [Status history](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statushistory/service/RequestStatusHistoryService.java): `src/main/java/com/helpdesk/statushistory/service/RequestStatusHistoryService.java`

### Ticket collaboration

- [Attachment endpoints](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/attachment/controller/AttachmentController.java): `src/main/java/com/helpdesk/attachment/controller/AttachmentController.java`
- [Attachment handling](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/attachment/service/AttachmentService.java): `src/main/java/com/helpdesk/attachment/service/AttachmentService.java`
- **Uploaded files**
- [Comment endpoints](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/comment/controller/CommentController.java): `src/main/java/com/helpdesk/comment/controller/CommentController.java`
- [Comment handling](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/comment/service/CommentService.java): `src/main/java/com/helpdesk/comment/service/CommentService.java`
- [Notification endpoints](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/notification/controller/NotificationController.java): `src/main/java/com/helpdesk/notification/controller/NotificationController.java`
- [Notification service](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/notification/service/NotificationService.java): `src/main/java/com/helpdesk/notification/service/NotificationService.java`
- [Notification persistence](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/notification/mapper/NotificationMapper.java): `src/main/java/com/helpdesk/notification/mapper/NotificationMapper.java`
- [Live notification channel](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/config/WebSocketConfig.java): `src/main/java/com/helpdesk/config/WebSocketConfig.java`

### Identity and access

- [User endpoints](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/user/controller/UserController.java): `src/main/java/com/helpdesk/user/controller/UserController.java`
- [User registration](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/user/service/UserService.java): `src/main/java/com/helpdesk/user/service/UserService.java`
- [User persistence](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/user/mapper/UserMapper.java): `src/main/java/com/helpdesk/user/mapper/UserMapper.java`
- [Email verification](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/emailverification/service/EmailVerificationService.java): `src/main/java/com/helpdesk/emailverification/service/EmailVerificationService.java`
- [Verification mail](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/emailverification/service/VerificationMailSender.java): `src/main/java/com/helpdesk/emailverification/service/VerificationMailSender.java`
- [Gmail OAuth](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/emailverification/oauth/GmailOAuthTokenProvider.java): `src/main/java/com/helpdesk/emailverification/oauth/GmailOAuthTokenProvider.java`
- [Authentication identity](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/security/CustomUserDetails.java): `src/main/java/com/helpdesk/security/CustomUserDetails.java`
- [OAuth login service](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/security/CustomOAuth2UserService.java): `src/main/java/com/helpdesk/security/CustomOAuth2UserService.java`

### Operations insights

- [Statistics endpoints](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statistics/controller/StatisticsController.java): `src/main/java/com/helpdesk/statistics/controller/StatisticsController.java`
- [Dashboard aggregation](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statistics/service/StatisticsService.java): `src/main/java/com/helpdesk/statistics/service/StatisticsService.java`
- [Statistics queries](https://github.com/hyeyulkim/helpdesk/blob/main/src/main/java/com/helpdesk/statistics/mapper/StatisticsMapper.java): `src/main/java/com/helpdesk/statistics/mapper/StatisticsMapper.java`

### Other components

- **Employee or agent**

## Connections

- Employee or agent → Request endpoints: submits or manages (evidence: `src/main/java/com/helpdesk/request/controller/RequestController.java`)
- Request endpoints → Request workflow: delegates requests (evidence: `src/main/java/com/helpdesk/request/controller/RequestController.java`)
- Request workflow → Request persistence: queries and writes (evidence: `src/main/java/com/helpdesk/request/service/RequestService.java`)
- Request workflow → Status history: records transitions (evidence: `src/main/java/com/helpdesk/request/service/RequestService.java`)
- Request workflow → Notification service: notifies status changes (evidence: `src/main/java/com/helpdesk/request/service/RequestService.java`)
- Request workflow → Status progression: advances status (evidence: `src/main/java/com/helpdesk/request/service/RequestService.java`)
- Employee or agent → Attachment endpoints: uploads or removes (evidence: `src/main/java/com/helpdesk/attachment/controller/AttachmentController.java`)
- Attachment endpoints → Attachment handling: delegates files (evidence: `src/main/java/com/helpdesk/attachment/controller/AttachmentController.java`)
- Attachment handling → Request workflow: checks request access (evidence: `src/main/java/com/helpdesk/attachment/service/AttachmentService.java`)
- Attachment handling → Uploaded files: writes and deletes files (evidence: `src/main/java/com/helpdesk/attachment/service/AttachmentService.java`)
- Employee or agent → Comment endpoints: posts or reads comments (evidence: `src/main/java/com/helpdesk/comment/controller/CommentController.java`)
- Comment endpoints → Comment handling: delegates comments (evidence: `src/main/java/com/helpdesk/comment/controller/CommentController.java`)
- Comment handling → Request workflow: checks ticket access (evidence: `src/main/java/com/helpdesk/comment/service/CommentService.java`)
- Comment handling → Notification service: notifies new comments (evidence: `src/main/java/com/helpdesk/comment/service/CommentService.java`)
- Employee or agent → Notification endpoints: views notifications (evidence: `src/main/java/com/helpdesk/notification/controller/NotificationController.java`)
- Notification endpoints → Notification service: delegates notification actions (evidence: `src/main/java/com/helpdesk/notification/controller/NotificationController.java`)
- Notification service → Notification persistence: stores and reads alerts (evidence: `src/main/java/com/helpdesk/notification/service/NotificationService.java`)
- Notification service → Live notification channel: pushes live alerts (evidence: `src/main/java/com/helpdesk/notification/service/NotificationService.java`)
- Employee or agent → User endpoints: signs up (evidence: `src/main/java/com/helpdesk/user/controller/UserController.java`)
- User endpoints → Email verification: checks email verification (evidence: `src/main/java/com/helpdesk/user/controller/UserController.java`)
- User endpoints → User registration: registers account (evidence: `src/main/java/com/helpdesk/user/controller/UserController.java`)
- User registration → User persistence: checks and stores users (evidence: `src/main/java/com/helpdesk/user/service/UserService.java`)
- Email verification → Verification mail: sends verification mail (evidence: `src/main/java/com/helpdesk/emailverification/service/EmailVerificationService.java`)
- Gmail OAuth → Verification mail: provides OAuth token
- Employee or agent → OAuth login service: authenticates with OAuth
- OAuth login service → Authentication identity: creates user identity (evidence: `src/main/java/com/helpdesk/security/CustomOAuth2UserService.java`)
- Employee or agent → Statistics endpoints: opens dashboard (evidence: `src/main/java/com/helpdesk/statistics/controller/StatisticsController.java`)
- Statistics endpoints → Dashboard aggregation: requests dashboard (evidence: `src/main/java/com/helpdesk/statistics/controller/StatisticsController.java`)
- Dashboard aggregation → Statistics queries: aggregates ticket metrics (evidence: `src/main/java/com/helpdesk/statistics/service/StatisticsService.java`)
