2022-08-25 19:26:29 -06:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models"
|
|
|
|
)
|
|
|
|
|
|
|
|
type DatabaseRepository interface {
|
|
|
|
Close() error
|
2022-08-27 09:39:55 -06:00
|
|
|
GetCurrentUser() models.User
|
2022-08-25 19:26:29 -06:00
|
|
|
|
2022-08-27 09:39:55 -06:00
|
|
|
CreateProviderCredentials(ctx context.Context, providerCreds *models.ProviderCredential) error
|
2022-08-27 20:34:48 -06:00
|
|
|
GetProviderCredentials(ctx context.Context) ([]models.ProviderCredential, error)
|
2022-08-25 19:26:29 -06:00
|
|
|
}
|