repositories

package
v0.0.0-...-df20c28 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerRepository

type ServerRepository interface {
	Create(ctx context.Context, db *gorm.DB, serverPO *po.Server) error
	Delete(ctx context.Context, db *gorm.DB, id uint64) error
	Update(ctx context.Context, db *gorm.DB, serverPO *po.Server) error
	FindByID(ctx context.Context, db *gorm.DB, id uint64) (*po.Server, error)
	FindByPage(ctx context.Context, db *gorm.DB, pageNum int, pageSize int) ([]*po.Server, int, error)
}

func NewServerRepository

func NewServerRepository() ServerRepository

Jump to

Keyboard shortcuts

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