repo

package
v0.0.0-...-b70bbfa Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

Repo репозиторий организаций.

func New

func New(pg storage.SQLDatabase) *Repo

New создает новый Repo.

func (*Repo) InsertOne

func (r *Repo) InsertOne(ctx context.Context, params model.OrganizationDao) (int64, error)

InsertOne вставляет новую организацию.

func (*Repo) ListForUser

func (r *Repo) ListForUser(ctx context.Context, username string) ([]model.OrganizationDao, error)

ListForUser находит список организаций по username.

func (*Repo) UpdateOne

func (r *Repo) UpdateOne(ctx context.Context, params model.OrganizationDao) error

UpdateOne обновить название организации.

Jump to

Keyboard shortcuts

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