Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository interface { CreateUser(ctx *gin.Context, userCreate *dto.UserCreateDto, user *entities.UserEntity) error GetUsers(ctx *gin.Context, page, limits uint, users *[]*entities.UserEntity) error GetUserByID(ctx *gin.Context, userID uint, user *entities.UserEntity) error GetUserByEmail(ctx *gin.Context, email string, user *entities.UserEntity) error UpdateUserByID(ctx *gin.Context, userID uint, userUpdate *dto.UserUpdateDto, userEntity *entities.UserEntity) error DeleteUserByID(ctx *gin.Context, userID uint) error }
UserRepository defines five methods for creating, reading, updating, and deleting user data from the database
func NewUserRepository ¶
func NewUserRepository(db *datastore.Database) UserRepository
NewUserRepository returns a new instance of userRepository
Click to show internal directories.
Click to hide internal directories.