Files
EchoChat/backend/go-service/app/constants/group.go
bujinyuan 19979da59e feat(phase2c): 群聊与已读回执功能完整实现
Phase 2c 全部 14 个 Task 完成,包含:

后端(Go):
- MinIO 文件存储服务集成(Docker + Go SDK + 通用上传 API)
- Group 模块完整实现(DAO + Service + Controller + Router + Wire)
  - 18 个群管理 REST API + 11 个 WS 群事件推送
  - 群创建/解散/邀请/踢人/退出/转让群主/设管理员/禁言/全体禁言/群公告/群昵称/免打扰/搜索
- IM Service 扩展(群消息发送/撤回 + @提醒 + 管理员无时限撤回)
- 已读回执后端(单聊会话级 last_read_msg_id + 群聊消息级 im_message_reads)
- 管理端群组管理(列表/详情/解散)
- 数据库迁移(3 张新表 + 2 张表字段扩展)

前端(uni-app):
- 群聊 Store + API 封装 + 11 个 WS 事件监听
- 已读回执 UI(单聊已读/未读标记 + 群聊 X人已读 + 已读详情页)
- 7 个群聊页面(对话/创建/设置/成员/邀请/审批/搜索)
- 会话列表改造(全部/单聊/群聊 Tab + @标记 + 免打扰标识)

管理端(Vue 3 + Element Plus):
- 群组列表页(搜索/分页/详情弹窗/解散群聊)
- 侧边栏群组管理入口

文档同步:进度/架构/设计/API/规范文档全部更新

Made-with: Cursor
2026-03-04 14:58:23 +08:00

47 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package constants
// 群聊状态
const (
GroupStatusNormal = 1 // 正常
GroupStatusDissolved = 2 // 已解散
)
// GroupStatusMap 群聊状态中文映射
var GroupStatusMap = map[int]string{
GroupStatusNormal: "正常",
GroupStatusDissolved: "已解散",
}
// 群成员角色im_conversation_members.role
const (
GroupRoleNormal = 0 // 普通成员
GroupRoleAdmin = 1 // 管理员
GroupRoleOwner = 2 // 群主
)
// GroupRoleMap 群成员角色中文映射
var GroupRoleMap = map[int]string{
GroupRoleNormal: "普通成员",
GroupRoleAdmin: "管理员",
GroupRoleOwner: "群主",
}
// 入群申请状态im_group_join_requests.status
const (
JoinRequestStatusPending = 0 // 待审批
JoinRequestStatusApproved = 1 // 通过
JoinRequestStatusRejected = 2 // 拒绝
)
// JoinRequestStatusMap 入群申请状态中文映射
var JoinRequestStatusMap = map[int]string{
JoinRequestStatusPending: "待审批",
JoinRequestStatusApproved: "通过",
JoinRequestStatusRejected: "拒绝",
}
// 群聊默认配置
const (
GroupDefaultMaxMembers = 200 // 默认最大成员数
)