Different dbs fn skeleton which fn yet not written
This commit is contained in:
parent
096f686495
commit
0af78479fc
23
server/db/providers/arangodb/sms_verification_requests.go
Normal file
23
server/db/providers/arangodb/sms_verification_requests.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package arangodb
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/authorizerdev/authorizer/server/db/models"
|
||||
|
||||
)
|
||||
|
||||
// SMS verification Request
|
||||
func (p *provider) UpsertSMSRequest(ctx context.Context, sms_code *models.SMSVerificationRequest) (*models.SMSVerificationRequest, error) {
|
||||
return sms_code, nil
|
||||
}
|
||||
|
||||
func (p *provider) GetCodeByPhone(ctx context.Context, phoneNumber string) (*models.SMSVerificationRequest, error) {
|
||||
var sms_verification_request models.SMSVerificationRequest
|
||||
|
||||
return &sms_verification_request, nil
|
||||
}
|
||||
|
||||
func(p *provider) DeleteSMSRequest(ctx context.Context, smsRequest *models.SMSVerificationRequest) error {
|
||||
return nil
|
||||
}
|
23
server/db/providers/cassandradb/sms_verification_requests.go
Normal file
23
server/db/providers/cassandradb/sms_verification_requests.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package cassandradb
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/authorizerdev/authorizer/server/db/models"
|
||||
|
||||
)
|
||||
|
||||
// SMS verification Request
|
||||
func (p *provider) UpsertSMSRequest(ctx context.Context, sms_code *models.SMSVerificationRequest) (*models.SMSVerificationRequest, error) {
|
||||
return sms_code, nil
|
||||
}
|
||||
|
||||
func (p *provider) GetCodeByPhone(ctx context.Context, phoneNumber string) (*models.SMSVerificationRequest, error) {
|
||||
var sms_verification_request models.SMSVerificationRequest
|
||||
|
||||
return &sms_verification_request, nil
|
||||
}
|
||||
|
||||
func(p *provider) DeleteSMSRequest(ctx context.Context, smsRequest *models.SMSVerificationRequest) error {
|
||||
return nil
|
||||
}
|
23
server/db/providers/couchbase/sms_verification_requests.go
Normal file
23
server/db/providers/couchbase/sms_verification_requests.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package couchbase
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/authorizerdev/authorizer/server/db/models"
|
||||
|
||||
)
|
||||
|
||||
// SMS verification Request
|
||||
func (p *provider) UpsertSMSRequest(ctx context.Context, sms_code *models.SMSVerificationRequest) (*models.SMSVerificationRequest, error) {
|
||||
return sms_code, nil
|
||||
}
|
||||
|
||||
func (p *provider) GetCodeByPhone(ctx context.Context, phoneNumber string) (*models.SMSVerificationRequest, error) {
|
||||
var sms_verification_request models.SMSVerificationRequest
|
||||
|
||||
return &sms_verification_request, nil
|
||||
}
|
||||
|
||||
func(p *provider) DeleteSMSRequest(ctx context.Context, smsRequest *models.SMSVerificationRequest) error {
|
||||
return nil
|
||||
}
|
23
server/db/providers/dynamodb/sms_verification_requests.go
Normal file
23
server/db/providers/dynamodb/sms_verification_requests.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package dynamodb
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/authorizerdev/authorizer/server/db/models"
|
||||
|
||||
)
|
||||
|
||||
// SMS verification Request
|
||||
func (p *provider) UpsertSMSRequest(ctx context.Context, sms_code *models.SMSVerificationRequest) (*models.SMSVerificationRequest, error) {
|
||||
return sms_code, nil
|
||||
}
|
||||
|
||||
func (p *provider) GetCodeByPhone(ctx context.Context, phoneNumber string) (*models.SMSVerificationRequest, error) {
|
||||
var sms_verification_request models.SMSVerificationRequest
|
||||
|
||||
return &sms_verification_request, nil
|
||||
}
|
||||
|
||||
func(p *provider) DeleteSMSRequest(ctx context.Context, smsRequest *models.SMSVerificationRequest) error {
|
||||
return nil
|
||||
}
|
Loading…
Reference in New Issue
Block a user