Files
qv/internal/models/elections.go

20 lines
451 B
Go
Raw Normal View History

2024-12-27 14:38:30 +01:00
package models
import (
"database/sql"
"time"
)
type ElectionModelInterface interface {
Insert(name string, tokens int, areVotersKnown bool, maxVoters int, Choices []string, ExpiresAt time.Time) (int, error)
2024-12-27 14:38:30 +01:00
}
type ElectionModel struct {
DB *sql.DB
}
func (e *ElectionModel) Insert(name string, tokens int, areVotersKnown bool, maxVoters int, Choices []string, ExpiresAt time.Time) (int, error) {
2024-12-27 14:38:30 +01:00
//TODO implement me
panic("implement me")
}