added some Estimated Call logic
This commit is contained in:
17
database/EstimatedCall.go
Normal file
17
database/EstimatedCall.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user