IM Instant Messaging
Based on the latest RuoyiPlus backend architecture, 16 DOs / 29 Controllers, menu ID starting at 11000, building an enterprise instant messaging and collaborative office system
1. Enhancement Positioning and Architecture
1.1 Product Positioning
RuoYiPlus IM centers around three core pillars—Rich Media Messaging, Deep Business Integration, and Message Security and Compliance—to deliver enterprise-level enhancement, creating a secure and controllable enterprise communication platform.
1.2 Module Scale
| Metric | Value |
|---|---|
| Data Objects (DO) | 16 |
| Controllers | 29 |
| Menu ID Start | 11000 |
| Maven Module | yudao-module-im |
1.3 Core Data Tables
| Table Name | Description |
|---|---|
im_channel | Channel Management |
im_group | Group Management |
im_private_message | Private Messages |
im_rtc_call | RTC Calls |
im_emoticon | Emoticons |
im_sensitive_word | Sensitive Words |
im_friend | Friend Management |
graph TB
subgraph "RuoYiPlus IM Enhanced Architecture"
subgraph "Message Layer"
A1[Basic Messages]
A2[Rich Media Messages]
A3[Business Messages]
A4[Card Messages]
end
subgraph "Group Layer"
B1[Work Groups]
B2[Project Groups]
B3[Department Groups]
B4[Notification Groups]
end
subgraph "Collaboration Layer"
C1[File Collaboration]
C2[Schedule Collaboration]
C3[Task Collaboration]
end
subgraph "Security Layer"
D1[Message Encryption]
D2[Message Audit]
D3[Permission Control]
D4[Compliance Reports]
end
end
A1 --> B1
A2 --> B2
A3 --> B3
A4 --> B4
B1 --> C1
B2 --> C2
B3 --> C3
C1 --> D1
C2 --> D2
C3 --> D3
1.4 Capability Comparison
| Dimension | Traditional IM | RuoYiPlus IM Enhanced |
|---|---|---|
| Message Types | Text messages | Rich media + business messages |
| Group Management | Simple groups | Multi-type groups + permission management |
| Message Security | No encryption | Message encryption + audit compliance |
| Business Integration | None | Business messages + work notifications |
| Collaboration Capability | None | File collaboration + schedule collaboration |
| Data Analysis | None | Activity analysis + efficiency analysis |
2. Rich Media Message Support
2.1 Message Type System
graph TB
subgraph "Message Types"
subgraph "Basic Messages"
A1[Text Messages]
A2[Emoticon Messages]
A3["@Mentions"]
A4[Image Messages]
A5[Voice Messages]
A6[Video Messages]
end
subgraph "File Messages"
B1[File Sending]
B2[File Preview]
B3[File Download]
B4[File Collaboration]
end
subgraph "Business Messages"
C1[Ticket Messages]
C2[Approval Messages]
C3[Task Messages]
C4[Notification Messages]
end
subgraph "Card Messages"
D1[Info Cards]
D2[Action Cards]
D3[Form Cards]
end
end
| Message Type | Description |
|---|---|
| Text Messages | Text, emoticons, @mentions |
| Rich Media Messages | Images, voice, video, files |
| Business Messages | Tickets, approvals, tasks and other business notifications |
| Card Messages | Interactive information cards |
| Location Messages | Location sharing, check-in |
3. Group Management Enhancement
3.1 Group Management System
graph TB
subgraph "Group Management"
subgraph "Group Types"
A1[Work Groups]
A2[Project Groups]
A3[Department Groups]
A4[Discussion Groups]
A5[Notification Groups]
end
subgraph "Group Permissions"
B1[Group Owner]
B2[Admin]
B3[Regular Member]
end
subgraph "Group Features"
C1[Group Announcement]
C2[Group Files]
C3[Group Schedule]
C4[Group Poll]
end
end
A1 --> B1
A2 --> B1
A3 --> B1
A4 --> B1
A5 --> B1
B1 --> B2
B2 --> B3
B3 --> C1
C1 --> C2
C2 --> C3
C3 --> C4
| Group Type | Description |
|---|---|
| Work Groups | Daily work communication groups |
| Project Groups | Project collaboration groups, linked to projects |
| Department Groups | Department communication groups, auto-sync members |
| Discussion Groups | Temporary discussion groups, flexible creation |
| Notification Groups | One-way notification groups, only admins can post |
4. Message Security and Compliance
4.1 Message Security System
graph TB
subgraph "Message Security"
subgraph "Transport Security"
A1[SSL/TLS Encryption]
A2[Message Signing]
A3[Tamper Prevention]
end
subgraph "Storage Security"
B1[Encrypted Message Storage]
B2[Sensitive Content Encryption]
B3[Data Isolation]
end
subgraph "Audit Compliance"
C1[Message Audit]
C2[Keyword Monitoring]
C3[Risk Alert]
C4[Compliance Reports]
end
subgraph "Permission Control"
D1[Message Permissions]
D2[Group Permissions]
D3[Feature Permissions]
end
end
A1 --> B1
A2 --> B1
A3 --> B1
B1 --> C1
B2 --> C1
B3 --> C1
C1 --> D1
C2 --> D1
C3 --> D1
4.2 Message Audit
All messages record complete audit logs, supporting message content traceability and compliance auditing.
| Audit Item | Description |
|---|---|
| Message Sending | Records sender, recipient, send time |
| Message Content | Records message content (encrypted storage) |
| Message Recall | Records recall operations |
| File Transfer | Records file uploads and downloads |
| Group Operations | Records group creation, member changes |
graph LR
A[Message Sent] --> B[Message Audit]
B --> C[Keyword Detection]
C --> D{Sensitive Word?}
D -->|Yes| E[Risk Flagging]
D -->|No| F[Normal Storage]
E --> G[Alert Notification]
F --> H[Encrypted Storage]
G --> H
4.3 Message Permission Control
The IM system implements role-based permission control to ensure message data security.
| Permission Level | Scope | Description |
|---|---|---|
| Regular User | Personal messages | Can only view their own messages |
| Group Admin | Group messages | Can manage group messages and members |
| Auditor | All messages | Can view all messages for auditing |
| System Admin | System configuration | Can configure system parameters but cannot view message content |
5. Business Integration Enhancement
5.1 Business Integration Architecture
graph TB
subgraph "Business Integration"
subgraph "Business Messages"
A1[Ticket Notifications]
A2[Approval Notifications]
A3[Task Notifications]
A4[Schedule Reminders]
end
subgraph "Business Actions"
B1[Quick Approval]
B2[Quick Processing]
B3[Business Navigation]
end
subgraph "Business Collaboration"
C1[File Collaboration]
C2[Schedule Collaboration]
C3[Task Collaboration]
C4[Meeting Collaboration]
end
end
A1 --> B1
A2 --> B1
A3 --> B2
A4 --> B2
B1 --> C1
B2 --> C2
B3 --> C3
| Business Type | Integration Method |
|---|---|
| Ticket System | Ticket creation, status change notifications |
| Approval System | Approval initiation, approval result notifications |
| Task System | Task assignment, progress update notifications |
| Schedule System | Schedule reminders, meeting invitations |
| Report System | Report generation, push notifications |
6. Collaborative Office Enhancement
6.1 File Collaboration
| Capability | Description |
|---|---|
| File Sharing | Group files, personal file library |
| Online Preview | Office, PDF online preview |
| Collaborative Editing | Multi-person collaborative document editing |
| Version Management | File version history |
| File Search | File content search |
6.2 Schedule Collaboration
| Capability | Description |
|---|---|
| Schedule Creation | Personal schedule, group schedule |
| Schedule Reminders | Timed reminders, recurring reminders |
| Schedule Sharing | Schedule sharing, schedule subscription |
| Meeting Invitations | Meeting invitations, attendance confirmation |
| Schedule Sync | Sync with external calendars |
6.3 Task Collaboration
| Capability | Description |
|---|---|
| Task Creation | Group tasks, personal tasks |
| Task Assignment | Task assignment, task claiming |
| Progress Tracking | Task progress, completion status |
| Task Reminders | Task due reminders |
| Task Statistics | Task completion statistics |
7. Technical Architecture
graph TB
subgraph "yudao-module-im-plus"
subgraph "im-biz"
A1[message - Message Management]
A2[group - Group Management]
A3[user - User Management]
A4[security - Message Security]
A5[audit - Message Audit]
A6[integration - Business Integration]
A7[collaboration - Collaborative Office]
A8[file - File Collaboration]
A9[schedule - Schedule Collaboration]
A10[task - Task Collaboration]
A11[search - Message Search]
A12[archive - Message Archiving]
A13[analytics - Data Analysis]
end
subgraph "Permissions and Audit"
B1[permission - Permission Control]
B2[audit - Audit Logs]
B3[monitoring - Monitoring and Alerting]
end
end
A1 --> B1
A2 --> B1
A3 --> B1
A4 --> B2
A5 --> B2
A6 --> B3
8. Business Value
| Value Point | Description |
|---|---|
| Communication Efficiency | Rich media messages, business integration |
| Collaborative Office | File collaboration, schedule collaboration |
| Security Compliance | Message encryption, audit compliance |
| Business Enablement | Business messages, quick actions |
| Data Insights | Activity analysis, efficiency analysis |
| Permission Control | Hierarchical permissions, data isolation |