chat

package
v0.0.0-...-d9311aa Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	Call(serviceMethod string, args *rpc.Args, reply *rpc.Reply) error

	GetAccountManager() *account.Manager
}

type FavoriteGroup

type FavoriteGroup struct {
	GroupCode     int64 `jce:"0" json:",omitempty"`
	Timestamp     int64 `jce:"1" json:",omitempty"`
	SNSFlag       int64 `jce:"2" json:",omitempty"`
	OpenTimestamp int64 `jce:"3" json:",omitempty"`
}

type GetGroupUsersRequest

type GetGroupUsersRequest struct {
	Uin                 int64 `jce:"0" json:"uin"`
	GroupCode           int64 `jce:"1" json:"group_code"`
	NextUin             int64 `jce:"2" json:"next_uin"`
	GroupUin            int64 `jce:"3" json:"group_uin"`
	Version             int64 `jce:"4" json:"version"`
	ReqType             int64 `jce:"5" json:"req_type"`
	GetListAppointTime  int64 `jce:"6" json:"get_list_appoint_time"`
	RichCardNameVersion int8  `jce:"7" json:"rich_card_name_version"`
}

type GetGroupUsersResponse

type GetGroupUsersResponse struct {
	Uin         int64       `jce:"0" json:",omitempty"`
	GroupCode   int64       `jce:"1" json:",omitempty"`
	GroupUin    int64       `jce:"2" json:",omitempty"`
	GroupUsers  []GroupUser `jce:"3" json:",omitempty"`
	NextUin     int64       `jce:"4" json:",omitempty"`
	Result      int32       `jce:"5" json:",omitempty"`
	ErrorCode   int16       `jce:"6" json:",omitempty"`
	OfficeMode  int64       `jce:"7" json:",omitempty"`
	NextGetTime int64       `jce:"8" json:",omitempty"`
}

type GetGroupsRequest

type GetGroupsRequest struct {
	Uin               int64       `jce:"0" json:"uin"`
	GetMSFMessageFlag int8        `jce:"1" json:"get_msf_message_flag"`
	Cookie            []byte      `jce:"2" json:"cookie"`
	Groups            []*GroupSeq `jce:"3" json:"groups"`
	GroupFlagExtra    int8        `jce:"4" json:"group_flag_extra"`
	Version           int32       `jce:"5" json:"version"`
	CompanyID         int64       `jce:"6" json:"company_id"`
	VersionNumber     int64       `jce:"7" json:"version_number"`
	GetLongGroupName  int8        `jce:"8" json:"get_long_group_name"`
}

type GetGroupsResponse

type GetGroupsResponse struct {
	Uin             int64            `jce:"0" json:",omitempty"`
	GroupCount      int16            `jce:"1" json:",omitempty"`
	Result          int32            `jce:"2" json:",omitempty"`
	ErrorCode       int16            `jce:"3" json:",omitempty"`
	Cookie          []byte           `jce:"4" json:",omitempty"`
	Groups          []*Group         `jce:"5" json:",omitempty"`
	GroupsDelete    []*Group         `jce:"6" json:",omitempty"`
	GroupRanks      []*GroupRank     `jce:"7" json:",omitempty"`
	FavouriteGroups []*FavoriteGroup `jce:"8" json:",omitempty"`
	GroupsExtra     []*Group         `jce:"9" json:",omitempty"`
	GroupExtra      []int64          `jce:"10" json:",omitempty"`
}

type Group

type Group struct {
	Uin                   int64  `jce:"0" json:",omitempty"`
	Code                  int64  `jce:"1" json:",omitempty"`
	Flag                  int8   `jce:"2" json:",omitempty"`
	InfoSeq               int64  `jce:"3" json:",omitempty"`
	Name                  string `jce:"4" json:",omitempty"`
	Memo                  string `jce:"5" json:",omitempty"`
	FlagExt               int64  `jce:"6" json:",omitempty"`
	RankSeq               int64  `jce:"7" json:",omitempty"`
	CertificationType     int64  `jce:"8" json:",omitempty"`
	ShutupTimestamp       int64  `jce:"9" json:",omitempty"`
	MyShutupTimestamp     int64  `jce:"10" json:",omitempty"`
	CmdUinUinFlag         int64  `jce:"11" json:",omitempty"`
	AdditionalFlag        int64  `jce:"12" json:",omitempty"`
	TypeFlag              int64  `jce:"13" json:",omitempty"`
	SecType               int64  `jce:"14" json:",omitempty"`
	SecTypeInfo           int64  `jce:"15" json:",omitempty"`
	ClassExt              int64  `jce:"16" json:",omitempty"`
	AppPrivilegeFlag      int64  `jce:"17" json:",omitempty"`
	SubscriptionUin       int64  `jce:"18" json:",omitempty"`
	MemberNum             int64  `jce:"19" json:",omitempty"`
	MemberNumSeq          int64  `jce:"20" json:",omitempty"`
	MemberCardSeq         int64  `jce:"21" json:",omitempty"`
	FlagExt3              int64  `jce:"22" json:",omitempty"`
	OwnerUin              int64  `jce:"23" json:",omitempty"`
	IsConfGroup           bool   `jce:"24" json:",omitempty"`
	IsModifyConfGroupFace bool   `jce:"25" json:",omitempty"`
	IsModifyConfGroupName bool   `jce:"26" json:",omitempty"`
	CmduinJoinTime        int64  `jce:"27" json:",omitempty"`
	CompanyID             int64  `jce:"28" json:",omitempty"`
	MaxMemberNum          int64  `jce:"29" json:",omitempty"`
	CmdUinMask            int64  `jce:"30" json:",omitempty"`
	HLGuildAppid          int64  `jce:"31" json:",omitempty"`
	HLGuildSubType        int64  `jce:"32" json:",omitempty"`
	CmdUinRingtoneID      int64  `jce:"33" json:",omitempty"`
	CmdUinFlagEx2         int64  `jce:"34" json:",omitempty"`
	FlagExt4              int64  `jce:"35" json:",omitempty"`
	AppealDeadline        int64  `jce:"36" json:",omitempty"`
	Flag1                 int64  `jce:"37" json:",omitempty"`
	Remark                []byte `jce:"38" json:",omitempty"`
}

type GroupRank

type GroupRank struct {
	GroupCode            int64        `jce:"0" json:",omitempty"`
	GroupRankSysFlag     int8         `jce:"1" json:",omitempty"`
	GroupRankUserFlag    int8         `jce:"2" json:",omitempty"`
	RankMap              []*LevelRank `jce:"3" json:",omitempty"`
	GroupRankSeq         int64        `jce:"4" json:",omitempty"`
	OwnerName            string       `jce:"5" json:",omitempty"`
	AdminName            string       `jce:"6" json:",omitempty"`
	OfficeMode           int64        `jce:"7" json:",omitempty"`
	GroupRankUserFlagNew int8         `jce:"8" json:",omitempty"`
	RankMapNew           []*LevelRank `jce:"9" json:",omitempty"`
}

type GroupSeq

type GroupSeq struct {
	Code         int64 `jce:"0" json:"code"`
	InfoSeq      int64 `jce:"1" json:"info_seq"`
	FlagExtra    int64 `jce:"2" json:"flag_extra"`
	RankSeq      int64 `jce:"3" json:"rank_seq"`
	InfoExtraSeq int64 `jce:"4" json:"info_extra_seq"`
}

type GroupUser

type GroupUser struct {
	MemberUin              int64          `jce:"0" json:",omitempty"`
	FaceID                 int16          `jce:"1" json:",omitempty"`
	Age                    int8           `jce:"2" json:",omitempty"`
	Gender                 int8           `jce:"3" json:",omitempty"`
	Nick                   string         `jce:"4" json:",omitempty"`
	Status                 int8           `jce:"5" json:",omitempty"`
	ShowName               string         `jce:"6" json:",omitempty"`
	Name                   string         `jce:"8" json:",omitempty"`
	Gender2                int8           `jce:"9" json:",omitempty"`
	Phone                  string         `jce:"10" json:",omitempty"`
	Email                  string         `jce:"11" json:",omitempty"`
	Memo                   string         `jce:"12" json:",omitempty"`
	AutoRemark             string         `jce:"13" json:",omitempty"`
	MemberLevel            int64          `jce:"14" json:",omitempty"`
	JoinTime               int64          `jce:"15" json:",omitempty"`
	LastSpeakTime          int64          `jce:"16" json:",omitempty"`
	CreditLevel            int64          `jce:"17" json:",omitempty"`
	Flag                   int64          `jce:"18" json:",omitempty"`
	FlagExt                int64          `jce:"19" json:",omitempty"`
	Point                  int64          `jce:"20" json:",omitempty"`
	Concerned              int8           `jce:"21" json:",omitempty"`
	Shielded               int8           `jce:"22" json:",omitempty"`
	SpecialTitle           string         `jce:"23" json:",omitempty"`
	SpecialTitleExpireTime int64          `jce:"24" json:",omitempty"`
	Job                    string         `jce:"25" json:",omitempty"`
	ApolloFlag             int8           `jce:"26" json:",omitempty"`
	ApolloTimestamp        int64          `jce:"27" json:",omitempty"`
	GlobalGroupLevel       int64          `jce:"28" json:",omitempty"`
	TitleId                int64          `jce:"29" json:",omitempty"`
	ShutupTimestap         int64          `jce:"30" json:",omitempty"`
	GlobalGroupPoint       int64          `jce:"31" json:",omitempty"`
	QZoneUserInfo          *QZoneUserInfo `jce:"32" json:",omitempty"`
	RichCardNameVer        int8           `jce:"33" json:",omitempty"`
	VipType                int64          `jce:"34" json:",omitempty"`
	VipLevel               int64          `jce:"35" json:",omitempty"`
	BigClubLevel           int64          `jce:"36" json:",omitempty"`
	BigClubFlag            int64          `jce:"37" json:",omitempty"`
	Nameplate              int64          `jce:"38" json:",omitempty"`
	GroupHonor             []byte         `jce:"39" json:",omitempty"`
	Remark                 []byte         `jce:"40" json:",omitempty"`
	RichFlag               int8           `jce:"41" json:",omitempty"`
}

type LevelRank

type LevelRank struct {
	Level int64  `jce:"0" json:",omitempty"`
	Rank  string `jce:"1" json:",omitempty"`
}

type Manager

type Manager struct {
	context.Context
	Daemon
	Store
}

func NewManager

func NewManager(ctx context.Context, daemon Daemon, store Store) *Manager

func (*Manager) GetGroupUsers

func (m *Manager) GetGroupUsers(uin, chatID int64, v ...int64) (*GetGroupUsersResponse, error)

func (*Manager) GetGroupUsersAll

func (m *Manager) GetGroupUsersAll(uin, chatID int64) (err error)

func (*Manager) GetGroups

func (m *Manager) GetGroups(uin int64) (*GetGroupsResponse, error)

type QZoneUserInfo

type QZoneUserInfo struct {
	StarState  int32             `jce:"0" json:",omitempty"`
	ExtendInfo map[string]string `jce:"1" json:",omitempty"`
}

type Store

type Store interface {
	GetChat(chatID int64) (oldChat *penguin.Chat, ok bool)
	SetChat(chatID int64, newChat *penguin.Chat) (oldChat *penguin.Chat, ok bool)

	GetChatUser(chatID, userID int64) (oldUser *penguin.User, ok bool)
	SetChatUser(chatID, userID int64, newUser *penguin.User) (oldUser *penguin.User, ok bool)

	GetChatSeq(accountID, chatID, userID int64) (oldSeq uint32, ok bool)
	GetNextChatSeq(accountID, chatID, userID int64) (seq uint32, ok bool)
	SetChatSeq(accountID, chatID, userID int64, newSeq uint32) (oldSeq uint32, ok bool)
	GetCookie(userID int64) (oldCookie []byte, ok bool)
	SetCookie(userID int64, newCookie []byte) (oldCookie []byte, ok bool)
}

func NewMemStore

func NewMemStore() Store

Jump to

Keyboard shortcuts

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