bun

package
v0.0.0-...-ddd1a7f Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICDRepository

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

func NewICDRepository

func NewICDRepository(db datastore.OrmDB) *ICDRepository

func (*ICDRepository) CreateRecord

func (r *ICDRepository) CreateRecord(ctx context.Context, in entity.CreateICDRequest) (*entity.ICD, error)

func (*ICDRepository) DeleteRecord

func (r *ICDRepository) DeleteRecord(ctx context.Context, id string) error

func (*ICDRepository) GetRecord

func (r *ICDRepository) GetRecord(ctx context.Context, id string) (*entity.ICD, error)

func (*ICDRepository) HasPrevPage

func (r *ICDRepository) HasPrevPage(ctx context.Context, onFirstPage bool, cursor string) (cursorPrevPage *string, err error)

func (*ICDRepository) ListRecords

func (r *ICDRepository) ListRecords(ctx context.Context, limit int, cursor string) (nextCursor *string, results []entity.ICD, e error)

func (*ICDRepository) UpdateRecord

func (r *ICDRepository) UpdateRecord(ctx context.Context, currentFullCode string, in entity.ICD) (*entity.ICD, error)

Jump to

Keyboard shortcuts

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