student_repository

package
v0.0.0-...-93f7374 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	model.QueryFilter

	IDs         []int64
	TelegramIDs []int64
}

Query ...

type Repository

type Repository interface {
	Create(ctx context.Context, student *model.Student) error
	GetList(ctx context.Context, filter *Query) ([]*model.Student, error)
	Update(ctx context.Context, telegramID int64, updateStudent *model.UpdateStudent) error
	IsExist(ctx context.Context, telegramChatID int64) (bool, error)
}

Repository ...

func NewRepository

func NewRepository(db db.Client) Repository

NewRepository ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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