2023-02-09 16:11:18 +08:00
|
|
|
package callbackstruct
|
2022-02-28 17:57:03 +08:00
|
|
|
|
2022-10-21 15:44:55 +08:00
|
|
|
import (
|
2023-03-16 10:46:06 +08:00
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/apistruct"
|
|
|
|
|
common "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
|
2022-10-21 15:44:55 +08:00
|
|
|
)
|
|
|
|
|
|
2023-02-14 19:28:57 +08:00
|
|
|
type CallbackCommand string
|
|
|
|
|
|
|
|
|
|
func (c CallbackCommand) GetCallbackCommand() string {
|
|
|
|
|
return string(c)
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-28 17:57:03 +08:00
|
|
|
type CallbackBeforeCreateGroupReq struct {
|
2022-11-22 18:28:37 +08:00
|
|
|
OperationID string `json:"operationID"`
|
2023-02-14 19:28:57 +08:00
|
|
|
CallbackCommand `json:"callbackCommand"`
|
2023-03-27 17:20:36 +08:00
|
|
|
*common.GroupInfo
|
2023-02-10 19:17:33 +08:00
|
|
|
InitMemberList []*apistruct.GroupAddMemberInfo `json:"initMemberList"`
|
2022-02-28 17:57:03 +08:00
|
|
|
}
|
|
|
|
|
|
2022-10-21 15:44:55 +08:00
|
|
|
type CallbackBeforeCreateGroupResp struct {
|
2023-02-14 19:28:57 +08:00
|
|
|
CommonCallbackResp
|
2022-10-21 15:44:55 +08:00
|
|
|
GroupID *string `json:"groupID"`
|
|
|
|
|
GroupName *string `json:"groupName"`
|
|
|
|
|
Notification *string `json:"notification"`
|
|
|
|
|
Introduction *string `json:"introduction"`
|
|
|
|
|
FaceURL *string `json:"faceURL"`
|
|
|
|
|
OwnerUserID *string `json:"ownerUserID"`
|
|
|
|
|
Ex *string `json:"ex"`
|
|
|
|
|
Status *int32 `json:"status"`
|
|
|
|
|
CreatorUserID *string `json:"creatorUserID"`
|
|
|
|
|
GroupType *int32 `json:"groupType"`
|
|
|
|
|
NeedVerification *int32 `json:"needVerification"`
|
|
|
|
|
LookMemberInfo *int32 `json:"lookMemberInfo"`
|
|
|
|
|
ApplyMemberFriend *int32 `json:"applyMemberFriend"`
|
|
|
|
|
}
|
2022-11-22 11:07:20 +08:00
|
|
|
|
|
|
|
|
type CallbackBeforeMemberJoinGroupReq struct {
|
2023-02-14 19:28:57 +08:00
|
|
|
CallbackCommand `json:"callbackCommand"`
|
2022-11-22 18:28:37 +08:00
|
|
|
OperationID string `json:"operationID"`
|
2022-11-22 11:07:20 +08:00
|
|
|
GroupID string `json:"groupID"`
|
|
|
|
|
UserID string `json:"userID"`
|
|
|
|
|
Ex string `json:"ex"`
|
|
|
|
|
GroupEx string `json:"groupEx"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CallbackBeforeMemberJoinGroupResp struct {
|
2023-02-14 19:28:57 +08:00
|
|
|
CommonCallbackResp
|
|
|
|
|
Nickname *string `json:"nickname"`
|
2022-11-22 11:07:20 +08:00
|
|
|
FaceURL *string `json:"faceURL"`
|
|
|
|
|
RoleLevel *int32 `json:"roleLevel"`
|
|
|
|
|
MuteEndTime *int64 `json:"muteEndTime"`
|
|
|
|
|
Ex *string `json:"ex"`
|
|
|
|
|
}
|
2022-12-16 16:54:18 +08:00
|
|
|
|
|
|
|
|
type CallbackBeforeSetGroupMemberInfoReq struct {
|
2023-02-14 19:28:57 +08:00
|
|
|
CallbackCommand `json:"callbackCommand"`
|
|
|
|
|
OperationID string `json:"operationID"`
|
|
|
|
|
GroupID string `json:"groupID"`
|
|
|
|
|
UserID string `json:"userID"`
|
|
|
|
|
Nickname *string `json:"nickName"`
|
|
|
|
|
FaceURL *string `json:"faceURL"`
|
|
|
|
|
RoleLevel *int32 `json:"roleLevel"`
|
|
|
|
|
Ex *string `json:"ex"`
|
2022-12-16 16:54:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CallbackBeforeSetGroupMemberInfoResp struct {
|
2023-02-14 19:28:57 +08:00
|
|
|
CommonCallbackResp
|
2022-12-16 16:54:18 +08:00
|
|
|
Ex *string `json:"ex"`
|
|
|
|
|
Nickname *string `json:"nickName"`
|
|
|
|
|
FaceURL *string `json:"faceURL"`
|
|
|
|
|
RoleLevel *int32 `json:"roleLevel"`
|
|
|
|
|
}
|