model

package
v0.0.0-...-59da782 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DesignationRoom = 1
	AutoRoom        = 0
)

Variables

This section is empty.

Functions

func AccumulateInviteInfos

func AccumulateInviteInfos(appId, token string, page, size int64) (interface{}, error)

客户端获取邀请信息

func ActiveAd

func ActiveAd(id string, isActive int) error

func AddFriend

func AddFriend(appId, userID, friendID, remark, reason, sourceId string, sourceType int, answer string) (int, error)

添加好友 sourceType 1 【通过搜索添加】 2 【通过扫一扫添加】 3 通过好友分享(uid) 4通过群

func AddFriendNotConfirm

func AddFriendNotConfirm(appId, userID, friendID, remark, reason, sourceId string, sourceType int, answer string) (int, error)

添加好友 sourceType 1 【通过搜索添加】 2 【通过扫一扫添加】 3 通过好友分享(uid) 4通过群

func AdminAccount

func AdminAccount(id string) (string, error)

管理员账号

func AdminLogin

func AdminLogin(appId, id, password string) (string, error)

管理员登录

func AdminOperateLog

func AdminOperateLog(appId, query string, cTypes []int, page, count int) (interface{}, error)

func AdminRoomsCount

func AdminRoomsCount(appId string) (interface{}, error)

群管理 群数量统计

func AdminRoomsList

func AdminRoomsList(appId string, cTypes []int, query string, page, count int64) (interface{}, error)

群管理 群详情列表

func AdminSetPermission

func AdminSetPermission(roomId string, canAddFriend, joinPermission, recordPermission int) error

func AdminUsersCount

func AdminUsersCount(appId string) (interface{}, error)

用户管理 数量统计

func AdminUsersList

func AdminUsersList(appId string, cTypes []int, query string, page, count int64) (interface{}, error)

用户管理 用户详情列表

func Advertisement(appId string) (interface{}, error)

客户端获取开屏广告

func AppOpen

func AppOpen(userId, appId, device, version string) error

应用埋点

func AppSpecificVersionAsPlatform

func AppSpecificVersionAsPlatform(appId, version string, startTime, endTime int64) (interface{}, error)

单个版本明细 根据平台

func AppSpecificVersionDetails

func AppSpecificVersionDetails(appId, version string, startTime, endTime int64, count, page int) (interface{}, error)

单个版本明细

func AppVersionDetails

func AppVersionDetails(appId string, startTime, endTime int64, count, currentPage int, sortField string, sortRule int) (interface{}, error)

func ApplyFriendInfo

func ApplyFriendInfo(userId, friendId string) (*types.ApplyInfo, error)

func ApplyRoomInfo

func ApplyRoomInfo(roomId string) (*types.ApplyInfo, error)

func Balance

func Balance(appId, token string) (interface{}, error)

func BanRoom

func BanRoom(appId, admin, id, reason string, endTime int64) error

群管理 封禁群

func BanRoomCancel

func BanRoomCancel(appId, admin, id string) error

群管理 解封群

func BanUser

func BanUser(appId, admin, id, reason string, endTime int64) error

用户管理 封用户

func BanUserCancel

func BanUserCancel(appId, admin, id string) error

用户管理 解封用户

func BatchPushAckMsg

func BatchPushAckMsg(client *router.Client, begin, end, total int64)

确认消息批量发送

func BatchPushRecentMsg

func BatchPushRecentMsg(client *router.Client, time int64)

批量推送断开连接后的最近消息

func BatchRevokeFiles

func BatchRevokeFiles(userId string, logs []string, cType int) (interface{}, error)

批量撤回文件消息

func BatchSKeyMsg

func BatchSKeyMsg(client *router.Client, datetime int64)

批量发送群会话秘钥

func BlockFriend

func BlockFriend(userId, friendId string) error

加入黑名单

func BlockedFriends

func BlockedFriends(userId string) (interface{}, error)

黑名单列表

func CheckAnswer

func CheckAnswer(friendId string, answer string) (bool, error)

验证答案是否正确

func CheckIsBlocked

func CheckIsBlocked(userId, friendId string) (bool, error)

是否被拉入黑名单:true被拉入 false没被拉入

func CheckMemberMuted

func CheckMemberMuted(roomId, userId string) (bool, error)

检查用户在指定群中是否被禁言

func CheckOrder

func CheckOrder(serverUrl, userUid, targetUid, orderId string) bool

查询otc交易关系

func CheckPayPwd

func CheckPayPwd(accountType, token, payPassword string) error

func CheckRoomVerifyState

func CheckRoomVerifyState(userId, roomId string) (int, error)

检查是否已经认证

func CheckUserExist

func CheckUserExist(userId string) bool

func CheckUserInRoom

func CheckUserInRoom(userId, roomId string) (bool, error)

func CheckUserVerifyState

func CheckUserVerifyState(userId string) (int, error)

检查是否已经认证

func ClearlySearch

func ClearlySearch(appId, caller, searchId string) (interface{}, error)

func CoinSupport

func CoinSupport(appId string) (interface{}, error)

func Confirm

func Confirm(userID string, tp int) error

是否需要验证

func ConverFriendSource

func ConverFriendSource(source string, userId, applyUserId string) (string, error)

组装消息 applyUserId发起申请人的id

func ConverFriendSourceV2

func ConverFriendSourceV2(source string, applyUserId string) (interface{}, error)

组装消息 applyUserId发起申请人的id

func ConvertCreateRoomsOutOfLimit

func ConvertCreateRoomsOutOfLimit(number int) string

func ConvertInviteAlertContent

func ConvertInviteAlertContent(roomId, operater string, users []string) ([]string, string, string)

返回,content 和 用户名称的列表

func ConvertRedPackInfoToSend

func ConvertRedPackInfoToSend(callerId string, con map[string]interface{}) error

func ConvertRoomClosedAlertStr

func ConvertRoomClosedAlertStr(appId string, endTime int64) string

func ConvertRoomMembersLimit

func ConvertRoomMembersLimit(number int) string

func ConvertSourece

func ConvertSourece(sourceType int, sourceId string) string

将sourceType sourceId 封装成json 格式

func ConvertUserClosedAlertStr

func ConvertUserClosedAlertStr(appId string, endTime int64) string

组消息体

func CreateAd

func CreateAd(appId, name, url string, duration int, link string, isActive int) (interface{}, error)

-------------------开屏广告------------------//

func CreateAdFile

func CreateAdFile(filename string, file *multipart.File) (string, error)

创建文件,返回文件路径

func CreateRoom

func CreateRoom(appId, creator, roomName, roomAvatar string, encrypt, canAddFriend, joinPermission, recordPermission, adminMuted, masterMuted int, members []string) (interface{}, error)

encrypt: 1加密群,2普通群

func DeleteAd

func DeleteAd(id string) error

func DeleteFriend

func DeleteFriend(userID, friendID string) error

删除好友

func DevTokenLogin

func DevTokenLogin(appId, phone, token, deviceType, deviceName, loginType, uuid, version string, apiTokenAuth bool) (map[string]interface{}, error)

新版token登入使用

func EditReward

func EditReward(appId string, params *account.EditRewardParam) error

func ExportAppSpecificVersionDetails

func ExportAppSpecificVersionDetails(appId, version string, startTime, endTime int64) (string, error)

导出单个版本明细

func ExportAppVersionDetails

func ExportAppVersionDetails(appId string, startTime, endTime int64, sortField string, sortRule int) (string, error)

导出版本统计明细

func ExportSumDetails

func ExportSumDetails(appId string, startTime, endTime int64) (string, error)

导出统计数据 详情

func FindCatLog

func FindCatLog(appId, userID, friendID string, startId string, number int) (interface{}, error)

获取好友消息记录

func FindExcel

func FindExcel(filename string) (bool, error)

func FindTypicalChatLog

func FindTypicalChatLog(userID, friendID, owner, query string, startId string, number int, queryType []string) (interface{}, error)

获取好友的特定消息记录

func FindUserConf

func FindUserConf(appId, userId string) (map[string]interface{}, error)

查看用户配置

func FormatBatchTargetMsg

func FormatBatchTargetMsg(batchList []*BatchSingle, eventType int) []byte

func ForwardEncryptMsg

func ForwardEncryptMsg(callerId string, forwardType int, roomLogs, usersLogs []map[string]interface{}) (interface{}, error)

转发消息(加密)

func ForwardMsg

func ForwardMsg(callerId, sourceId string, channelType, forwardType int, logArray, targetRooms, targetUsers []string) (interface{}, error)

转发消息

func FriendInfo

func FriendInfo(userID, friendID string) (interface{}, error)

查看好友详情

func FriendList

func FriendList(userID string, tp int, time int64) (interface{}, error)

好友列表

func FriendRemarkOrName

func FriendRemarkOrName(userId, friendId string) (string, error)

func GetAddFriendConfByUserId

func GetAddFriendConfByUserId(userId string) (*types.AddFriendConf, error)

查找加好友配置

func GetAlertMsg

func GetAlertMsg(info *types.LastLoginInfo) string

多端登录提示信息

func GetAlertMsgV2

func GetAlertMsgV2(info *types.LastLoginInfo) string

多端登录提示信息v2

func GetAllAd

func GetAllAd(appId string) (interface{}, error)

func GetAllFriendUnreadMsg1

func GetAllFriendUnreadMsg1(userId string) (interface{}, error)

获取所有好友未读消息统计

func GetAppVersions

func GetAppVersions(appId string) (interface{}, error)

----------------版本数据--------------//

func GetApplyInfoByLogId

func GetApplyInfoByLogId(caller string, logId int64) (*types.ApplyList, error)

func GetApplyList

func GetApplyList(caller, id string, number int) (interface{}, error)

func GetChatLogAsRoom

func GetChatLogAsRoom(userId string, ru *types.RoomLogJoinUser) (*types.ChatLog, error)

func GetChatLogAsUser

func GetChatLogAsUser(userId string, pu *types.PrivateLogJoinUser) (*types.ChatLog, error)

func GetCoinInfo

func GetCoinInfo(appId string) (interface{}, error)

获取代币信息

func GetFriendSource

func GetFriendSource(userId, friendId string) (string, error)

获取来源

func GetFriendSourceV2

func GetFriendSourceV2(userId, friendId string) (interface{}, error)

获取来源

func GetLastDeviceLoginInfo

func GetLastDeviceLoginInfo(userId, device string) (*types.LastLoginInfo, bool)

-------------------------------new end----------------------------// 返回:true 通过 false 不通过

func GetLimit

func GetLimit(appId string) (interface{}, error)

群管理 获取上限

func GetOnlineNumber

func GetOnlineNumber(roomId string) int

根据群号获取在线人数

func GetPacketRecvDetails

func GetPacketRecvDetails(appId, caller, packetId string) ([]*types.RPReceiveInfo, error)

红包接收详情详情

func GetRecommendRooms

func GetRecommendRooms(appId string, number int, times int) (interface{}, error)

获取推荐群

func GetRoomChatLog

func GetRoomChatLog(callerId, roomId, startId string, number int) (interface{}, error)

func GetRoomInfo

func GetRoomInfo(queryUser, roomId string) (interface{}, error)

获取群信息

func GetRoomList

func GetRoomList(queryUser string, Type int) (interface{}, error)

func GetRoomOnlineNumber

func GetRoomOnlineNumber(roomId string) (interface{}, error)

func GetRoomSearchMember

func GetRoomSearchMember(roomId, name string) (interface{}, error)

func GetRoomUserInfo

func GetRoomUserInfo(roomId, userId string) (interface{}, error)

func GetRoomUserList

func GetRoomUserList(roomId string) (interface{}, error)

func GetSystemMsg

func GetSystemMsg(roomId string, startId int64, number int) (interface{}, error)

获取群公告

func GetTypicalMsgLogs

func GetTypicalMsgLogs(callerId, roomId, startId, owner, query string, number int, queryType []string) (interface{}, error)

获取指定消息类型的聊天记录

func HandleFriendRequest

func HandleFriendRequest(userID, friendID string, agree int) error

处理好友请求

func Init

func Init(c *types.Config)

func InsertPacketInfo

func InsertPacketInfo(packetID, userID, toID string, toType, size int, amount float64, remark string, cType, coin int, time int64) error

func InviteStatistics

func InviteStatistics(appId, token string) (interface{}, error)

客户端获取邀请统计信息

func IsFriend

func IsFriend(userID, friendID string) (map[string]bool, error)

func JoinInRoom

func JoinInRoom(userId, roomId string)

加入群

func JoinInRoomImiditly

func JoinInRoomImiditly(tx types.Tx, caller, userId string, roomInfo *types.Room, source string) (bool, error)

bool:是否成功修改 error:错误

func JoinRoomApply

func JoinRoomApply(appId, operator, roomId, applyReason string, sourceType int, sourceId string) (bool, error)

返回: bool 是否直接加群成功

func JoinRoomApprove

func JoinRoomApprove(appId, operator, roomId, userId string, aggre int) error

已经入群:如果已经入群,修改入群请求为接受状态。如果管理员点击的是拒绝则返回已经入群错误;如果点击的是同意则成功。

func JoinRoomInvite

func JoinRoomInvite(appId, operator, roomId string, users []string) (interface{}, error)

返回state

func KickOutRoom

func KickOutRoom(caller, roomId string, userId string) error

func LatestData

func LatestData(appId string) (interface{}, error)

---------------------统计数据---------------------// 近期统计数据

func LatestDataPlatform

func LatestDataPlatform(appId string) (interface{}, error)

近期统计数据 根据平台分

func LeaderBoard

func LeaderBoard(userId string, tp int, startTime, endTime int64, startId, number int) (interface{}, error)

func LeaderBoardHistory

func LeaderBoardHistory(userId string, page, size int) (interface{}, error)

func LoginOutRoom

func LoginOutRoom(operator, roomId string) error

func ModuleEnable

func ModuleEnable(appId, userId string) (interface{}, error)

func Payment

func Payment(appId, userId, logId, token, currency string, amount, fee float64, opp_address, rid, mode, payword, code string) (interface{}, error)

func PersonalVerifyList

func PersonalVerifyList(appId string, search *string, page, size int, state *int) (int64, []*types.VerifyApplyJoinUser, error)

func PhoneLogin

func PhoneLogin(appId, phone, deviceType, version string) (map[string]interface{}, error)

func PraiseDetailList

func PraiseDetailList(caller string, channelType int, logId, startId string, number int) (interface{}, error)

func PraiseDetails

func PraiseDetails(caller string, channelType int, logId string) (interface{}, error)

func PraiseLike

func PraiseLike(caller string, channelType int, logId, action string) error

func PraiseList

func PraiseList(caller string, channelType int, targetId, startId string, number int) (interface{}, error)

func PraiseReward

func PraiseReward(caller, appId, token, currency string, amount float64, payPassword string, channelType int, logId string) error

func PraiseRewardUser

func PraiseRewardUser(caller, appId, token, currency string, amount float64, payPassword string, targetId string) error

func PushToFriend

func PushToFriend(appId, userId, friendId, text string, msg *proto.Proto) error

func PushToMember

func PushToMember(appId, userId, roomId string, members map[string]string, msg *proto.Proto) error

func PushToRoom

func PushToRoom(appId, userId, roomId string, msg *proto.Proto) error

func Question

func Question(userID string, tp int, question, answer string) error

tp = 0 修改问题答案 需要同时传入问题答案 tp = 1 设置需要回答问题 需要同时传入问题答案 tp = 2 设置不需要回答问题

func RPFeeConfig

func RPFeeConfig(appId string) (interface{}, error)

红包手续费配置信息

func RPFeeStatistics

func RPFeeStatistics(appId string) (interface{}, error)

设置红包手续费

func RPStatistic

func RPStatistic(appId, caller, token string, operation, coin, rpType, pageNum, pageSize int, startTime, endTime int64) (interface{}, error)

获取红包统计信息

func ReadSnapMsg

func ReadSnapMsg(userId, logId string, cType int) error

焚毁指定的一条消息

func ReceiveEntry

func ReceiveEntry(appId, token, packetId, userId string) (interface{}, error)

领取红包

func RedEnvelopeDetail

func RedEnvelopeDetail(appId, caller, token string, packetId string) (*types.RedPacketInfo, error)

获取红包详情

func RefreshRooms

func RefreshRooms()

func RemoveRoom

func RemoveRoom(operator, roomId string) error

func RemoveRoomChannel

func RemoveRoomChannel(roomId string)

func RevokeMsg

func RevokeMsg(userId, logId string, cType int) error

撤回指定的一条消息

func RewardList

func RewardList(appId string, query *account.RewardListParam) (interface{}, error)

func RewardRule

func RewardRule(appId string) (interface{}, error)

func RewardStatistics

func RewardStatistics(appId string) (interface{}, error)

func RoomMemberUnSubscribe

func RoomMemberUnSubscribe(roomId string, members []string)

func RoomSessionKey

func RoomSessionKey(userId string, datetime int64) (interface{}, error)

获取群会话秘钥

func RoomVerifyList

func RoomVerifyList(appId string, search *string, page, size int, state *int) (int64, []*types.VerifyApplyJoinRoomAndUser, error)

func SaveDaily

func SaveDaily()

func Send

func Send(appId, token string, req *types.SendParams, userId, toId string, ctype int) (*types.RedPacket, error)

发送红包

func SendAlert

func SendAlert(caller, targetId string, target int, members []string, messageType int, content map[string]interface{})

func SendAlertCreate

func SendAlertCreate(caller, targetId string, target int, members []string, messageType int, content map[string]interface{}, msgTime int64) (*proto.Proto, error)

组成消息通知格式: caller:调用的即协议中的发送者 target:发送对象类型,3 to user; 2 to room targetId:发送对象id members: 如果target为群,则改字段为nil;如果target为用户,则members不为空 messageType:消息通知类型,详见

func SendBatch

func SendBatch(fromId, targetId string, target int, members []string, list []*proto.Proto)

func SendPrintScreen

func SendPrintScreen(userID, friendID string) error

func SetAdName

func SetAdName(id, name string) error

func SetCfg

func SetCfg(c *types.Config)

func SetFriendDND

func SetFriendDND(userID, friendID string, DND int) error

设置好友免打扰

func SetFriendExtRemark

func SetFriendExtRemark(userID, friendID, remark string) error

修改详细备注

func SetFriendRemark

func SetFriendRemark(userID, friendID, remark string) error

修改备注

func SetFriendTop

func SetFriendTop(userID, friendID string, top int) error

设置好友置顶

func SetInviteConfirm

func SetInviteConfirm(userId string, needConfirm int) error

设置入群邀请确认

func SetLevel

func SetLevel(master, userId, roomId string, level int) error

func SetLimit

func SetLimit(appId string, memberLimit, roomCreateLimit int) error

群管理 设置上限

func SetMemberNickname

func SetMemberNickname(caller, roomId string, nickname string) error

func SetNoDisturbing

func SetNoDisturbing(caller, roomId string, noDisturbing int) error

func SetPayPwd

func SetPayPwd(accountType, token, mode, payPassword, authType, code, oldPayPassword string) error

---------------------------------------------------------------------------------------//

func SetRPFeeConfig

func SetRPFeeConfig(appId string, params *account.SetRPFeeParam) error

设置红包手续费

func SetRecommend

func SetRecommend(appId, id string, recommend int) error

func SetRoomAvatar

func SetRoomAvatar(roomId, avatar string) error

func SetRoomMuted

func SetRoomMuted(operator, roomId string, mutedType int, userMap map[string]bool, deadline int64) error

设置成员禁言

func SetRoomMutedSingle

func SetRoomMutedSingle(operator, roomId, userId string, deadline int64) error

func SetRoomName

func SetRoomName(operator, roomId, name string) error

func SetStickyOnTop

func SetStickyOnTop(caller, roomId string, onTop int) error

func SetSystemMsg

func SetSystemMsg(caller, roomId, content string) error

发布群公告

func ShowReward

func ShowReward(appId string) (interface{}, error)

func SingleInviteInfos

func SingleInviteInfos(appId, token string, page, size int64) (interface{}, error)

客户端获取邀请信息

func SplitDay

func SplitDay(startTime, endTime int64) []*dayTs

func StartServe

func StartServe()

func SumDetails

func SumDetails(appId string, startTime, endTime int64, count, page int) (interface{}, error)

统计数据 详情

func SumGraph

func SumGraph(appId string, startTime, endTime int64, typeList []int) (interface{}, error)

func TokenLogin

func TokenLogin(appId, token, deviceType, deviceName, loginType, uuid, version string, apiTokenAuth bool) (map[string]interface{}, error)

func UnblockFriend

func UnblockFriend(userId, friendId string) error

移出黑名单

func UserClientNums

func UserClientNums() int

func UserInfo

func UserInfo(friendID string) (map[string]interface{}, error)

func UserIsInRoom

func UserIsInRoom(userId, roomId string) (map[string]bool, error)

判断是否在群内

func UserListByUid

func UserListByUid(userID, appId, uid string) (interface{}, error)

通过uid查询

func UserListByUids

func UserListByUids(userID, appId string, uids []string) (map[string]interface{}, error)

通过[]uid查询

func UserOnlineNums

func UserOnlineNums() int

func VerifyApply

func VerifyApply(appId, token string, tp int, targetId, description, payPassword, code string) (int64, error)

认证申请

func VerifyApprove

func VerifyApprove(appId, id string, accept int) error

func VerifyFeeStatistics

func VerifyFeeStatistics(appId string) (interface{}, error)

func VerifyGetConfig

func VerifyGetConfig(appId string) ([]*types.VerifyFee, error)

func VerifySetFee

func VerifySetFee(fee []*types.VerifyFee) error

func VersionGraph

func VersionGraph(appId string, startTime, endTime int64, typeList []int, versions []string) (interface{}, error)

func WriteExcel

func WriteExcel(path, filename string, content [][]interface{}) (string, error)

Types

type BatchSingle

type BatchSingle struct {
	P        *proto.Proto
	FromId   string
	SendTime int64
}

type IPusher

type IPusher interface {
	// contains filtered or unexported methods
}

type RecommendRoom

type RecommendRoom struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func GetRecommendRoom

func GetRecommendRoom(appId string) *RecommendRoom

func NewRecommendRoom

func NewRecommendRoom() *RecommendRoom

func (*RecommendRoom) AddData

func (t *RecommendRoom) AddData(item *types.Room)

func (*RecommendRoom) Clear

func (t *RecommendRoom) Clear()

func (*RecommendRoom) DelData

func (t *RecommendRoom) DelData(item *types.Room)

func (*RecommendRoom) GetCopyData

func (t *RecommendRoom) GetCopyData() []*types.Room

func (*RecommendRoom) GetCopyDataMem

func (t *RecommendRoom) GetCopyDataMem() []*types.Room

func (*RecommendRoom) GetCopyDataMsg

func (t *RecommendRoom) GetCopyDataMsg() []*types.Room

func (*RecommendRoom) SetData

func (t *RecommendRoom) SetData(data []*types.Room)

func (*RecommendRoom) SetDataMem

func (t *RecommendRoom) SetDataMem(data []*types.Room)

func (*RecommendRoom) SetDataMsg

func (t *RecommendRoom) SetDataMsg(data []*types.Room)

type RoomBaseInfo

type RoomBaseInfo struct {
	Id                 string      `json:"id"`
	MarkId             string      `json:"markId"`
	Name               string      `json:"name"`
	Avatar             string      `json:"avatar"`
	Encrypt            int         `json:"encrypt"`
	CanAddFriend       int         `json:"canAddFriend"`
	JoinPermission     int         `json:"joinPermission"`
	RecordPermission   int         `json:"recordPermission"`
	MemberNumber       int64       `json:"memberNumber"`
	ManagerNumber      int64       `json:"managerNumber"`
	DisableDeadline    int64       `json:"disableDeadline"`
	SystemMsg          interface{} `json:"systemMsg"`
	Identification     int         `json:"identification"`
	IdentificationInfo string      `json:"identificationInfo"`
}

type RoomInfo

type RoomInfo struct {
	*RoomBaseInfo
	OnlineNumber  int             `json:"onlineNumber"`
	NoDisturbing  int             `json:"noDisturbing"`
	OnTop         int             `json:"onTop"`
	MemberLevel   int             `json:"memberLevel"`
	RoomNickname  string          `json:"roomNickname"`
	RoomMutedType int             `json:"roomMutedType"`
	MutedNumber   int64           `json:"mutedNumber"`
	MutedType     int             `json:"mutedType"`
	Deadline      int64           `json:"deadline"`
	Users         []*RoomUserList `json:"users"`
}

type RoomListInfo

type RoomListInfo struct {
	Id                 string `json:"id"`
	MarkId             string `json:"markId"`
	Name               string `json:"name"`
	Avatar             string `json:"avatar"`
	NoDisturbing       int    `json:"noDisturbing"`
	CommonlyUsed       int    `json:"commonlyUsed"`
	OnTop              int    `json:"onTop"`
	Encrypt            int    `json:"encrypt"`
	DisableDeadline    int64  `json:"disableDeadline"`
	Identification     int    `json:"identification"`
	IdentificationInfo string `json:"identificationInfo"`
}

type RoomUserList

type RoomUserList struct {
	Id                 string      `json:"id"`
	Nickname           string      `json:"nickname"`
	PublicKey          string      `json:"publicKey"`
	RoomNickname       string      `json:"roomNickname"`
	Avatar             string      `json:"avatar"`
	MemberLevel        int         `json:"memberLevel"`
	RoomMutedType      int         `json:"roomMutedType"`
	MutedType          int         `json:"mutedType"`
	Source             string      `json:"source"`
	Source2            interface{} `json:"source2"`
	Deadline           int64       `json:"deadline"`
	Identification     int         `json:"identification"`
	IdentificationInfo string      `json:"identificationInfo"`
}

type SearchInfo

type SearchInfo struct {
	Type     int         `json:"type"`
	RoomInfo interface{} `json:"roomInfo"`
	UserInfo interface{} `json:"userInfo"`
}

type Source

type Source struct {
	SourceType int    `json:"sourceType"`
	SourceId   string `json:"sourceId"`
}

type SystemMessage

type SystemMessage struct {
	Id         string `json:"logId"`
	SenderName string `json:"senderName"`
	Content    string `json:"content"`
	Datetime   int64  `json:"datetime"`
}

Jump to

Keyboard shortcuts

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