Documentation ¶
Index ¶
Constants ¶
View Source
const ( TSGroup = "group" // 群聊 TSConsult = "consult" // QQ咨询 TSSearch = "search" // 查找 TSFilm = "film" // QQ电影 TSHotTalk = "hottalk" // 热聊 TSVerify = "verify" // 验证消息 TSMultiChat = "multichat" // 多人聊天 TSAppointment = "appointment" // 约会 TSMailList = "maillist" // 通讯录 )
Variables ¶
View Source
var ErrAlreadySignIn = errors.New("already sign in today")
Functions ¶
Types ¶
type QMessage ¶
type QMessage struct { ID int64 `json:"id"` // 时间戳 Time int `json:"time"` SelfID int `json:"self_id"` PostType string `json:"post_type"` // 上报类型 message MessageType string `json:"message_type"` // 消息类型 private SubType string `json:"sub_type"` // 消息子类型 friend,group,group_self,other TempSource string `json:"temp_source"` // 临时会话来源 MessageID int `json:"message_id"` // 消息ID GroupID sql.NullInt64 `json:"group_id"` // 群ID UserID int `json:"user_id"` // 发送者 QQ 号 Message string `json:"message"` // 消息内容 RawMessage string `json:"raw_message"` // 原始消息内容 Font int `json:"font"` // 字体 Reply string `json:"reply"` // 回复 QUser *QUser `json:"q_user"` // User 信息 }
QMessage QQ 聊天记录
type QReply ¶
type QReply struct { ID int64 `json:"id"` QUID int `json:"quid"` Msg string `json:"msg"` // 前缀搜索 Reply string `json:"reply"` }
func SelectQReply ¶
type QSignIn ¶
type QSignIn struct { ID int64 `json:"id"` QUID int `json:"quid"` Day string `json:"day"` CreateAt time.Time `json:"create_at" db:"create_at"` }
func (*QSignIn) GetQSignInByQUID ¶
type QUser ¶
type QUser struct { ID int64 `json:"id"` QUID int `json:"quid"` Nickname string `json:"nickname"` Sex string `json:"sex"` Age int `json:"age"` BindArea sql.NullString `json:"bind_area" db:"bind_area"` // 所在地 Mode sql.NullString `json:"mode"` // 人设模式 Ban bool `json:"ban"` // 被禁 }
QUser QQ User
func GetQUserByQUID ¶
Click to show internal directories.
Click to hide internal directories.