Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2023 Changes in this version + var DB *gorm.DB + var SF *utils.Snowflake + func Convert(message *Message, tempMessage *MiddleMessage) (err error) + func Init() + type DBAction struct + DB *gorm.DB + func NewDBAction() *DBAction + func (d *DBAction) InsertMessage(message *Message) error + type Message struct + Content string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + FromUserId int64 + Id int64 + ToUserId int64 + UpdatedAt time.Time + func GetMessageList(ctx context.Context, to_user_id int64, from_user_id int64) ([]*Message, error) + type MessageArray []*Message + func (array MessageArray) Len() int + func (array MessageArray) Less(i, j int) bool + func (array MessageArray) Swap(i, j int) + type MessageBuild struct + MessageElem *Message + MessageList []*chat.Message + type MiddleMessage struct + Content string + CreatedAt string + FromUserId int64 + Id int64 + IsReadNum []int64 + ToUserId int64