74 lines
1.2 KiB
Go
74 lines
1.2 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
type MessageRow struct {
|
|
ID int64
|
|
ConversationID int64
|
|
SenderID int64
|
|
ReceiverID int64
|
|
GroupID int64
|
|
ClientMsgID string
|
|
MessageType int16
|
|
Content []byte
|
|
Status int
|
|
CreatedAt time.Time
|
|
ChatType string
|
|
}
|
|
|
|
type ConversationRow struct {
|
|
ID int64
|
|
Type int
|
|
LastMsgID int64
|
|
LastMsgAt time.Time
|
|
UserSmall int64
|
|
UserBig int64
|
|
GroupID int64
|
|
GroupName string
|
|
}
|
|
|
|
type GroupRow struct {
|
|
ID int64
|
|
ConversationID int64
|
|
Name string
|
|
Avatar string
|
|
OwnerID int64
|
|
MutedAll int
|
|
MemberCount int
|
|
Status int
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type GroupMemberRow struct {
|
|
UserID int64
|
|
Role int
|
|
Nickname string
|
|
Email string
|
|
UNick string
|
|
}
|
|
|
|
type UserRow struct {
|
|
ID int64
|
|
SparkID string
|
|
Nickname string
|
|
Avatar string
|
|
Status int
|
|
LastActiveAt *time.Time
|
|
CreatedAt time.Time
|
|
Email string
|
|
DeviceID uint64
|
|
Platform string
|
|
}
|
|
|
|
type ComplaintRow struct {
|
|
ID int64
|
|
UserID int64
|
|
TargetID int64
|
|
Reason int
|
|
Detail string
|
|
CreatedAt time.Time
|
|
Email string
|
|
TargetMail string
|
|
}
|