Versions in this module Expand all Collapse all v1 v1.0.1 Jul 13, 2024 Changes in this version + const ConversationDelete + const EventUpdateSearchMessage + const EventUserDeleteMoment + const EventUserPublishMoment + const EventUserRegister + const FriendApply + const FriendDelete + const FriendSure + const GroupAvatarUpdate + const GroupCreate + const GroupDisband + const GroupMemberAdd + const GroupMemberInviteRequest + const GroupMemberRemove + const GroupMemberScanJoin + const GroupMemberTransferGrouper + const GroupUnableAddDestroyAccount + const GroupUpdate + const OrgEmployeeExit + const OrgOrDeptCreate + const OrgOrDeptEmployeeUpdate + type DB struct + func NewDB(session *dbr.Session) *DB + func (d *DB) InsertTx(m *Model, tx *dbr.Tx) (int64, error) + func (d *DB) QueryAllWait(limit uint64) ([]*Model, error) + func (d *DB) QueryWithID(id int64) (*Model, error) + func (d *DB) UpdateStatus(reason string, status int, versionLock int64, id int64) error + type Event struct + func New(ctx *config.Context) *Event + func (e *Event) Begin(data *et.Data, tx *dbr.Tx) (int64, error) + func (e *Event) Commit(eventID int64) + func (e *Event) EventTimerPush() + func (e *Event) Support(typ int) bool + type Handler func(model *Model) + type Model struct + Data string + Event string + Reason string + Status int + Type int + VersionLock int64