20 lines
445 B
Go
20 lines
445 B
Go
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")
|
|
}
|