Documentation ¶
Index ¶
- type AdminLoginResp
- type CallbackAfterSendSingleMsgReq
- type CallbackAfterSendSingleMsgResp
- type CommonCallbackReq
- type CommonCallbackResp
- type LoginResp
- type NewUserCountResp
- type PictureBaseInfo
- type PictureElem
- type SearchDefaultGroupResp
- type SendMsg
- type SendMsgReq
- type TextElem
- type UpdateUserInfoResp
- type UserRegisterResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminLoginResp ¶
type AdminLoginResp struct { AdminAccount string `json:"adminAccount"` AdminToken string `json:"adminToken"` Nickname string `json:"nickname"` FaceURL string `json:"faceURL"` Level int32 `json:"level"` AdminUserID string `json:"adminUserID"` ImUserID string `json:"imUserID"` ImToken string `json:"imToken"` }
type CallbackAfterSendSingleMsgReq ¶ added in v1.6.0
type CallbackAfterSendSingleMsgReq struct { CommonCallbackReq RecvID string `json:"recvID"` }
type CallbackAfterSendSingleMsgResp ¶ added in v1.6.0
type CallbackAfterSendSingleMsgResp struct {
CommonCallbackResp
}
type CommonCallbackReq ¶ added in v1.6.0
type CommonCallbackReq struct { SendID string `json:"sendID"` CallbackCommand string `json:"callbackCommand"` ServerMsgID string `json:"serverMsgID"` ClientMsgID string `json:"clientMsgID"` OperationID string `json:"operationID"` SenderPlatformID int32 `json:"senderPlatformID"` SenderNickname string `json:"senderNickname"` SessionType int32 `json:"sessionType"` MsgFrom int32 `json:"msgFrom"` ContentType int32 `json:"contentType"` Status int32 `json:"status"` CreateTime int64 `json:"createTime"` Content string `json:"content"` Seq uint32 `json:"seq"` AtUserIDList []string `json:"atUserList"` SenderFaceURL string `json:"faceURL"` Ex string `json:"ex"` }
type CommonCallbackResp ¶ added in v1.6.0
type NewUserCountResp ¶ added in v1.3.0
type PictureBaseInfo ¶ added in v1.6.0
type PictureBaseInfo struct { UUID string `mapstructure:"uuid"` Type string `mapstructure:"type" validate:"required"` Size int64 `mapstructure:"size"` Width int32 `mapstructure:"width" validate:"required"` Height int32 `mapstructure:"height" validate:"required"` Url string `mapstructure:"url" validate:"required"` }
type PictureElem ¶ added in v1.6.0
type PictureElem struct { SourcePath string `mapstructure:"sourcePath"` SourcePicture PictureBaseInfo `mapstructure:"sourcePicture" validate:"required"` BigPicture PictureBaseInfo `mapstructure:"bigPicture" validate:"required"` SnapshotPicture PictureBaseInfo `mapstructure:"snapshotPicture" validate:"required"` }
type SearchDefaultGroupResp ¶
type SendMsg ¶ added in v1.6.0
type SendMsg struct { // SendID uniquely identifies the sender. SendID string `json:"sendID" binding:"required"` // GroupID is the identifier for the group, required if SessionType is 2 or 3. GroupID string `json:"groupID" binding:"required_if=SessionType 2|required_if=SessionType 3"` // SenderNickname is the nickname of the sender. SenderNickname string `json:"senderNickname"` // SenderFaceURL is the URL to the sender's avatar. SenderFaceURL string `json:"senderFaceURL"` // SenderPlatformID is an integer identifier for the sender's platform. SenderPlatformID int32 `json:"senderPlatformID"` // Content is the actual content of the message, required and excluded from Swagger documentation. Content map[string]any `json:"content" binding:"required" swaggerignore:"true"` // ContentType is an integer that represents the type of the content. ContentType int32 `json:"contentType" binding:"required"` // SessionType is an integer that represents the type of session for the message. SessionType int32 `json:"sessionType" binding:"required"` // IsOnlineOnly specifies if the message is only sent when the receiver is online. IsOnlineOnly bool `json:"isOnlineOnly"` // NotOfflinePush specifies if the message should not trigger offline push notifications. NotOfflinePush bool `json:"notOfflinePush"` // SendTime is a timestamp indicating when the message was sent. SendTime int64 `json:"sendTime"` // OfflinePushInfo contains information for offline push notifications. OfflinePushInfo *sdkws.OfflinePushInfo `json:"offlinePushInfo"` }
SendMsg defines the structure for sending messages with various metadata.
type SendMsgReq ¶ added in v1.6.0
type TextElem ¶ added in v1.6.0
type TextElem struct {
Content string `json:"content" validate:"required"`
}
type UpdateUserInfoResp ¶
type UpdateUserInfoResp struct{}
type UserRegisterResp ¶
Click to show internal directories.
Click to hide internal directories.