191 lines
5.2 KiB
Go
191 lines
5.2 KiB
Go
// 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:"数据列表"`
|
|
}
|
|
|
|
// ProfileUpdateReq 通过Kafka修改IM群资料
|
|
type ProfileUpdateReq struct {
|
|
g.Meta `path:"/imGroup/profileUpdate" method:"post" tags:"IM群组" summary:"Kafka修改IM群资料"`
|
|
sysin.ImGroupProfileUpdateInp
|
|
}
|
|
|
|
type ProfileUpdateRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|
|
|
|
// GovernanceUpdateReq 通过Kafka修改IM群治理配置
|
|
type GovernanceUpdateReq struct {
|
|
g.Meta `path:"/imGroup/governanceUpdate" method:"post" tags:"IM群组" summary:"Kafka修改IM群治理配置"`
|
|
sysin.ImGroupGovernanceUpdateInp
|
|
}
|
|
|
|
type GovernanceUpdateRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|
|
|
|
// AdminSetReq 通过Kafka设置IM群管理员
|
|
type AdminSetReq struct {
|
|
g.Meta `path:"/imGroup/adminSet" method:"post" tags:"IM群组" summary:"Kafka设置IM群管理员"`
|
|
sysin.ImGroupAdminSetInp
|
|
}
|
|
|
|
type AdminSetRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|
|
|
|
// AdminRemoveReq 通过Kafka删除IM群管理员
|
|
type AdminRemoveReq struct {
|
|
g.Meta `path:"/imGroup/adminRemove" method:"post" tags:"IM群组" summary:"Kafka删除IM群管理员"`
|
|
sysin.ImGroupAdminRemoveInp
|
|
}
|
|
|
|
type AdminRemoveRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|
|
|
|
// MemberMuteReq 通过Kafka禁言IM群成员
|
|
type MemberMuteReq struct {
|
|
g.Meta `path:"/imGroup/memberMute" method:"post" tags:"IM群组" summary:"Kafka禁言IM群成员"`
|
|
sysin.ImGroupMemberMuteInp
|
|
}
|
|
|
|
type MemberMuteRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|
|
|
|
// MemberUnmuteReq 通过Kafka解除IM群成员禁言
|
|
type MemberUnmuteReq struct {
|
|
g.Meta `path:"/imGroup/memberUnmute" method:"post" tags:"IM群组" summary:"Kafka解除IM群成员禁言"`
|
|
sysin.ImGroupMemberUnmuteInp
|
|
}
|
|
|
|
type MemberUnmuteRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|
|
|
|
// MemberRemoveReq 通过Kafka移出IM群成员
|
|
type MemberRemoveReq struct {
|
|
g.Meta `path:"/imGroup/memberRemove" method:"post" tags:"IM群组" summary:"Kafka移出IM群成员"`
|
|
sysin.ImGroupMemberRemoveInp
|
|
}
|
|
|
|
type MemberRemoveRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|
|
|
|
// OwnerTransferReq 通过Kafka转让IM群主
|
|
type OwnerTransferReq struct {
|
|
g.Meta `path:"/imGroup/ownerTransfer" method:"post" tags:"IM群组" summary:"Kafka转让IM群主"`
|
|
sysin.ImGroupOwnerTransferInp
|
|
}
|
|
|
|
type OwnerTransferRes struct {
|
|
*sysin.ImGroupCommandModel
|
|
}
|