affiliation

package
v0.0.0-...-4db56dd Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Affiliation

type Affiliation struct {
	ID       int         `db:"id" json:"id"`
	Name     string      `db:"name" json:"name"`
	Website  null.String `db:"website" json:"website"`
	FileName null.String `db:"file_name" json:"file_name"`
}

type Store

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

Store stores the dependencies

func NewAffiliationRepo

func NewAffiliationRepo(db *sqlx.DB) *Store

NewAffiliationRepo stores our dependency

func (*Store) AddAffiliation

func (s *Store) AddAffiliation(ctx context.Context, affiliationParam Affiliation) (Affiliation, error)

func (*Store) DeleteAffiliation

func (s *Store) DeleteAffiliation(ctx context.Context, affiliationParam Affiliation) error

func (*Store) GetAffiliation

func (s *Store) GetAffiliation(ctx context.Context, affiliationParam Affiliation) (Affiliation, error)

func (*Store) GetAffiliations

func (s *Store) GetAffiliations(ctx context.Context) ([]Affiliation, error)

func (*Store) GetAffiliationsMinimal

func (s *Store) GetAffiliationsMinimal(ctx context.Context) ([]Affiliation, error)

Jump to

Keyboard shortcuts

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