dao

package
v0.0.0-...-35d01cd Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(obj interface{}) error

func CreateWithIgonreConflict

func CreateWithIgonreConflict(obj interface{}) error

func Delete

func Delete(obj interface{}) error

func First

func First(obj interface{}) error

func GetAllTask

func GetAllTask() ([]*model.Task, error)

func GetAuthorList

func GetAuthorList(BotID string) ([]*model.Author, error)

func GetBotList

func GetBotList(UserID uint) ([]*model.Bot, error)

func GetDynamic

func GetDynamic(id uint64) (dynamic model.Dynamic, err error)

func GetDynamicByMid

func GetDynamicByMid(mid string, limit int) (dynamic []model.Dynamic, err error)

func GetDynamicList

func GetDynamicList(AuthorID string) (dynamic []*model.Dynamic, err error)

func GetUserByID

func GetUserByID(id string) (user model.User, err error)

func GetUserByName

func GetUserByName(username string) (user model.User, err error)

func Save

func Save(obj interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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