added some Estimated Call logic

This commit is contained in:
Peder Vatn Austad
2024-12-26 16:26:13 +01:00
parent fd70e45ea1
commit aecf92afbd
3 changed files with 121 additions and 1 deletions

17
database/EstimatedCall.go Normal file
View File

@@ -0,0 +1,17 @@
package database
import (
"database/sql"
"errors"
"math/rand"
)
func InsertOrUpdateEstimatedCall(db *sql.DB, estimatedValues []string) (int, string, error) {
if len(estimatedValues) == 0 {
return 0, "", errors.New("no estimated values provided")
}
id := rand.Intn(100)
action := "tmp"
return id, action, nil
}