Skip to content

Commit

Permalink
Complete wiring of read and delete user cases in relationship service.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlante committed Feb 14, 2024
1 parent 02e2d6e commit 3e8428d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cmd/ciam-rebac/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions internal/service/relationships.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ type RelationshipsService struct {
log *log.Helper
}

func NewRelationshipsService(logger log.Logger, createUseCase *biz.CreateRelationshipsUsecase) *RelationshipsService {
return &RelationshipsService{log: log.NewHelper(logger), createUsecase: createUseCase}
func NewRelationshipsService(logger log.Logger, createUseCase *biz.CreateRelationshipsUsecase, readUsecase *biz.ReadRelationshipsUsecase, deleteUsecase *biz.DeleteRelationshipsUsecase) *RelationshipsService {
return &RelationshipsService{
log: log.NewHelper(logger),
createUsecase: createUseCase,
readUsecase: readUsecase,
deleteUsecase: deleteUsecase,
}
}

func (s *RelationshipsService) CreateRelationships(ctx context.Context, req *pb.CreateRelationshipsRequest) (*pb.CreateRelationshipsResponse, error) {
Expand Down

0 comments on commit 3e8428d

Please sign in to comment.