Documentation ¶
Index ¶
- type EducationMaterialRepo
- func (r *EducationMaterialRepo) DeleteEducationMaterial(ctx context.Context, db *sqlx.DB, id string) error
- func (r *EducationMaterialRepo) GetEducationMaterial(ctx context.Context, db *sqlx.DB, id string) (*models.EducationMaterial, error)
- func (r *EducationMaterialRepo) SaveEducationMaterial(ctx context.Context, db *sqlx.DB, data []*models.EducationMaterial) error
- func (r *EducationMaterialRepo) UpdateEducationMaterial(ctx context.Context, db *sqlx.DB, edMaterial *models.EducationMaterial) error
- type TaskRepo
- func (r *TaskRepo) DeleteTask(ctx context.Context, db *sqlx.DB, id string) error
- func (r *TaskRepo) GetTask(ctx context.Context, db *sqlx.DB, id string) (*models.Task, error)
- func (r *TaskRepo) GetTaskWithMaterials(ctx context.Context, db *sqlx.DB, id string) (*models.TaskWithMaterials, error)
- func (r *TaskRepo) ListTask(ctx context.Context, db *sqlx.DB) ([]*models.Task, error)
- func (r *TaskRepo) SaveTask(ctx context.Context, db *sqlx.DB, task *models.Task) error
- func (r *TaskRepo) UpdateTask(ctx context.Context, db *sqlx.DB, task *models.Task) error
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 (*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 (*TaskRepo) GetTaskWithMaterials ¶
Click to show internal directories.
Click to hide internal directories.