dao

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReceivedFile

func AddReceivedFile(receivedFile *model.ReceivedFile) error

func CreateUser

func CreateUser(userID int64) error

func DeleteReceivedFileByFileID

func DeleteReceivedFileByFileID(fileID string) error

func DeleteReceivedFileByFileUniqueID

func DeleteReceivedFileByFileUniqueID(fileUniqueID string) error

func GetReceivedFileByChatAndMessageID

func GetReceivedFileByChatAndMessageID(chatID int64, messageID int) (*model.ReceivedFile, error)

func GetReceivedFileByFileID

func GetReceivedFileByFileID(fileID string) (*model.ReceivedFile, error)

func GetReceivedFileByFileUniqueID

func GetReceivedFileByFileUniqueID(fileUniqueID string) (*model.ReceivedFile, error)

func GetReceivedFilesByMediaGroupID

func GetReceivedFilesByMediaGroupID(mediaGroupID string) ([]model.ReceivedFile, error)

func GetUserByUserID

func GetUserByUserID(userID int64) (*model.User, error)

func Init

func Init()

func UpdateReceivedFile

func UpdateReceivedFile(receivedFile *model.ReceivedFile) error

func UpdateUser

func UpdateUser(user *model.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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