repository

package
v0.0.0-...-7b59dd9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 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 JwtClaimsRepository

type JwtClaimsRepository interface {
	CreateToken(ctx context.Context, userID uuid.UUID, username string, admin bool, identifier string) string
}

JwtClaimsRepository interface

type RequestLogRepository

type RequestLogRepository interface {
	Create(db *gorm.DB, requestLog model.RequestLog) error
}

AuthorityGroupRepository interface.

type UserRepository

type UserRepository interface {
	GetAll(db *gorm.DB) ([]model.User, error)
	GetAllWithInActive(db *gorm.DB) ([]model.User, error)
	Get(db *gorm.DB, userID uuid.UUID) (model.User, error)
	GetByIDAndEmail(db *gorm.DB, userID uuid.UUID, email string) (model.User, error)
	GetByEmail(db *gorm.DB, email string) (model.User, error)
	Create(db *gorm.DB, user *model.User) error
	Update(db *gorm.DB, user *model.User) error
	InActive(db *gorm.DB, userID uuid.UUID) error
}

UserRepository interface

Jump to

Keyboard shortcuts

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