Documentation ¶
Index ¶
- func NewAuthRepository(db *gorm.DB) models.AuthRepository
- func NewCharacterRepository(db *gorm.DB) models.CharacterRepository
- func NewDailyQuestRepository(db *gorm.DB) models.DailyQuestRepository
- func NewItemRepository(db *gorm.DB) models.ItemRepository
- func NewQuizRepository(db *gorm.DB) models.QuizRepository
- func NewRewardRepository(db *gorm.DB) models.RewardRepository
- func NewTaskRepository(db *gorm.DB) models.TaskRepository
- func NewUserKidRepository(db *gorm.DB) models.UserKidRepository
- type AuthRepository
- type CharacterRepository
- func (r *CharacterRepository) CreateOne(ctx context.Context, character *models.Character) (*models.Character, error)
- func (r *CharacterRepository) DeleteOne(ctx context.Context, characterId uuid.UUID) error
- func (r *CharacterRepository) GetMany(ctx context.Context) ([]*models.Character, error)
- func (r *CharacterRepository) GetOne(ctx context.Context, characterId uuid.UUID) (*models.Character, error)
- func (r *CharacterRepository) UpdateOne(ctx context.Context, characterId uuid.UUID, updateData map[string]interface{}) (*models.Character, error)
- type DailyQuestRepository
- func (r *DailyQuestRepository) CreateOne(ctx context.Context, dailyQuest *models.DailyQuest) (*models.DailyQuest, error)
- func (r *DailyQuestRepository) DeleteOne(ctx context.Context, dailyQuestId uuid.UUID) error
- func (r *DailyQuestRepository) GetByDate(ctx context.Context, questDate string) ([]*models.DailyQuest, error)
- func (r *DailyQuestRepository) GetMany(ctx context.Context) ([]*models.DailyQuest, error)
- func (r *DailyQuestRepository) GetOne(ctx context.Context, dailyQuestId uuid.UUID) (*models.DailyQuest, error)
- func (r DailyQuestRepository) UpdateOne(ctx context.Context, dailyQuestId uuid.UUID, updateData map[string]interface{}) (*models.DailyQuest, error)
- type ItemRepository
- func (r *ItemRepository) CreateOne(ctx context.Context, item *models.Item) (*models.Item, error)
- func (r *ItemRepository) GetMany(ctx context.Context) ([]*models.Item, error)
- func (r *ItemRepository) GetOne(ctx context.Context, itemId uuid.UUID) (*models.Item, error)
- func (r *ItemRepository) UpdateOne(ctx context.Context, itemId uuid.UUID, updateData map[string]interface{}) (*models.Item, error)
- type QuizRepository
- func (r *QuizRepository) CreateOne(ctx context.Context, quiz *models.Quiz) (*models.Quiz, error)
- func (r *QuizRepository) DeleteOne(ctx context.Context, quizId uuid.UUID) error
- func (r *QuizRepository) GetMany(ctx context.Context) ([]*models.Quiz, error)
- func (r *QuizRepository) GetOne(ctx context.Context, quizId uuid.UUID) (*models.Quiz, error)
- func (r *QuizRepository) UpdateOne(ctx context.Context, quizId uuid.UUID, updateData map[string]interface{}) (*models.Quiz, error)
- type RewardRepository
- func (r *RewardRepository) CreateOne(ctx context.Context, reward *models.Reward) (*models.Reward, error)
- func (r *RewardRepository) DeleteOne(ctx context.Context, rewardId uuid.UUID) error
- func (r *RewardRepository) GetMany(ctx context.Context) ([]*models.Reward, error)
- func (r *RewardRepository) GetOne(ctx context.Context, rewardId uuid.UUID) (*models.Reward, error)
- func (r RewardRepository) UpdateOne(ctx context.Context, rewardId uuid.UUID, updateData map[string]interface{}) (*models.Reward, error)
- type TaskRepository
- func (r *TaskRepository) CreateOne(ctx context.Context, task *models.Task) (*models.Task, error)
- func (r *TaskRepository) DeleteOne(ctx context.Context, taskId uuid.UUID) error
- func (r *TaskRepository) GetMany(ctx context.Context) ([]*models.Task, error)
- func (r *TaskRepository) GetOne(ctx context.Context, taskId uuid.UUID) (*models.Task, error)
- func (r TaskRepository) UpdateOne(ctx context.Context, taskId uuid.UUID, updateData map[string]interface{}) (*models.Task, error)
- type UserKidRepository
- func (r *UserKidRepository) CreateOne(ctx context.Context, kid *models.UserKid) (*models.UserKid, error)
- func (r *UserKidRepository) DeleteOne(ctx context.Context, userKidId uuid.UUID) error
- func (r *UserKidRepository) GetAllParentKids(ctx context.Context, parentId uuid.UUID) ([]*models.UserKid, error)
- func (r *UserKidRepository) GetOne(ctx context.Context, userKidId uuid.UUID) (*models.UserKid, error)
- func (r *UserKidRepository) UpdateOne(ctx context.Context, userKidId uuid.UUID, updateData map[string]interface{}) (*models.UserKid, error)
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) RegisterUser ¶
func (r *AuthRepository) RegisterUser(ctx context.Context, registerData *models.AuthCredentials) (*models.User, error)
type CharacterRepository ¶
type CharacterRepository struct {
// contains filtered or unexported fields
}
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) GetByDate ¶
func (r *DailyQuestRepository) GetByDate(ctx context.Context, questDate string) ([]*models.DailyQuest, error)
func (*DailyQuestRepository) GetMany ¶
func (r *DailyQuestRepository) GetMany(ctx context.Context) ([]*models.DailyQuest, error)
func (*DailyQuestRepository) GetOne ¶
func (r *DailyQuestRepository) GetOne(ctx context.Context, dailyQuestId uuid.UUID) (*models.DailyQuest, error)
type ItemRepository ¶
type ItemRepository struct {
// contains filtered or unexported fields
}
type QuizRepository ¶
type QuizRepository struct {
// contains filtered or unexported fields
}
type RewardRepository ¶
type RewardRepository struct {
// contains filtered or unexported fields
}
type TaskRepository ¶
type TaskRepository struct {
// contains filtered or unexported fields
}
type UserKidRepository ¶
type UserKidRepository struct {
// contains filtered or unexported fields
}
func (*UserKidRepository) GetAllParentKids ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.