# en-dian/userproject architecture

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

- Interactive diagram: https://gitdiagram.com/en-dian/userproject
- Repository: https://github.com/en-dian/userproject

## Overview

The README identifies this as an employee and attendance management system. The tree also shows admin and RustFS controller/service areas, but provides no source excerpts or documented endpoint behavior. The graph therefore identifies the apparent entry points and supporting modules without asserting unverified calls, data flow, or a specific employee/attendance workflow.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_admin["Admin management"]
  node_admin_api["Admin API"]
  node_admin_service["Admin service<br/>[AdminService.java]"]
  node_admin_impl["Admin service implementation"]
  node_admin_mapper["Admin mapper<br/>[AdminMapper.java]"]
  node_admin_entity["Admin entity<br/>[Admin.java]"]
end

subgraph group_storage["RustFS integration"]
  node_rustfs_api["RustFS API"]
  node_rustfs_fs_api["RustFS filesystem API"]
  node_rustfs_service["RustFS service<br/>[RustFsService.java]"]
  node_rustfs_config["RustFS configuration<br/>[RustFsConfig.java]"]
  node_rustfs_config_alt["RustFS config<br/>[ConfigRustfs.java]"]
  node_bucket_dto["Bucket policy DTO"]
end

subgraph group_shared["Shared application"]
  node_app["Application startup"]
  node_cors["CORS configuration<br/>[CorsConfig.java]"]
  node_exceptions["Exception handling"]
  node_responses["Response types<br/>[CommonResult.java]"]
  node_test_api["Test API<br/>[TestControler.java]"]
end

node_user(("Administrator"))

click node_admin_api "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/AdminControler.java"
click node_admin_service "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/service/AdminService.java"
click node_admin_impl "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/service/impl/AdminServiceImpl.java"
click node_admin_mapper "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/mapper/AdminMapper.java"
click node_admin_entity "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/entity/Admin.java"
click node_rustfs_api "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/RustFsController.java"
click node_rustfs_fs_api "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/FsRustController.java"
click node_rustfs_service "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/service/RustFsService.java"
click node_rustfs_config "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/config/RustFsConfig.java"
click node_rustfs_config_alt "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/config/ConfigRustfs.java"
click node_bucket_dto "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/DTO/BucketPolicyConfigDto.java"
click node_app "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/HedadminApplication.java"
click node_cors "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/config/CorsConfig.java"
click node_exceptions "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/exception/ControllerExceptionHandler.java"
click node_responses "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/response/CommonResult.java"
click node_test_api "https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/TestControler.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_admin_api,node_admin_service,node_admin_impl,node_admin_mapper,node_admin_entity toneBlue
class node_rustfs_api,node_rustfs_fs_api,node_rustfs_service,node_rustfs_config,node_rustfs_config_alt,node_bucket_dto toneAmber
class node_app,node_cors,node_exceptions,node_responses,node_test_api toneMint
class node_user toneIndigo
```

## Components

### Admin management

- [Admin API](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/AdminControler.java): `hedadmin/src/main/java/com/example/hedadmin/controler/AdminControler.java`
- [Admin service](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/service/AdminService.java): `hedadmin/src/main/java/com/example/hedadmin/service/AdminService.java`
- [Admin service implementation](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/service/impl/AdminServiceImpl.java): `hedadmin/src/main/java/com/example/hedadmin/service/impl/AdminServiceImpl.java`
- [Admin mapper](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/mapper/AdminMapper.java): `hedadmin/src/main/java/com/example/hedadmin/mapper/AdminMapper.java`
- [Admin entity](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/entity/Admin.java): `hedadmin/src/main/java/com/example/hedadmin/entity/Admin.java`

### RustFS integration

- [RustFS API](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/RustFsController.java): `hedadmin/src/main/java/com/example/hedadmin/controler/RustFsController.java`
- [RustFS filesystem API](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/FsRustController.java): `hedadmin/src/main/java/com/example/hedadmin/controler/FsRustController.java`
- [RustFS service](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/service/RustFsService.java): `hedadmin/src/main/java/com/example/hedadmin/service/RustFsService.java`
- [RustFS configuration](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/config/RustFsConfig.java): `hedadmin/src/main/java/com/example/hedadmin/config/RustFsConfig.java`
- [RustFS config](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/config/ConfigRustfs.java): `hedadmin/src/main/java/com/example/hedadmin/config/ConfigRustfs.java`
- [Bucket policy DTO](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/DTO/BucketPolicyConfigDto.java): `hedadmin/src/main/java/com/example/hedadmin/DTO/BucketPolicyConfigDto.java`

### Shared application

- [Application startup](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/HedadminApplication.java): `hedadmin/src/main/java/com/example/hedadmin/HedadminApplication.java`
- [CORS configuration](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/config/CorsConfig.java): `hedadmin/src/main/java/com/example/hedadmin/config/CorsConfig.java`
- [Exception handling](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/exception/ControllerExceptionHandler.java): `hedadmin/src/main/java/com/example/hedadmin/exception/ControllerExceptionHandler.java`
- [Response types](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/response/CommonResult.java): `hedadmin/src/main/java/com/example/hedadmin/response/CommonResult.java`
- [Test API](https://github.com/en-dian/userproject/blob/main/hedadmin/src/main/java/com/example/hedadmin/controler/TestControler.java): `hedadmin/src/main/java/com/example/hedadmin/controler/TestControler.java`

### Other components

- **Administrator**
