Line data Source code
1 : package profile
2 :
3 : import (
4 : "context"
5 : )
6 :
7 : // ListUserIdentity は ListUserIdentity ユースケースの実装本体です。
8 : // Interactor.ListUserIdentity から呼ばれる private 実装にしています。
9 : func (uc *Interactor) ListUserIdentity(
10 : ctx context.Context,
11 : in UserIdentityInput,
12 0 : ) (*ListUserIdentityOutput, error) {
13 0 : entities, total, err := uc.uIRepo.ListByUserIDWithSpec(ctx, in.UserID, in)
14 0 : if err != nil {
15 0 : return nil, err
16 0 : }
17 :
18 0 : return &ListUserIdentityOutput{
19 0 : Items: ToUserIdentityResponses(entities),
20 0 : Total: total,
21 0 : }, nil
22 : }
|