repositories

package
v0.0.0-...-01ba91a Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoursRepository

type CoursRepository struct {
	DBConn *mongo.Database
}

func (*CoursRepository) CreateCours

func (c *CoursRepository) CreateCours(cours models.CoursModel) error

func (*CoursRepository) GetCours

func (c *CoursRepository) GetCours(userID string) (*models.CoursModel, error)

func (*CoursRepository) UpdateCours

func (c *CoursRepository) UpdateCours(cours models.CoursModel) error

type KarmaRepository

type KarmaRepository struct {
	DBConn *mongo.Database
}

func (*KarmaRepository) CreateKarma

func (KarmaRepository *KarmaRepository) CreateKarma(karma models.Karma) error

func (*KarmaRepository) GetKarma

func (KarmaRepository *KarmaRepository) GetKarma(userID, guildID string) (*models.Karma, error)

func (*KarmaRepository) UpdateKarma

func (KarmaRepository *KarmaRepository) UpdateKarma(karma models.Karma) error

Jump to

Keyboard shortcuts

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