Documentation ¶
Index ¶
- type IUserRepository
- type UserRepository
- func (ur *UserRepository) Create(ctx context.Context, user *model.User) error
- func (ur *UserRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (ur *UserRepository) GetByDocumentID(ctx context.Context, documentId string) (*model.User, error)
- func (ur *UserRepository) GetByID(ctx context.Context, id uuid.UUID) (*model.User, error)
- func (ur *UserRepository) Update(ctx context.Context, id uuid.UUID, updateUser *request.CreateUser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserRepository ¶
type IUserRepository interface { Create(ctx context.Context, user *model.User) error GetByID(ctx context.Context, id uuid.UUID) (*model.User, error) GetByDocumentID(ctx context.Context, document_id string) (*model.User, error) Update(ctx context.Context, id uuid.UUID, updateUser *request.CreateUser) error Delete(ctx context.Context, id uuid.UUID) error }
type UserRepository ¶
func NewUserRepository ¶
func NewUserRepository(db *sqlx.DB) *UserRepository
func (*UserRepository) GetByDocumentID ¶
func (*UserRepository) Update ¶
func (ur *UserRepository) Update(ctx context.Context, id uuid.UUID, updateUser *request.CreateUser) error
Click to show internal directories.
Click to hide internal directories.