dao

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	*Mysql
	sqlc.CachedConn
}

Dao dao.

func New

func New(c config.Config) (dao *Dao)

New new a dao and return.

func (*Dao) GetDialog added in v0.86.3

func (d *Dao) GetDialog(ctx context.Context, userId int64, peerType int32, peerId int64) (*dialog.DialogExt, error)

func (*Dao) GetDialogByPeerDialogId added in v0.86.3

func (d *Dao) GetDialogByPeerDialogId(ctx context.Context, userId, peerDialogId int64) (*dialog.DialogExt, error)

func (*Dao) MakeDialog added in v0.86.3

func (d *Dao) MakeDialog(dialogDO *dataobject.DialogsDO) *dialog.DialogExt

Jump to

Keyboard shortcuts

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