Versions in this module Expand all Collapse all v0 v0.2.0 Feb 12, 2022 Changes in this version + const GenderTypeFemale + const GenderTypeMale + const GenderTypeUnknown + const SupperGroupIdPre + const TIMCustomElem + const TIMFaceElem + const TIMLocationElem + const TIMTextElem + type AndroidInfo struct + Sound string + type ApnsInfo struct + BadgeMode int + Image string + Sound string + SubTitle string + Title string + type AppDefinedData struct + Key string + Value string + type BatchChatMsg struct + FromAccount string + ToAccount []string + type ChatMsg struct + MsgBody []MsgBody + MsgLifeTime int + MsgRandom int + MsgTimeStamp int64 + OfflinePushInfo OfflinePushInfo + SyncFromOldSystem int + SyncOtherMachine int + type GroupAddMemberReq struct + GroupID string + MemberList []MemberList + Silence int + type GroupDeleteMemberReq struct + GroupID string + MemberToDelAccount []string + Reason string + Silence int + type GroupInfo struct + ErrorCode int + ErrorInfo string + GroupId string + MemberNum int + Name string + OwnerAccount string + Type string + type GroupMemberInfo struct + MemberList []MemberList + MemberNum int + type GroupMemberInfoReq struct + AppDefinedDataFilterGroupMember []string + GroupID string + Limit int + MemberInfoFilter []string + MemberRoleFilter []string + Offset int + type GroupMsg struct + ForbidCallbackControl []string + FromAccount string + GroupID string + MsgBody []MsgBody + MsgPriority string + OnlineOnlyFlag int + Random int + type GroupReq struct + GroupID string + Introduction string + Name string + OwnerAccount string + Type string + type GroupResInfo struct + ActionStatus string + ErrorCode int + ErrorInfo string + GroupInfo []GroupInfo + type IMPath string + const ACCOUNTIMPORT + const BASEURL + const GETGROUPINFO + const GETGROUPMEMBERINFO + const GROUPADD + const GROUPADDMEMBER + const GROUPDELMEMBER + const MULTIACCOUNTIMPORT + const QUERYSTATE + const SENDMSG + const SendGroupMSG + type IMServer struct + AppID int + Expire int + Identifier string + Key string + Sig string + func (s *IMServer) AddImGroup(g GroupReq) error + func (s *IMServer) GetGroupInfo(gid []string) (resp GroupResInfo, err error) + func (s *IMServer) GetGroupMemberInfo(g GroupMemberInfoReq) (GroupMemberInfo, error) + func (s *IMServer) GetPortrait(p PortraitReq) (PortraitResp, error) + func (s *IMServer) GroupAddMember(roomId interface{}, accounts []string) ([]MemberList, error) + func (s *IMServer) GroupDeleteMember(roomId interface{}, accounts []string) error + func (s *IMServer) MultiAccountImports(account []string) ([]string, error) + func (s *IMServer) SendMsg(b SingleChatMsg) (msgTime int64, msgKey string, err error) + func (s *IMServer) SendRoomData(roomId interface{}, msgType int, byteData []byte) error + func (s *IMServer) SetRobotProfile(u UserProfile) error + func (s *IMServer) SetUserPartProfile(userId interface{}, list ...ProfileItem) error + func (s *IMServer) SetUserProfile(u UserProfile) error + func (s IMServer) SetUserLv(userId interface{}, lv, anchorLv int) error + type MemberList struct + MemberAccount string + Result int + Role string + type MsgBody struct + MsgContent MsgContent + MsgType string + func NewCustomElem(data, desc, ext, sound string) MsgBody + func NewTextElem(text string) MsgBody + type MsgContent struct + Data interface{} + Desc string + Ext string + Index int + Latitude float64 + Longitude float64 + Sound string + Text string + type MsgTypeData struct + Data interface{} + MsgType int + type OfflinePushInfo struct + AndroidInfo AndroidInfo + ApnsInfo ApnsInfo + Desc string + Ext string + PushFlag int + type PortraitReq struct + TagList []PortraitTag + ToAccount []string + type PortraitResp struct + ActionStatus string + ErrorCode int + ErrorDisplay string + ErrorInfo string + FailAccount []string + UserProfileItem []UserProfileItem + type PortraitSet struct + FromAccount string + ProfileItem []ProfileItem + type PortraitTag string + const IMCustomCharmLv + const IMCustomIsRobot + const IMCustomRichLv + const IMGender + const IMImage + const IMNick + const IMSelfSignature + type PortraitTagValue string + type ProfileItem struct + Tag PortraitTag + Value interface{} + type SendMsgResp struct + ActionStatus string + ErrorCode int + ErrorInfo string + MsgKey string + MsgTime int64 + type SingleChatMsg struct + FromAccount string + ToAccount string + type UserProfile struct + AnchorLv int32 + Head string + ID int64 + Lv int32 + Nick string + PersonalStatus string + Sex int32 + type UserProfileItem struct + ProfileItem []ProfileItem + ResultCode int + ResultInfo string + ToAccount string