Documentation ¶
Index ¶
- func NewUserCharacterFruitRepository(db *gorm.DB) bridges.UserCharacterFruitRepository
- func NewUserCharacterRepository(db *gorm.DB) bridges.UserCharacterRepository
- func NewUserDailyQuestRepository(db *gorm.DB) bridges.UserDailyQuestRepository
- func NewUserQuizRepository(db *gorm.DB) bridges.UserQuizRepository
- func NewUserRewardRepository(db *gorm.DB) bridges.UserRewardRepository
- func NewUserTaskRepository(db *gorm.DB) bridges.UserTaskRepository
- type UserCharacterFruitRepository
- func (r *UserCharacterFruitRepository) CreateOne(ctx context.Context, user_character_fruit *bridges.UserCharacterFruit) (*bridges.UserCharacterFruit, error)
- func (r *UserCharacterFruitRepository) DeleteOne(ctx context.Context, userCharacterFruitId uuid.UUID) error
- func (r *UserCharacterFruitRepository) GetAllByUserCharacter(ctx context.Context, userId uuid.UUID, characterId uuid.UUID) ([]*bridges.UserCharacterFruit, error)
- func (r *UserCharacterFruitRepository) GetMany(ctx context.Context) ([]*bridges.UserCharacterFruit, error)
- func (r *UserCharacterFruitRepository) GetOne(ctx context.Context, userCharacterId uuid.UUID) (*bridges.UserCharacterFruit, error)
- func (r UserCharacterFruitRepository) UpdateOne(ctx context.Context, userCharacterFruitId uuid.UUID, ...) (*bridges.UserCharacterFruit, error)
- type UserCharacterRepository
- func (r *UserCharacterRepository) CreateOne(ctx context.Context, user_character *bridges.UserCharacter) (*bridges.UserCharacter, error)
- func (r *UserCharacterRepository) DeleteOne(ctx context.Context, userCharacterId uuid.UUID) error
- func (r *UserCharacterRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserCharacter, error)
- func (r *UserCharacterRepository) GetMany(ctx context.Context) ([]*bridges.UserCharacter, error)
- func (r *UserCharacterRepository) GetOne(ctx context.Context, userCharacterId uuid.UUID) (*bridges.UserCharacter, error)
- func (r UserCharacterRepository) UpdateOne(ctx context.Context, userCharacterId uuid.UUID, ...) (*bridges.UserCharacter, error)
- type UserDailyQuestRepository
- func (r *UserDailyQuestRepository) CreateOne(ctx context.Context, user_daily_quest *bridges.UserDailyQuest) (*bridges.UserDailyQuest, error)
- func (r *UserDailyQuestRepository) DeleteOne(ctx context.Context, userDailyQuestId uuid.UUID) error
- func (r *UserDailyQuestRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserDailyQuest, error)
- func (r *UserDailyQuestRepository) GetMany(ctx context.Context) ([]*bridges.UserDailyQuest, error)
- func (r *UserDailyQuestRepository) GetOne(ctx context.Context, userDailyQuestId uuid.UUID) (*bridges.UserDailyQuest, error)
- func (r UserDailyQuestRepository) UpdateOne(ctx context.Context, userDailyQuestId uuid.UUID, ...) (*bridges.UserDailyQuest, error)
- type UserQuizRepository
- func (r *UserQuizRepository) CreateOne(ctx context.Context, user_quiz *bridges.UserQuiz) (*bridges.UserQuiz, error)
- func (r *UserQuizRepository) DeleteOne(ctx context.Context, userQuizId uuid.UUID) error
- func (r *UserQuizRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserQuiz, error)
- func (r *UserQuizRepository) GetMany(ctx context.Context) ([]*bridges.UserQuiz, error)
- func (r *UserQuizRepository) GetOne(ctx context.Context, userQuizId uuid.UUID) (*bridges.UserQuiz, error)
- func (r UserQuizRepository) UpdateOne(ctx context.Context, userQuizId uuid.UUID, updateData map[string]interface{}) (*bridges.UserQuiz, error)
- type UserRewardRepository
- func (r *UserRewardRepository) CreateOne(ctx context.Context, user_reward *bridges.UserReward) (*bridges.UserReward, error)
- func (r *UserRewardRepository) DeleteOne(ctx context.Context, userRewardId uuid.UUID) error
- func (r *UserRewardRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserReward, error)
- func (r *UserRewardRepository) GetMany(ctx context.Context) ([]*bridges.UserReward, error)
- func (r *UserRewardRepository) GetOne(ctx context.Context, userRewardId uuid.UUID) (*bridges.UserReward, error)
- func (r UserRewardRepository) UpdateOne(ctx context.Context, userRewardId uuid.UUID, updateData map[string]interface{}) (*bridges.UserReward, error)
- type UserTaskRepository
- func (r *UserTaskRepository) CreateOne(ctx context.Context, user_task *bridges.UserTask) (*bridges.UserTask, error)
- func (r *UserTaskRepository) DeleteOne(ctx context.Context, userTaskId uuid.UUID) error
- func (r *UserTaskRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserTask, error)
- func (r *UserTaskRepository) GetMany(ctx context.Context) ([]*bridges.UserTask, error)
- func (r *UserTaskRepository) GetOne(ctx context.Context, userTaskId uuid.UUID) (*bridges.UserTask, error)
- func (r UserTaskRepository) UpdateOne(ctx context.Context, userTaskId uuid.UUID, updateData map[string]interface{}) (*bridges.UserTask, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserCharacterFruitRepository ¶
func NewUserCharacterFruitRepository(db *gorm.DB) bridges.UserCharacterFruitRepository
func NewUserCharacterRepository ¶
func NewUserCharacterRepository(db *gorm.DB) bridges.UserCharacterRepository
func NewUserDailyQuestRepository ¶
func NewUserDailyQuestRepository(db *gorm.DB) bridges.UserDailyQuestRepository
func NewUserQuizRepository ¶
func NewUserQuizRepository(db *gorm.DB) bridges.UserQuizRepository
func NewUserRewardRepository ¶
func NewUserRewardRepository(db *gorm.DB) bridges.UserRewardRepository
func NewUserTaskRepository ¶
func NewUserTaskRepository(db *gorm.DB) bridges.UserTaskRepository
Types ¶
type UserCharacterFruitRepository ¶
type UserCharacterFruitRepository struct {
// contains filtered or unexported fields
}
func (*UserCharacterFruitRepository) CreateOne ¶
func (r *UserCharacterFruitRepository) CreateOne(ctx context.Context, user_character_fruit *bridges.UserCharacterFruit) (*bridges.UserCharacterFruit, error)
func (*UserCharacterFruitRepository) GetAllByUserCharacter ¶
func (r *UserCharacterFruitRepository) GetAllByUserCharacter(ctx context.Context, userId uuid.UUID, characterId uuid.UUID) ([]*bridges.UserCharacterFruit, error)
func (*UserCharacterFruitRepository) GetMany ¶
func (r *UserCharacterFruitRepository) GetMany(ctx context.Context) ([]*bridges.UserCharacterFruit, error)
func (*UserCharacterFruitRepository) GetOne ¶
func (r *UserCharacterFruitRepository) GetOne(ctx context.Context, userCharacterId uuid.UUID) (*bridges.UserCharacterFruit, error)
type UserCharacterRepository ¶
type UserCharacterRepository struct {
// contains filtered or unexported fields
}
func (*UserCharacterRepository) CreateOne ¶
func (r *UserCharacterRepository) CreateOne(ctx context.Context, user_character *bridges.UserCharacter) (*bridges.UserCharacter, error)
func (*UserCharacterRepository) GetAllByUser ¶
func (r *UserCharacterRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserCharacter, error)
func (*UserCharacterRepository) GetMany ¶
func (r *UserCharacterRepository) GetMany(ctx context.Context) ([]*bridges.UserCharacter, error)
func (*UserCharacterRepository) GetOne ¶
func (r *UserCharacterRepository) GetOne(ctx context.Context, userCharacterId uuid.UUID) (*bridges.UserCharacter, error)
type UserDailyQuestRepository ¶
type UserDailyQuestRepository struct {
// contains filtered or unexported fields
}
func (*UserDailyQuestRepository) CreateOne ¶
func (r *UserDailyQuestRepository) CreateOne(ctx context.Context, user_daily_quest *bridges.UserDailyQuest) (*bridges.UserDailyQuest, error)
func (*UserDailyQuestRepository) GetAllByUser ¶
func (r *UserDailyQuestRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserDailyQuest, error)
func (*UserDailyQuestRepository) GetMany ¶
func (r *UserDailyQuestRepository) GetMany(ctx context.Context) ([]*bridges.UserDailyQuest, error)
func (*UserDailyQuestRepository) GetOne ¶
func (r *UserDailyQuestRepository) GetOne(ctx context.Context, userDailyQuestId uuid.UUID) (*bridges.UserDailyQuest, error)
type UserQuizRepository ¶
type UserQuizRepository struct {
// contains filtered or unexported fields
}
func (*UserQuizRepository) GetAllByUser ¶
type UserRewardRepository ¶
type UserRewardRepository struct {
// contains filtered or unexported fields
}
func (*UserRewardRepository) CreateOne ¶
func (r *UserRewardRepository) CreateOne(ctx context.Context, user_reward *bridges.UserReward) (*bridges.UserReward, error)
func (*UserRewardRepository) GetAllByUser ¶
func (r *UserRewardRepository) GetAllByUser(ctx context.Context, userId uuid.UUID) ([]*bridges.UserReward, error)
func (*UserRewardRepository) GetMany ¶
func (r *UserRewardRepository) GetMany(ctx context.Context) ([]*bridges.UserReward, error)
func (*UserRewardRepository) GetOne ¶
func (r *UserRewardRepository) GetOne(ctx context.Context, userRewardId uuid.UUID) (*bridges.UserReward, error)
Click to show internal directories.
Click to hide internal directories.