repository

package
v0.0.0-...-ac1c009 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryRepository

type CategoryRepository interface {
	Insert(ctx context.Context, category entity.Category) (uint32, error)
	FindBySlugAndUserID(ctx context.Context, slug string, userID uint32) (entity.Category, error)
	FindByUserID(ctx context.Context, userID uint32) ([]entity.Category, error)
	FindByID(ctx context.Context, id uint32) (entity.Category, error)
}

type TaskRepository

type TaskRepository interface {
	Insert(ctx context.Context, task entity.Task) (uint32, error)
	FindByID(ctx context.Context, id uint32) (entity.Task, error)
	FindByUUID(ctx context.Context, uuid string) (entity.Task, error)
	FindByUserID(ctx context.Context, userID uint32) ([]entity.Task, error)
	UpdateDone(ctx context.Context, task entity.Task) error
	DeleteByID(ctx context.Context, taskID uint32) error
}

type UserRepository

type UserRepository interface {
	Insert(ctx context.Context, user entity.User, passEncrypted string) (uint32, error)
	FindByID(ctx context.Context, id uint32) (entity.User, error)
	FindByUUID(ctx context.Context, uuid string) (entity.User, error)
	FindByEmail(ctx context.Context, email string) (entity.User, error)
	GetPassEncryptedByEmail(ctx context.Context, email string) (string, error)
}

Jump to

Keyboard shortcuts

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