repositories

package
v0.0.0-...-04c0be3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthRepository

func NewAuthRepository(db *gorm.DB) models.AuthRepository

func NewCharacterRepository

func NewCharacterRepository(db *gorm.DB) models.CharacterRepository

func NewDailyQuestRepository

func NewDailyQuestRepository(db *gorm.DB) models.DailyQuestRepository

func NewItemRepository

func NewItemRepository(db *gorm.DB) models.ItemRepository

func NewQuizRepository

func NewQuizRepository(db *gorm.DB) models.QuizRepository

func NewRewardRepository

func NewRewardRepository(db *gorm.DB) models.RewardRepository

func NewTaskRepository

func NewTaskRepository(db *gorm.DB) models.TaskRepository

func NewUserKidRepository

func NewUserKidRepository(db *gorm.DB) models.UserKidRepository

Types

type AuthRepository

type AuthRepository struct {
	// contains filtered or unexported fields
}

func (*AuthRepository) GetUser

func (r *AuthRepository) GetUser(ctx context.Context, query interface{}, args ...interface{}) (*models.User, error)

func (*AuthRepository) RegisterUser

func (r *AuthRepository) RegisterUser(ctx context.Context, registerData *models.AuthCredentials) (*models.User, error)

type CharacterRepository

type CharacterRepository struct {
	// contains filtered or unexported fields
}

func (*CharacterRepository) CreateOne

func (r *CharacterRepository) CreateOne(ctx context.Context, character *models.Character) (*models.Character, error)

func (*CharacterRepository) DeleteOne

func (r *CharacterRepository) DeleteOne(ctx context.Context, characterId uuid.UUID) error

func (*CharacterRepository) GetMany

func (r *CharacterRepository) GetMany(ctx context.Context) ([]*models.Character, error)

func (*CharacterRepository) GetOne

func (r *CharacterRepository) GetOne(ctx context.Context, characterId uuid.UUID) (*models.Character, error)

func (*CharacterRepository) UpdateOne

func (r *CharacterRepository) UpdateOne(ctx context.Context, characterId uuid.UUID, updateData map[string]interface{}) (*models.Character, error)

type DailyQuestRepository

type DailyQuestRepository struct {
	// contains filtered or unexported fields
}

func (*DailyQuestRepository) CreateOne

func (r *DailyQuestRepository) CreateOne(ctx context.Context, dailyQuest *models.DailyQuest) (*models.DailyQuest, error)

func (*DailyQuestRepository) DeleteOne

func (r *DailyQuestRepository) DeleteOne(ctx context.Context, dailyQuestId uuid.UUID) error

func (*DailyQuestRepository) GetByDate

func (r *DailyQuestRepository) GetByDate(ctx context.Context, questDate string) ([]*models.DailyQuest, error)

func (*DailyQuestRepository) GetMany

func (*DailyQuestRepository) GetOne

func (r *DailyQuestRepository) GetOne(ctx context.Context, dailyQuestId uuid.UUID) (*models.DailyQuest, error)

func (DailyQuestRepository) UpdateOne

func (r DailyQuestRepository) UpdateOne(ctx context.Context, dailyQuestId uuid.UUID, updateData map[string]interface{}) (*models.DailyQuest, error)

type ItemRepository

type ItemRepository struct {
	// contains filtered or unexported fields
}

func (*ItemRepository) CreateOne

func (r *ItemRepository) CreateOne(ctx context.Context, item *models.Item) (*models.Item, error)

func (*ItemRepository) GetMany

func (r *ItemRepository) GetMany(ctx context.Context) ([]*models.Item, error)

func (*ItemRepository) GetOne

func (r *ItemRepository) GetOne(ctx context.Context, itemId uuid.UUID) (*models.Item, error)

func (*ItemRepository) UpdateOne

func (r *ItemRepository) UpdateOne(ctx context.Context, itemId uuid.UUID, updateData map[string]interface{}) (*models.Item, error)

type QuizRepository

type QuizRepository struct {
	// contains filtered or unexported fields
}

func (*QuizRepository) CreateOne

func (r *QuizRepository) CreateOne(ctx context.Context, quiz *models.Quiz) (*models.Quiz, error)

func (*QuizRepository) DeleteOne

func (r *QuizRepository) DeleteOne(ctx context.Context, quizId uuid.UUID) error

func (*QuizRepository) GetMany

func (r *QuizRepository) GetMany(ctx context.Context) ([]*models.Quiz, error)

func (*QuizRepository) GetOne

func (r *QuizRepository) GetOne(ctx context.Context, quizId uuid.UUID) (*models.Quiz, error)

func (*QuizRepository) UpdateOne

func (r *QuizRepository) UpdateOne(ctx context.Context, quizId uuid.UUID, updateData map[string]interface{}) (*models.Quiz, error)

type RewardRepository

type RewardRepository struct {
	// contains filtered or unexported fields
}

func (*RewardRepository) CreateOne

func (r *RewardRepository) CreateOne(ctx context.Context, reward *models.Reward) (*models.Reward, error)

func (*RewardRepository) DeleteOne

func (r *RewardRepository) DeleteOne(ctx context.Context, rewardId uuid.UUID) error

func (*RewardRepository) GetMany

func (r *RewardRepository) GetMany(ctx context.Context) ([]*models.Reward, error)

func (*RewardRepository) GetOne

func (r *RewardRepository) GetOne(ctx context.Context, rewardId uuid.UUID) (*models.Reward, error)

func (RewardRepository) UpdateOne

func (r RewardRepository) UpdateOne(ctx context.Context, rewardId uuid.UUID, updateData map[string]interface{}) (*models.Reward, error)

type TaskRepository

type TaskRepository struct {
	// contains filtered or unexported fields
}

func (*TaskRepository) CreateOne

func (r *TaskRepository) CreateOne(ctx context.Context, task *models.Task) (*models.Task, error)

func (*TaskRepository) DeleteOne

func (r *TaskRepository) DeleteOne(ctx context.Context, taskId uuid.UUID) error

func (*TaskRepository) GetMany

func (r *TaskRepository) GetMany(ctx context.Context) ([]*models.Task, error)

func (*TaskRepository) GetOne

func (r *TaskRepository) GetOne(ctx context.Context, taskId uuid.UUID) (*models.Task, error)

func (TaskRepository) UpdateOne

func (r TaskRepository) UpdateOne(ctx context.Context, taskId uuid.UUID, updateData map[string]interface{}) (*models.Task, error)

type UserKidRepository

type UserKidRepository struct {
	// contains filtered or unexported fields
}

func (*UserKidRepository) CreateOne

func (r *UserKidRepository) CreateOne(ctx context.Context, kid *models.UserKid) (*models.UserKid, error)

func (*UserKidRepository) DeleteOne

func (r *UserKidRepository) DeleteOne(ctx context.Context, userKidId uuid.UUID) error

func (*UserKidRepository) GetAllParentKids

func (r *UserKidRepository) GetAllParentKids(ctx context.Context, parentId uuid.UUID) ([]*models.UserKid, error)

func (*UserKidRepository) GetOne

func (r *UserKidRepository) GetOne(ctx context.Context, userKidId uuid.UUID) (*models.UserKid, error)

func (*UserKidRepository) UpdateOne

func (r *UserKidRepository) UpdateOne(ctx context.Context, userKidId uuid.UUID, updateData map[string]interface{}) (*models.UserKid, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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