mongodb

package
v0.0.0-...-6eddc5e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RECORD_COLLECTION = "records"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RecordRepository

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

func NewRecordRepository

func NewRecordRepository(db *mongo.Database) *RecordRepository

func (*RecordRepository) Create

func (r *RecordRepository) Create(record models.Record) (*models.Record, error)

func (*RecordRepository) FindByUserIdAndId

func (r *RecordRepository) FindByUserIdAndId(userId, id string) (*models.Record, error)

func (*RecordRepository) FindByUserIdAndPetId

func (r *RecordRepository) FindByUserIdAndPetId(userId string, petId string) ([]models.Record, error)

Jump to

Keyboard shortcuts

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