repository

package
v0.0.0-...-7647754 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

TODO: squirrel must be removed?

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemberDTO

type MemberDTO struct {
	ID        uint64
	FirstName string
	LastName  string
	Age       uint8
}

func (*MemberDTO) ToEntity

func (dto *MemberDTO) ToEntity() *entity.Member

type MemberRepo

type MemberRepo struct {
	*postgres.Postgres
}

func NewMemberRepo

func NewMemberRepo(pg *postgres.Postgres) *MemberRepo

func (*MemberRepo) Delete

func (pg *MemberRepo) Delete(ctx context.Context, id *uint64) error

func (*MemberRepo) GetByID

func (pg *MemberRepo) GetByID(ctx context.Context, id uint64) (*entity.Member, error)

func (*MemberRepo) Insert

func (pg *MemberRepo) Insert(ctx context.Context, member *entity.Member) (*uint64, error)

func (*MemberRepo) Update

func (pg *MemberRepo) Update(ctx context.Context, member *entity.Member) error

TODO: ID must be ID > 0

Jump to

Keyboard shortcuts

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