dao

package
v0.0.0-...-f746f31 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDao

type BlockDao struct {
	// contains filtered or unexported fields
}

func NewUserDao

func NewUserDao(db *gorm.DB) *BlockDao

func (*BlockDao) AddBlock

func (repo *BlockDao) AddBlock(did, fileName, cid string) error

func (*BlockDao) GetDIDBlockList

func (repo *BlockDao) GetDIDBlockList(query Query) ([]models.Block, error)

GetDIDBlockList .

type Query

type Query struct {
	Limit   uint
	Offset  uint
	BlockID uint
	DID     string
	CID     string
}

Query .

Jump to

Keyboard shortcuts

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