github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/backend/domain/repository/user_google.go (about)

     1  package repository
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/oinume/lekcije/backend/model2"
     7  )
     8  
     9  type UserGoogle interface {
    10  	CreateWithExec(ctx context.Context, exec Executor, userGoogle *model2.UserGoogle) error
    11  	DeleteByPKWithExec(ctx context.Context, exec Executor, googleID string) error
    12  	FindByPKWithExec(ctx context.Context, exec Executor, googleID string) (*model2.UserGoogle, error)
    13  	FindByUserIDWithExec(ctx context.Context, exec Executor, userID uint) (*model2.UserGoogle, error)
    14  }