feat: add im kafka admin integration
This commit is contained in:
@@ -288,3 +288,72 @@ type ImGroupAdminLogListModel struct {
|
||||
IdempotencyKey string `json:"idempotencyKey" dc:"幂等键"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
type ImGroupCommandModel struct {
|
||||
CommandID string `json:"commandId" dc:"命令ID"`
|
||||
EventID string `json:"eventId" dc:"Kafka事件ID"`
|
||||
Status string `json:"status" dc:"状态"`
|
||||
TenantID int64 `json:"tenantId" dc:"租户ID"`
|
||||
TenantCode string `json:"tenantCode" dc:"租户编码"`
|
||||
EventType string `json:"eventType" dc:"事件类型"`
|
||||
IdempotencyKey string `json:"idempotencyKey" dc:"幂等键"`
|
||||
}
|
||||
|
||||
type ImGroupProfileUpdateInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
Name string `json:"name" dc:"群名称"`
|
||||
AvatarFileId string `json:"avatarFileId" dc:"头像文件ID"`
|
||||
Description string `json:"description" dc:"简介"`
|
||||
Version int `json:"version" dc:"版本"`
|
||||
}
|
||||
|
||||
type ImGroupGovernanceUpdateInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
JoinApproval *bool `json:"joinApproval" dc:"入群审批"`
|
||||
MuteAll *bool `json:"muteAll" dc:"全员禁言"`
|
||||
MemberUploadFiles *bool `json:"memberUploadFiles" dc:"成员上传文件"`
|
||||
MemberPrivateChat *bool `json:"memberPrivateChat" dc:"成员私聊"`
|
||||
MemberInvite *bool `json:"memberInvite" dc:"成员邀请"`
|
||||
Version int `json:"version" dc:"版本"`
|
||||
}
|
||||
|
||||
type ImGroupAdminSetInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
UserIds []int64 `json:"userIds" v:"required#用户ID不能为空" dc:"用户ID列表"`
|
||||
}
|
||||
|
||||
type ImGroupAdminRemoveInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
UserId int64 `json:"userId" v:"required#用户ID不能为空" dc:"用户ID"`
|
||||
}
|
||||
|
||||
type ImGroupMemberMuteInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
UserId int64 `json:"userId" v:"required#用户ID不能为空" dc:"用户ID"`
|
||||
Reason string `json:"reason" dc:"原因"`
|
||||
ExpiresAt *gtime.Time `json:"expiresAt" dc:"过期时间"`
|
||||
}
|
||||
|
||||
type ImGroupMemberUnmuteInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
UserId int64 `json:"userId" v:"required#用户ID不能为空" dc:"用户ID"`
|
||||
}
|
||||
|
||||
type ImGroupMemberRemoveInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
UserId int64 `json:"userId" v:"required#用户ID不能为空" dc:"用户ID"`
|
||||
}
|
||||
|
||||
type ImGroupOwnerTransferInp struct {
|
||||
ImGroupTopicInp
|
||||
ActorUserId int64 `json:"actorUserId" v:"required#操作IM用户ID不能为空" dc:"操作IM用户ID"`
|
||||
TargetUserId int64 `json:"targetUserId" v:"required#新群主ID不能为空" dc:"新群主ID"`
|
||||
Version int `json:"version" dc:"版本"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user