Start to code election insert

This commit is contained in:
2024-12-27 14:38:30 +01:00
parent 49bd090df9
commit bc2ffce244
7 changed files with 464 additions and 2 deletions

View File

@ -0,0 +1,19 @@
package models
import (
"database/sql"
"time"
)
type ElectionModelInterface interface {
Insert(name string, tokens int, isAnonymous bool, maxVoters int, Choices []string, ExpiresAt time.Time) (int, error)
}
type ElectionModel struct {
DB *sql.DB
}
func (e *ElectionModel) Insert(name string, tokens int, isAnonymous bool, maxVoters int, Choices []string, ExpiresAt time.Time) (int, error) {
//TODO implement me
panic("implement me")
}