login

package
v0.0.0-...-9e72f66 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

Repository ...

func NewRepository

func NewRepository(xdb *gorm.DB) *Repository

NewRepository ...

func (*Repository) All

func (p *Repository) All(schema string) ([]model.Login, error)

All ...

func (*Repository) Create

func (p *Repository) Create(login *model.Login, schema string) (*model.Login, error)

Create ...

func (*Repository) Delete

func (p *Repository) Delete(id uint, schema string) error

Delete ...

func (*Repository) FindByID

func (p *Repository) FindByID(id uint, schema string) (*model.Login, error)

FindByID ...

func (*Repository) Migrate

func (p *Repository) Migrate(schema string) error

Migrate ...

func (*Repository) Update

func (p *Repository) Update(login *model.Login, schema string) (*model.Login, error)

Update ...

Jump to

Keyboard shortcuts

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