repository

package
v0.0.0-...-02de94c Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EducationMaterialRepo

type EducationMaterialRepo struct{}

func NewEducationMaterialRepo

func NewEducationMaterialRepo() *EducationMaterialRepo

func (*EducationMaterialRepo) DeleteEducationMaterial

func (r *EducationMaterialRepo) DeleteEducationMaterial(ctx context.Context, db *sqlx.DB, id string) error

func (*EducationMaterialRepo) GetEducationMaterial

func (r *EducationMaterialRepo) GetEducationMaterial(
	ctx context.Context,
	db *sqlx.DB,
	id string,
) (*models.EducationMaterial, error)

func (*EducationMaterialRepo) SaveEducationMaterial

func (r *EducationMaterialRepo) SaveEducationMaterial(
	ctx context.Context,
	db *sqlx.DB,
	data []*models.EducationMaterial,
) error

func (*EducationMaterialRepo) UpdateEducationMaterial

func (r *EducationMaterialRepo) UpdateEducationMaterial(
	ctx context.Context,
	db *sqlx.DB,
	edMaterial *models.EducationMaterial,
) error

type TaskRepo

type TaskRepo struct{}

func NewTaskRepo

func NewTaskRepo() *TaskRepo

func (*TaskRepo) DeleteTask

func (r *TaskRepo) DeleteTask(ctx context.Context, db *sqlx.DB, id string) error

func (*TaskRepo) GetTask

func (r *TaskRepo) GetTask(ctx context.Context, db *sqlx.DB, id string) (*models.Task, error)

func (*TaskRepo) GetTaskWithMaterials

func (r *TaskRepo) GetTaskWithMaterials(ctx context.Context, db *sqlx.DB, id string) (*models.TaskWithMaterials, error)

func (*TaskRepo) ListTask

func (r *TaskRepo) ListTask(ctx context.Context, db *sqlx.DB) ([]*models.Task, error)

func (*TaskRepo) SaveTask

func (r *TaskRepo) SaveTask(ctx context.Context, db *sqlx.DB, task *models.Task) error

func (*TaskRepo) UpdateTask

func (r *TaskRepo) UpdateTask(ctx context.Context, db *sqlx.DB, task *models.Task) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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