repo

package
v0.0.0-...-d9aeb59 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRepo

type BaseRepo struct {
	Model interface{}
}

func (BaseRepo) Create

func (repo BaseRepo) Create(payload interface{}) (data interface{}, err error)

func (BaseRepo) GetAll

func (repo BaseRepo) GetAll() (interface{}, error)

func (BaseRepo) GetOne

func (repo BaseRepo) GetOne(id uint) (interface{}, error)

func (BaseRepo) Update

func (repo BaseRepo) Update(id uint, payload interface{}) (data interface{}, err error)

Jump to

Keyboard shortcuts

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