Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,16 @@
}

func (a *AccountApplication) Unbind(ctx context.Context, request *api.UnbindRequest) (*api.UnbindResponse, error) {
//TODO implement me
panic("implement me")
if err := a.accountService.Unbind(ctx, request.GetAccountId(), request.GetVoucherType()); err != nil {
log.Context(ctx).Errorf("unbind voucher failed: %v", err)
return &api.UnbindResponse{
Meta: utils.GetMetaWithError(err),
}, nil
}

Check warning on line 87 in backend/baseService/internal/applications/accountapp/application.go

View check run for this annotation

Codecov / codecov/patch

backend/baseService/internal/applications/accountapp/application.go#L82-L87

Added lines #L82 - L87 were not covered by tests

return &api.UnbindResponse{
Meta: utils.GetSuccessMeta(),
}, nil

Check warning on line 91 in backend/baseService/internal/applications/accountapp/application.go

View check run for this annotation

Codecov / codecov/patch

backend/baseService/internal/applications/accountapp/application.go#L89-L91

Added lines #L89 - L91 were not covered by tests
}

var _ api.AccountServiceServer = (*AccountApplication)(nil)
Loading