Created
December 10, 2021 04:59
-
-
Save manakuro/e860e3b04c902055eb1594c3f106ae7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type User interface { | |
Get(ctx context.Context, id *model.ID) (*model.User, error) | |
List(ctx context.Context, after *model.Cursor, first *int, before *model.Cursor, last *int) (*model.UserConnection, error) | |
} | |
... | |
func (u *user) List(ctx context.Context, after *model.Cursor, first *int, before *model.Cursor, last *int) (*model.UserConnection, error) { | |
return u.userUsecase.List(ctx, after, first, before, last) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment