openim

package
v1.2.54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG = true

Variables

View Source
var Admin_userId = "openIM123"
View Source
var Openim_api string = "http://api.openim.com"
View Source
var Secret = "openIM123"

Functions

func Auth

func Auth() openim_auth

func Friend

func Friend() openim_friend

func GenOperationID

func GenOperationID() string

func GetCsGroupId

func GetCsGroupId(id int64) string

func GetHomeUserId

func GetHomeUserId(id int64) string

func GetSysUserId

func GetSysUserId(id int64) string

func GetToken

func GetToken(userId string) string

func Group

func Group() openim_group

func HttpPost

func HttpPost(headers map[string]string, url string, req_body interface{}) (body []byte, err error)

func Msg

func Msg() openim_msg

func User

func User() openim_user

Types

type GroupInfo

type GroupInfo struct {
	GroupID           string `json:"groupID"`
	GroupName         string `json:"groupName"`
	Notification      string `json:"notification"`
	Introduction      string `json:"introduction"`
	FaceURL           string `json:"faceURL"`
	Ex                string `json:"ex"`
	GroupType         int    `json:"groupType"`
	NeedVerification  int    `json:"needVerification"`
	LookMemberInfo    int    `json:"lookMemberInfo"`
	ApplyMemberFriend int    `json:"applyMemberFriend"`
}

type HashTable

type HashTable = map[string]interface{}

type Req_account_check

type Req_account_check struct {
	CheckUserIDs []string `json:"checkUserIDs"`
}

type Req_add_black

type Req_add_black struct {
	OwnerUserID string `json:"ownerUserID"`
	BlackUserID string `json:"blackUserID"`
}

type Req_add_friend

type Req_add_friend struct {
	FromUserID string `json:"fromUserID"`
	ToUserID   string `json:"toUserID"`
	ReqMsg     string `json:"reqMsg"`
	Ex         string `json:"ex"`
}

type Req_add_friend_response

type Req_add_friend_response struct {
	FromUserID   string `json:"fromUserID"`
	ToUserID     string `json:"toUserID"`
	HandleResult int    `json:"handleResult"`
	HandleMsg    string `json:"handleMsg"`
}

type Req_cancel_mute_group

type Req_cancel_mute_group struct {
	GroupID string `json:"groupID"`
}

type Req_cancel_mute_group_member

type Req_cancel_mute_group_member struct {
	GroupID string `json:"groupID"`
	UserID  string `json:"userID"`
}

type Req_create_group

type Req_create_group struct {
	MemberUserIDs []string  `json:"memberUserIDs"`
	AdminUserIDs  []string  `json:"adminUserIDs"`
	OwnerUserID   string    `json:"ownerUserID"`
	GroupInfo     GroupInfo `json:"groupInfo"`
}

type Req_delete_friend

type Req_delete_friend struct {
	OwnerUserID  string `json:"ownerUserID"`
	FriendUserID string `json:"friendUserID"`
}

type Req_dismiss_group

type Req_dismiss_group struct {
	GroupID string `json:"groupID"`
}

type Req_force_logout

type Req_force_logout struct {
	PlatformID int    `json:"platformID"`
	UserID     string `json:"userID"`
}

type Req_get_all_users_uid

type Req_get_all_users_uid struct {
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_black_list

type Req_get_black_list struct {
	UserID     string `json:"userID"`
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_friend_apply_list

type Req_get_friend_apply_list struct {
	UserID     string `json:"userID"`
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_friend_list

type Req_get_friend_list struct {
	UserID     string `json:"userID"`
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_group_member_list

type Req_get_group_member_list struct {
	GroupID    string `json:"groupID"`
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_group_members_info

type Req_get_group_members_info struct {
	GroupID string   `json:"groupID"`
	UserIDs []string `json:"userIDs"`
}

type Req_get_group_users_req_application_list

type Req_get_group_users_req_application_list struct {
	GroupID string   `json:"groupID"`
	UserIDs []string `json:"userIDs"`
}

type Req_get_groups_info

type Req_get_groups_info struct {
	GroupIDs []string `json:"groupIDs"`
}

type Req_get_joined_group_list

type Req_get_joined_group_list struct {
	FromUserID string `json:"fromUserID"`
	Pagination struct {
		ShowNumber int `json:"showNumber"`
		PageNumber int `json:"pageNumber"`
	} `json:"pagination"`
}

type Req_get_recv_group_applicationList

type Req_get_recv_group_applicationList struct {
	FromUserID string `json:"fromUserID"`
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_self_friend_apply_list

type Req_get_self_friend_apply_list struct {
	UserID     string `json:"userID"`
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_subscribe_users_status

type Req_get_subscribe_users_status struct {
	UserID string `json:"userID"`
}

type Req_get_user_req_group_applicationList

type Req_get_user_req_group_applicationList struct {
	UserID     string `json:"userID"`
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_users

type Req_get_users struct {
	Pagination struct {
		PageNumber int `json:"pageNumber"`
		ShowNumber int `json:"showNumber"`
	} `json:"pagination"`
}

type Req_get_users_info

type Req_get_users_info struct {
	UserIDs []string `json:"userIDs"`
}

type Req_get_users_online_status

type Req_get_users_online_status struct {
	UserIDs []string `json:"userIDs"`
}

type Req_get_users_online_token_detail

type Req_get_users_online_token_detail struct {
	UserIDs []string `json:"userIDs"`
}

type Req_group_application_response

type Req_group_application_response struct {
	GroupID      string `json:"groupID"`
	FromUserID   string `json:"fromUserID"`
	HandledMsg   string `json:"handledMsg"`
	HandleResult int    `json:"handleResult"`
}

type Req_import_friend

type Req_import_friend struct {
	OwnerUserID   string   `json:"ownerUserID"`
	FriendUserIDs []string `json:"friendUserIDs"`
}

type Req_invite_user_to_group

type Req_invite_user_to_group struct {
	GroupID        string   `json:"groupID"`
	InvitedUserIDs []string `json:"invitedUserIDs"`
	Reason         string   `json:"reason"`
}

type Req_is_friend

type Req_is_friend struct {
	UserID1 string `json:"userID1"`
	UserID2 string `json:"userID2"`
}

type Req_join_group

type Req_join_group struct {
	GroupID       string `json:"groupID"`
	ReqMessage    string `json:"reqMessage"`
	JoinSource    int    `json:"joinSource"`
	InviterUserID string `json:"inviterUserID"`
}

type Req_kick_group

type Req_kick_group struct {
	GroupID       string   `json:"groupID"`
	KickedUserIDs []string `json:"kickedUserIDs"`
	Reason        string   `json:"reason"`
}

type Req_mute_group

type Req_mute_group struct {
	GroupID string `json:"groupID"`
}

type Req_mute_group_member

type Req_mute_group_member struct {
	GroupID      string `json:"groupID"`
	UserID       string `json:"userID"`
	MutedSeconds int    `json:"mutedSeconds"`
}

type Req_quit_group

type Req_quit_group struct {
	GroupID string `json:"groupID"`
	UserID  string `json:"userID"`
}

type Req_remove_black

type Req_remove_black struct {
	OwnerUserID string `json:"ownerUserID"`
	BlackUserID string `json:"blackUserID"`
}

type Req_revoke_msg

type Req_revoke_msg struct {
	UserID         string `json:"userID"`
	ConversationID string `json:"conversationID"`
	Seq            int    `json:"seq"`
}

type Req_send_msg

type Req_send_msg struct {
	SendID           string `json:"sendID"`
	RecvID           string `json:"recvID"`
	GroupID          string `json:"groupID"`
	SenderNickname   string `json:"senderNickname"`
	SenderFaceURL    string `json:"senderFaceURL"`
	SenderPlatformID int    `json:"senderPlatformID"`
	Content          any    `json:"content"`
	ContentType      int    `json:"contentType"`
	SessionType      int    `json:"sessionType"`
	IsOnlineOnly     bool   `json:"isOnlineOnly"`
	NotOfflinePush   bool   `json:"notOfflinePush"`
	SendTime         int    `json:"sendTime"`
	OfflinePushInfo  any    `json:"offlinePushInfo"`
}

type Req_send_text_msg

type Req_send_text_msg struct {
	GroupID string `json:"groupID"`
	Content any    `json:"content"`
}

type Req_set_friend_remark

type Req_set_friend_remark struct {
	OwnerUserID  string `json:"ownerUserID"`
	FriendUserID string `json:"friendUserID"`
	Remark       string `json:"remark"`
}

type Req_set_global_msg_recv_opt

type Req_set_global_msg_recv_opt struct {
	UserID           string `json:"userID"`
	GlobalRecvMsgOpt int    `json:"globalRecvMsgOpt"`
}

type Req_set_group_info

type Req_set_group_info struct {
	GroupInfoForSet struct {
		GroupID           string `json:"groupID"`
		GroupName         string `json:"groupName"`
		Notification      string `json:"notification"`
		Introduction      string `json:"introduction"`
		FaceURL           string `json:"faceURL"`
		Ex                string `json:"ex"`
		NeedVerification  int    `json:"needVerification"`
		LookMemberInfo    int    `json:"lookMemberInfo"`
		ApplyMemberFriend int    `json:"applyMemberFriend"`
	} `json:"groupInfoForSet"`
}

type Req_set_group_member_info

type Req_set_group_member_info struct {
	Members []struct {
		GroupID   string `json:"groupID"`
		UserID    string `json:"userID"`
		NickName  string `json:"nickName"`
		FaceURL   string `json:"faceURL"`
		RoleLevel int    `json:"roleLevel"`
		Ex        string `json:"ex"`
	} `json:"members"`
}

type Req_subscribe_users_status

type Req_subscribe_users_status struct {
	UserID  string   `json:"userID"`
	UserIDs []string `json:"userIDs"`
	Genre   int      `json:"genre"`
}

type Req_transfer_group

type Req_transfer_group struct {
	GroupID        string `json:"groupID"`
	OldOwnerUserID string `json:"oldOwnerUserID"`
	NewOwnerUserID string `json:"newOwnerUserID"`
}

type Req_update_user_info

type Req_update_user_info struct {
	UserInfo struct {
		UserID   string `json:"userID"`
		Nickname string `json:"nickname"`
		FaceURL  string `json:"faceURL"`
	} `json:"userInfo"`
}

type Req_user_clear_all_msg

type Req_user_clear_all_msg struct {
	UserID string `json:"userID"`
}

type Req_user_register

type Req_user_register struct {
	Secret string     `json:"secret"`
	Users  []Userinfo `json:"users"`
}

type Req_user_token

type Req_user_token struct {
	Secret     string `json:"secret"`
	PlatformID int    `json:"platformID"`
	UserID     string `json:"userID"`
}

type Resp_account_check

type Resp_account_check struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Results []struct {
			UserID        string `json:"userID"`
			AccountStatus string `json:"accountStatus"`
		} `json:"results"`
	} `json:"data"`
}

type Resp_add_black

type Resp_add_black struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_add_friend

type Resp_add_friend struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_add_friend_response

type Resp_add_friend_response struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_cancel_mute_group

type Resp_cancel_mute_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_cancel_mute_group_member

type Resp_cancel_mute_group_member struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_create_group

type Resp_create_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		GroupInfo struct {
			GroupID                string `json:"groupID"`
			GroupName              string `json:"groupName"`
			Notification           string `json:"notification"`
			Introduction           string `json:"introduction"`
			FaceURL                string `json:"faceURL"`
			OwnerUserID            string `json:"ownerUserID"`
			CreateTime             int64  `json:"createTime"`
			MemberCount            int    `json:"memberCount"`
			Ex                     string `json:"ex"`
			Status                 int    `json:"status"`
			CreatorUserID          string `json:"creatorUserID"`
			GroupType              int    `json:"groupType"`
			NeedVerification       int    `json:"needVerification"`
			LookMemberInfo         int    `json:"lookMemberInfo"`
			ApplyMemberFriend      int    `json:"applyMemberFriend"`
			NotificationUpdateTime int    `json:"notificationUpdateTime"`
			NotificationUserID     string `json:"notificationUserID"`
		} `json:"groupInfo"`
	} `json:"data"`
}

type Resp_delete_friend

type Resp_delete_friend struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_dismiss_group

type Resp_dismiss_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_force_logout

type Resp_force_logout struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_get_all_users_uid

type Resp_get_all_users_uid struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Total   int      `json:"total"`
		UserIDs []string `json:"userIDs"`
	} `json:"data"`
}

type Resp_get_black_list

type Resp_get_black_list struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Blacks []struct {
			OwnerUserID   string `json:"ownerUserID"`
			CreateTime    int    `json:"createTime"`
			BlackUserInfo struct {
				UserID   string `json:"userID"`
				Nickname string `json:"nickname"`
				FaceURL  string `json:"faceURL"`
				Ex       string `json:"ex"`
			} `json:"blackUserInfo"`
			AddSource      int    `json:"addSource"`
			OperatorUserID string `json:"operatorUserID"`
			Ex             string `json:"ex"`
		} `json:"blacks"`
		Total int `json:"total"`
	} `json:"data"`
}

type Resp_get_friend_apply_list

type Resp_get_friend_apply_list struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		FriendRequests []struct {
			FromUserID    string `json:"fromUserID"`
			FromNickname  string `json:"fromNickname"`
			FromFaceURL   string `json:"fromFaceURL"`
			ToUserID      string `json:"toUserID"`
			ToNickname    string `json:"toNickname"`
			ToFaceURL     string `json:"toFaceURL"`
			HandleResult  int    `json:"handleResult"`
			ReqMsg        string `json:"reqMsg"`
			CreateTime    int64  `json:"createTime"`
			HandlerUserID string `json:"handlerUserID"`
			HandleMsg     string `json:"handleMsg"`
			HandleTime    int64  `json:"handleTime"`
			Ex            string `json:"ex"`
		} `json:"FriendRequests"`
		Total int `json:"total"`
	} `json:"data"`
}

type Resp_get_friend_list

type Resp_get_friend_list struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		FriendsInfo []struct {
			OwnerUserID string `json:"ownerUserID"`
			Remark      string `json:"remark"`
			CreateTime  int    `json:"createTime"`
			FriendUser  struct {
				UserID           string `json:"userID"`
				Nickname         string `json:"nickname"`
				FaceURL          string `json:"faceURL"`
				Ex               string `json:"ex"`
				CreateTime       int    `json:"createTime"`
				AppMangerLevel   int    `json:"appMangerLevel"`
				GlobalRecvMsgOpt int    `json:"globalRecvMsgOpt"`
			} `json:"friendUser"`
			AddSource      int    `json:"addSource"`
			OperatorUserID string `json:"operatorUserID"`
			Ex             string `json:"ex"`
		} `json:"friendsInfo"`
		Total int `json:"total"`
	} `json:"data"`
}

type Resp_get_group_member_list

type Resp_get_group_member_list struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Total   int `json:"total"`
		Members []struct {
			GroupID        string `json:"groupID"`
			UserID         string `json:"userID"`
			RoleLevel      int    `json:"roleLevel"`
			JoinTime       int64  `json:"joinTime"`
			Nickname       string `json:"nickname"`
			FaceURL        string `json:"faceURL"`
			AppMangerLevel int    `json:"appMangerLevel"`
			JoinSource     int    `json:"joinSource"`
			OperatorUserID string `json:"operatorUserID"`
			Ex             string `json:"ex"`
			MuteEndTime    int    `json:"muteEndTime"`
			InviterUserID  string `json:"inviterUserID"`
		} `json:"members"`
	} `json:"data"`
}

type Resp_get_group_members_info

type Resp_get_group_members_info struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Members []struct {
			GroupID        string `json:"groupID"`
			UserID         string `json:"userID"`
			RoleLevel      int    `json:"roleLevel"`
			JoinTime       int64  `json:"joinTime"`
			Nickname       string `json:"nickname"`
			FaceURL        string `json:"faceURL"`
			AppMangerLevel int    `json:"appMangerLevel"`
			JoinSource     int    `json:"joinSource"`
			OperatorUserID string `json:"operatorUserID"`
			Ex             string `json:"ex"`
			MuteEndTime    int    `json:"muteEndTime"`
			InviterUserID  string `json:"inviterUserID"`
		} `json:"members"`
	} `json:"data"`
}

type Resp_get_group_users_req_application_list

type Resp_get_group_users_req_application_list struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Total         int `json:"total"`
		GroupRequests []struct {
			UserInfo struct {
				UserID   string `json:"userID"`
				Nickname string `json:"nickname"`
				FaceURL  string `json:"faceURL"`
				Ex       string `json:"ex"`
			} `json:"userInfo"`
			GroupInfo struct {
				GroupID                string `json:"groupID"`
				GroupName              string `json:"groupName"`
				Notification           string `json:"notification"`
				Introduction           string `json:"introduction"`
				FaceURL                string `json:"faceURL"`
				OwnerUserID            string `json:"ownerUserID"`
				CreateTime             int64  `json:"createTime"`
				MemberCount            int    `json:"memberCount"`
				Ex                     string `json:"ex"`
				Status                 int    `json:"status"`
				CreatorUserID          string `json:"creatorUserID"`
				GroupType              int    `json:"groupType"`
				NeedVerification       int    `json:"needVerification"`
				LookMemberInfo         int    `json:"lookMemberInfo"`
				ApplyMemberFriend      int    `json:"applyMemberFriend"`
				NotificationUpdateTime int    `json:"notificationUpdateTime"`
				NotificationUserID     string `json:"notificationUserID"`
			} `json:"groupInfo"`
			HandleResult  int    `json:"handleResult"`
			ReqMsg        string `json:"reqMsg"`
			HandleMsg     string `json:"handleMsg"`
			ReqTime       int64  `json:"reqTime"`
			HandleUserID  string `json:"handleUserID"`
			HandleTime    int    `json:"handleTime"`
			Ex            string `json:"ex"`
			JoinSource    int    `json:"joinSource"`
			InviterUserID string `json:"inviterUserID"`
		} `json:"groupRequests"`
	} `json:"data"`
}

type Resp_get_groups_info

type Resp_get_groups_info struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		GroupInfos []interface{} `json:"groupInfos"`
	} `json:"data"`
}

type Resp_get_joined_group_list

type Resp_get_joined_group_list struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Total  int           `json:"total"`
		Groups []interface{} `json:"groups"`
	} `json:"data"`
}

type Resp_get_recv_group_applicationList

type Resp_get_recv_group_applicationList struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Total         int `json:"total"`
		GroupRequests []struct {
			UserInfo struct {
				UserID   string `json:"userID"`
				Nickname string `json:"nickname"`
				FaceURL  string `json:"faceURL"`
				Ex       string `json:"ex"`
			} `json:"userInfo"`
			GroupInfo struct {
				GroupID                string `json:"groupID"`
				GroupName              string `json:"groupName"`
				Notification           string `json:"notification"`
				Introduction           string `json:"introduction"`
				FaceURL                string `json:"faceURL"`
				OwnerUserID            string `json:"ownerUserID"`
				CreateTime             int64  `json:"createTime"`
				MemberCount            int    `json:"memberCount"`
				Ex                     string `json:"ex"`
				Status                 int    `json:"status"`
				CreatorUserID          string `json:"creatorUserID"`
				GroupType              int    `json:"groupType"`
				NeedVerification       int    `json:"needVerification"`
				LookMemberInfo         int    `json:"lookMemberInfo"`
				ApplyMemberFriend      int    `json:"applyMemberFriend"`
				NotificationUpdateTime int    `json:"notificationUpdateTime"`
				NotificationUserID     string `json:"notificationUserID"`
			} `json:"groupInfo"`
			HandleResult  int    `json:"handleResult"`
			ReqMsg        string `json:"reqMsg"`
			HandleMsg     string `json:"handleMsg"`
			ReqTime       int64  `json:"reqTime"`
			HandleUserID  string `json:"handleUserID"`
			HandleTime    int    `json:"handleTime"`
			Ex            string `json:"ex"`
			JoinSource    int    `json:"joinSource"`
			InviterUserID string `json:"inviterUserID"`
		} `json:"groupRequests"`
	} `json:"data"`
}

type Resp_get_self_friend_apply_list

type Resp_get_self_friend_apply_list struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		FriendRequests []struct {
			FromUserID    string `json:"fromUserID"`
			FromNickname  string `json:"fromNickname"`
			FromFaceURL   string `json:"fromFaceURL"`
			ToUserID      string `json:"toUserID"`
			ToNickname    string `json:"toNickname"`
			ToFaceURL     string `json:"toFaceURL"`
			HandleResult  int    `json:"handleResult"`
			ReqMsg        string `json:"reqMsg"`
			CreateTime    int64  `json:"createTime"`
			HandlerUserID string `json:"handlerUserID"`
			HandleMsg     string `json:"handleMsg"`
			HandleTime    int64  `json:"handleTime"`
			Ex            string `json:"ex"`
		} `json:"friendRequests"`
		Total int `json:"total"`
	} `json:"data"`
}

type Resp_get_subscribe_users_status

type Resp_get_subscribe_users_status struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		StatusList []struct {
			UserID      string      `json:"userID"`
			Status      int         `json:"status"`
			PlatformIDs interface{} `json:"platformIDs"`
		} `json:"statusList"`
	} `json:"data"`
}

type Resp_get_user_req_group_applicationList

type Resp_get_user_req_group_applicationList struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Total         int `json:"total"`
		GroupRequests []struct {
			UserInfo struct {
				UserID   string `json:"userID"`
				Nickname string `json:"nickname"`
				FaceURL  string `json:"faceURL"`
				Ex       string `json:"ex"`
			} `json:"userInfo"`
			GroupInfo struct {
				GroupID                string `json:"groupID"`
				GroupName              string `json:"groupName"`
				Notification           string `json:"notification"`
				Introduction           string `json:"introduction"`
				FaceURL                string `json:"faceURL"`
				OwnerUserID            string `json:"ownerUserID"`
				CreateTime             int64  `json:"createTime"`
				MemberCount            int    `json:"memberCount"`
				Ex                     string `json:"ex"`
				Status                 int    `json:"status"`
				CreatorUserID          string `json:"creatorUserID"`
				GroupType              int    `json:"groupType"`
				NeedVerification       int    `json:"needVerification"`
				LookMemberInfo         int    `json:"lookMemberInfo"`
				ApplyMemberFriend      int    `json:"applyMemberFriend"`
				NotificationUpdateTime int    `json:"notificationUpdateTime"`
				NotificationUserID     string `json:"notificationUserID"`
			} `json:"groupInfo"`
			HandleResult  int    `json:"handleResult"`
			ReqMsg        string `json:"reqMsg"`
			HandleMsg     string `json:"handleMsg"`
			ReqTime       int64  `json:"reqTime"`
			HandleUserID  string `json:"handleUserID"`
			HandleTime    int    `json:"handleTime"`
			Ex            string `json:"ex"`
			JoinSource    int    `json:"joinSource"`
			InviterUserID string `json:"inviterUserID"`
		} `json:"groupRequests"`
	} `json:"data"`
}

type Resp_get_users

type Resp_get_users struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Total int `json:"total"`
		Users []struct {
			UserID           string `json:"userID"`
			Nickname         string `json:"nickname"`
			FaceURL          string `json:"faceURL"`
			Ex               string `json:"ex"`
			CreateTime       int64  `json:"createTime"`
			AppMangerLevel   int    `json:"appMangerLevel"`
			GlobalRecvMsgOpt int    `json:"globalRecvMsgOpt"`
		} `json:"users"`
	} `json:"data"`
}

type Resp_get_users_info

type Resp_get_users_info struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		UsersInfo []struct {
			UserID           string `json:"userID"`
			Nickname         string `json:"nickname"`
			FaceURL          string `json:"faceURL"`
			Ex               string `json:"ex"`
			CreateTime       int64  `json:"createTime"`
			AppMangerLevel   int    `json:"appMangerLevel"`
			GlobalRecvMsgOpt int    `json:"globalRecvMsgOpt"`
		} `json:"usersInfo"`
	} `json:"data"`
}

type Resp_get_users_online_status

type Resp_get_users_online_status struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    []struct {
		UserID               string `json:"userID"`
		Status               string `json:"status"`
		DetailPlatformStatus []struct {
			Platform     string `json:"platform"`
			Status       string `json:"status"`
			ConnID       string `json:"connID"`
			IsBackground bool   `json:"isBackground"`
			Token        string `json:"token"`
		} `json:"detailPlatformStatus"`
	} `json:"data"`
}

type Resp_get_users_online_token_detail

type Resp_get_users_online_token_detail struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    []struct {
		UserID              string `json:"userID"`
		Status              string `json:"status"`
		SinglePlatformToken []struct {
			Platform string   `json:"platform"`
			Total    int      `json:"total"`
			Token    []string `json:"token"`
		} `json:"singlePlatformToken"`
	} `json:"data"`
}

type Resp_group_application_response

type Resp_group_application_response struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_import_friend

type Resp_import_friend struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_invite_user_to_group

type Resp_invite_user_to_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_is_friend

type Resp_is_friend struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		InUser1Friends bool `json:"inUser1Friends"`
		InUser2Friends bool `json:"inUser2Friends"`
	} `json:"data"`
}

type Resp_join_group

type Resp_join_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_kick_group

type Resp_kick_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_mute_group

type Resp_mute_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_mute_group_member

type Resp_mute_group_member struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_quit_group

type Resp_quit_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_remove_black

type Resp_remove_black struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_revoke_msg

type Resp_revoke_msg struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_send_msg

type Resp_send_msg struct {
	ErrCode     int    `json:"errCode"`
	ErrMsg      string `json:"errMsg"`
	ErrDlt      string `json:"errDlt"`
	Data        any    `json:"data"`
	ServerMsgID string `json:"serverMsgID"`
	ClientMsgID string `json:"clientMsgID"`
	SendTime    int    `json:"sendTime"`
}

type Resp_set_friend_remark

type Resp_set_friend_remark struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_set_global_msg_recv_opt

type Resp_set_global_msg_recv_opt struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_set_group_info

type Resp_set_group_info struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_set_group_member_info

type Resp_set_group_member_info struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_subscribe_users_status

type Resp_subscribe_users_status struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		StatusList []struct {
			UserID      string `json:"userID"`
			Status      int    `json:"status"`
			PlatformIDs []int  `json:"platformIDs"`
		} `json:"statusList"`
	} `json:"data"`
}

type Resp_transfer_group

type Resp_transfer_group struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_update_user_info

type Resp_update_user_info struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_user_clear_all_msg

type Resp_user_clear_all_msg struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_user_register

type Resp_user_register struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Resp_user_token

type Resp_user_token struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
	Data    struct {
		Token             string `json:"token"`
		ExpireTimeSeconds int    `json:"expireTimeSeconds"`
	} `json:"data"`
}

type Userinfo

type Userinfo struct {
	UserID   string `json:"userID"`
	Nickname string `json:"nickname"`
	FaceURL  string `json:"faceURL"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL