interfaces

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICoursRepository

type ICoursRepository interface {
	CreateCours(cours models.CoursModel) error
	UpdateCours(cours models.CoursModel) error
	GetCours(userID string) (*models.CoursModel, error)
}

type ICoursService

type ICoursService interface {
	AddCours(userID string, value uint) (*models.CoursModel, error)
	GetCours(userID string) (*models.CoursModel, error)
	RemoveCours(userID string, value uint) (*models.CoursModel, error)
}

type IKarmaRepository

type IKarmaRepository interface {
	CreateKarma(karma models.Karma) error
	UpdateKarma(karma models.Karma) error
	GetKarma(userID, guildID string) (*models.Karma, error)
}

type IKarmaService

type IKarmaService interface {
	CreateKarma(karma models.Karma) error
	UpdateKarma(karma models.Karma) error
	GetKarma(userID, guildID string) (*models.Karma, error)
	AddKarma(userID, guildID string, amount uint) (*models.Karma, error)
}

Jump to

Keyboard shortcuts

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