message

package
v0.0.0-...-629b230 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMessageByID

func DeleteMessageByID(messageID uint64) error

Types

type Message

type Message struct {
	basic.Model
	Content        string    `json:"content"`
	ReplyMessageID *uint64   `json:"reply_message_id"`
	UserID         *uint64   `json:"-"`
	User           user.User `json:"user"`
}

func GetAllMessages

func GetAllMessages() ([]Message, error)

func GetMessageByID

func GetMessageByID(messageID uint64) (*Message, error)

func SaveToDB

func SaveToDB(content string, replyMessageID *uint64, userID uint64) (*Message, error)

Jump to

Keyboard shortcuts

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