moved db indices to uint
This commit is contained in:
@@ -8,14 +8,14 @@ import (
|
||||
)
|
||||
|
||||
type ConsentServiceInterface interface {
|
||||
RegisterConsent(consent *models.Consent) (int64, error)
|
||||
RegisterConsent(consent *models.Consent) (uint, error)
|
||||
}
|
||||
|
||||
type ConsentService struct {
|
||||
Repo repositories.ConsentRepositoryInterface
|
||||
}
|
||||
|
||||
func (service *ConsentService) RegisterConsent(consent *models.Consent) (int64, error) {
|
||||
func (service *ConsentService) RegisterConsent(consent *models.Consent) (uint, error) {
|
||||
consent.CreatedAt = time.Now()
|
||||
consent.UpdatedAt = time.Now()
|
||||
return service.Repo.CreateConsent(consent)
|
||||
|
||||
Reference in New Issue
Block a user