feat: add tenant-aware IM management console

This commit is contained in:
richjohnrambo
2026-08-19 00:31:09 +08:00
parent 642b7ec5da
commit 89ba6bcff8
126 changed files with 11941 additions and 339 deletions
@@ -0,0 +1,33 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package imauditlog
import (
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
// ListReq 查询IM审计日志列表
type ListReq struct {
g.Meta `path:"/imAuditLog/list" method:"get" tags:"IM审计日志" summary:"获取IM审计日志列表"`
sysin.ImAuditLogListInp
}
type ListRes struct {
form.PageRes
List []*sysin.ImAuditLogListModel `json:"list" dc:"数据列表"`
}
// ViewReq 获取IM审计日志指定信息
type ViewReq struct {
g.Meta `path:"/imAuditLog/view" method:"get" tags:"IM审计日志" summary:"获取IM审计日志指定信息"`
sysin.ImAuditLogViewInp
}
type ViewRes struct {
*sysin.ImAuditLogViewModel
}
+110
View File
@@ -0,0 +1,110 @@
// Package imgroup
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2026 HotGo
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package imgroup
import (
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
// ListReq 查询IM群组列表
type ListReq struct {
g.Meta `path:"/imGroup/list" method:"get" tags:"IM群组" summary:"获取IM群组列表"`
sysin.ImGroupListInp
}
type ListRes struct {
form.PageRes
List []*sysin.ImGroupListModel `json:"list" dc:"数据列表"`
}
// ViewReq 获取IM群组指定信息
type ViewReq struct {
g.Meta `path:"/imGroup/view" method:"get" tags:"IM群组" summary:"获取IM群组指定信息"`
sysin.ImGroupViewInp
}
type ViewRes struct {
*sysin.ImGroupViewModel
}
// MemberListReq 查询IM群成员列表
type MemberListReq struct {
g.Meta `path:"/imGroup/memberList" method:"get" tags:"IM群组" summary:"获取IM群成员列表"`
sysin.ImGroupMemberListInp
}
type MemberListRes struct {
form.PageRes
List []*sysin.ImGroupMemberListModel `json:"list" dc:"数据列表"`
}
// GovernanceReq 获取IM群治理配置
type GovernanceReq struct {
g.Meta `path:"/imGroup/governance" method:"get" tags:"IM群组" summary:"获取IM群治理配置"`
sysin.ImGroupTopicInp
}
type GovernanceRes struct {
*sysin.ImGroupGovernanceModel
}
// JoinRequestListReq 查询IM入群申请列表
type JoinRequestListReq struct {
g.Meta `path:"/imGroup/joinRequestList" method:"get" tags:"IM群组" summary:"获取IM入群申请列表"`
sysin.ImGroupJoinRequestListInp
}
type JoinRequestListRes struct {
form.PageRes
List []*sysin.ImGroupJoinRequestListModel `json:"list" dc:"数据列表"`
}
// InvitationListReq 查询IM群邀请列表
type InvitationListReq struct {
g.Meta `path:"/imGroup/invitationList" method:"get" tags:"IM群组" summary:"获取IM群邀请列表"`
sysin.ImGroupInvitationListInp
}
type InvitationListRes struct {
form.PageRes
List []*sysin.ImGroupInvitationListModel `json:"list" dc:"数据列表"`
}
// AnnouncementListReq 查询IM群公告列表
type AnnouncementListReq struct {
g.Meta `path:"/imGroup/announcementList" method:"get" tags:"IM群组" summary:"获取IM群公告列表"`
sysin.ImGroupAnnouncementListInp
}
type AnnouncementListRes struct {
form.PageRes
List []*sysin.ImGroupAnnouncementListModel `json:"list" dc:"数据列表"`
}
// MuteListReq 查询IM群禁言列表
type MuteListReq struct {
g.Meta `path:"/imGroup/muteList" method:"get" tags:"IM群组" summary:"获取IM群禁言列表"`
sysin.ImGroupMuteListInp
}
type MuteListRes struct {
form.PageRes
List []*sysin.ImGroupMuteListModel `json:"list" dc:"数据列表"`
}
// AdminLogListReq 查询IM群管理日志列表
type AdminLogListReq struct {
g.Meta `path:"/imGroup/adminLogList" method:"get" tags:"IM群组" summary:"获取IM群管理日志列表"`
sysin.ImGroupAdminLogListInp
}
type AdminLogListRes struct {
form.PageRes
List []*sysin.ImGroupAdminLogListModel `json:"list" dc:"数据列表"`
}
+68
View File
@@ -0,0 +1,68 @@
package iminvite
import (
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
type ListReq struct {
g.Meta `path:"/imInvite/list" method:"post" tags:"IM邀请码" summary:"获取IM注册邀请码列表"`
sysin.ImInviteListInp
}
type ListRes struct {
form.PageRes
List []*sysin.ImInviteCodeModel `json:"list" dc:"数据列表"`
}
type CreateReq struct {
g.Meta `path:"/imInvite/create" method:"post" tags:"IM邀请码" summary:"生成IM注册邀请码"`
sysin.ImInviteCreateInp
}
type CreateRes struct {
*sysin.ImInviteCodeModel
}
type BatchCreateReq struct {
g.Meta `path:"/imInvite/batchCreate" method:"post" tags:"IM邀请码" summary:"批量生成IM注册邀请码"`
sysin.ImInviteBatchCreateInp
}
type BatchCreateRes struct {
*sysin.ImInviteBatchModel
}
type BatchViewReq struct {
g.Meta `path:"/imInvite/batchView" method:"get" tags:"IM邀请码" summary:"查看IM注册邀请码批次"`
sysin.ImInviteBatchViewInp
}
type BatchViewRes struct {
*sysin.ImInviteBatchDetailModel
}
type RevokeReq struct {
g.Meta `path:"/imInvite/revoke" method:"post" tags:"IM邀请码" summary:"撤销IM注册邀请码"`
sysin.ImInviteRevokeInp
}
type RevokeRes struct{}
type BatchRevokeReq struct {
g.Meta `path:"/imInvite/batchRevoke" method:"post" tags:"IM邀请码" summary:"批量撤销IM注册邀请码"`
sysin.ImInviteBatchRevokeInp
}
type BatchRevokeRes struct {
*sysin.ImInviteBatchModel
}
type ExportReq struct {
g.Meta `path:"/imInvite/export" method:"post" tags:"IM邀请码" summary:"导出IM注册邀请码"`
sysin.ImInviteListInp
}
type ExportRes struct{}
@@ -0,0 +1,42 @@
// Package imrealname
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2026 HotGo
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package imrealname
import (
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
// ListReq 查询IM实名审核列表
type ListReq struct {
g.Meta `path:"/imRealname/list" method:"get" tags:"IM实名审核" summary:"获取IM实名审核列表"`
sysin.ImRealnameListInp
}
type ListRes struct {
form.PageRes
List []*sysin.ImRealnameListModel `json:"list" dc:"数据列表"`
}
// ViewReq 获取IM实名审核指定信息
type ViewReq struct {
g.Meta `path:"/imRealname/view" method:"get" tags:"IM实名审核" summary:"获取IM实名审核指定信息"`
sysin.ImRealnameViewInp
}
type ViewRes struct {
*sysin.ImRealnameViewModel
}
// ReviewReq 审核IM实名
type ReviewReq struct {
g.Meta `path:"/imRealname/review" method:"post" tags:"IM实名审核" summary:"审核IM实名"`
sysin.ImRealnameReviewInp
}
type ReviewRes struct{}
@@ -0,0 +1,22 @@
package imregistration
import (
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
type GetReq struct {
g.Meta `path:"/imRegistration/config/get" method:"get" tags:"IM注册" summary:"获取IM注册配置"`
}
type GetRes struct {
*sysin.ImRegistrationConfigModel
}
type UpdateReq struct {
g.Meta `path:"/imRegistration/config/update" method:"post" tags:"IM注册" summary:"更新IM注册配置"`
sysin.ImRegistrationConfigUpdateInp
}
type UpdateRes struct{}
+50
View File
@@ -0,0 +1,50 @@
// Package imtenant
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2026 HotGo
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package imtenant
import (
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
// ListReq 查询IM租户列表
type ListReq struct {
g.Meta `path:"/imTenant/list" method:"get" tags:"IM租户" summary:"获取IM租户列表"`
sysin.ImTenantListInp
}
type ListRes struct {
form.PageRes
List []*sysin.ImTenantListModel `json:"list" dc:"数据列表"`
}
// ViewReq 获取IM租户指定信息
type ViewReq struct {
g.Meta `path:"/imTenant/view" method:"get" tags:"IM租户" summary:"获取IM租户指定信息"`
sysin.ImTenantViewInp
}
type ViewRes struct {
*sysin.ImTenantViewModel
}
// EditReq 修改/新增IM租户
type EditReq struct {
g.Meta `path:"/imTenant/edit" method:"post" tags:"IM租户" summary:"修改/新增IM租户"`
sysin.ImTenantEditInp
}
type EditRes struct{}
// StatusReq 更新IM租户状态
type StatusReq struct {
g.Meta `path:"/imTenant/status" method:"post" tags:"IM租户" summary:"更新IM租户状态"`
sysin.ImTenantStatusInp
}
type StatusRes struct{}
+41
View File
@@ -0,0 +1,41 @@
// Package imuser
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2026 HotGo
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package imuser
import (
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
// ListReq 查询IM用户列表
type ListReq struct {
g.Meta `path:"/imUser/list" method:"get" tags:"IM用户" summary:"获取IM用户列表"`
sysin.ImUserListInp
}
type ListRes struct {
form.PageRes
List []*sysin.ImUserListModel `json:"list" dc:"数据列表"`
}
// ViewReq 获取IM用户指定信息
type ViewReq struct {
g.Meta `path:"/imUser/view" method:"get" tags:"IM用户" summary:"获取IM用户指定信息"`
sysin.ImUserViewInp
}
type ViewRes struct {
*sysin.ImUserViewModel
}
type ResetPasswordReq struct {
g.Meta `path:"/imUser/resetPassword" method:"post" tags:"IM用户" summary:"重置IM用户密码"`
sysin.ImUserPasswordResetInp
}
type ResetPasswordRes struct{}
@@ -0,0 +1,42 @@
// Package imworkorder
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2026 HotGo
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package imworkorder
import (
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
"github.com/gogf/gf/v2/frame/g"
)
// ListReq 查询IM举报反馈工单列表
type ListReq struct {
g.Meta `path:"/imWorkOrder/list" method:"get" tags:"IM举报反馈" summary:"获取IM举报反馈工单列表"`
sysin.ImWorkOrderListInp
}
type ListRes struct {
form.PageRes
List []*sysin.ImWorkOrderListModel `json:"list" dc:"数据列表"`
}
// ViewReq 获取IM举报反馈工单指定信息
type ViewReq struct {
g.Meta `path:"/imWorkOrder/view" method:"get" tags:"IM举报反馈" summary:"获取IM举报反馈工单指定信息"`
sysin.ImWorkOrderViewInp
}
type ViewRes struct {
*sysin.ImWorkOrderViewModel
}
// StatusReq 更新IM举报反馈工单状态
type StatusReq struct {
g.Meta `path:"/imWorkOrder/status" method:"post" tags:"IM举报反馈" summary:"更新IM举报反馈工单状态"`
sysin.ImWorkOrderStatusInp
}
type StatusRes struct{}