dao

package
v0.87.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 11 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