move validation to external function and update rules
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
|||||||
"bitbucket.org/nemt/nemt-portal-api/application/tncservice"
|
"bitbucket.org/nemt/nemt-portal-api/application/tncservice"
|
||||||
"bitbucket.org/nemt/nemt-portal-api/application/viewmodel"
|
"bitbucket.org/nemt/nemt-portal-api/application/viewmodel"
|
||||||
"bitbucket.org/nemt/nemt-portal-api/infra/auth"
|
"bitbucket.org/nemt/nemt-portal-api/infra/auth"
|
||||||
"bitbucket.org/nemt/nemt-portal-api/infra/errors"
|
|
||||||
"bitbucket.org/nemt/nemt-portal-api/infra/config"
|
"bitbucket.org/nemt/nemt-portal-api/infra/config"
|
||||||
"bitbucket.org/nemt/nemt-portal-api/server/router/routeutils"
|
"bitbucket.org/nemt/nemt-portal-api/server/router/routeutils"
|
||||||
"bitbucket.org/nemt/nemt-portal-api/server/validation"
|
"bitbucket.org/nemt/nemt-portal-api/server/validation"
|
||||||
@@ -25,20 +24,6 @@ import (
|
|||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
tripTypeFromVisit = "From Visit"
|
|
||||||
tripTypeToVisit = "To Visit"
|
|
||||||
tripTypeFromVisitWillCall = "From Visit / Will Call"
|
|
||||||
tripTypeRoundTrip = "Round Trip"
|
|
||||||
tripTypeRountTripWillCall = "Round Trip / Will Call"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
|
||||||
loadingTime = 30 //in minutes
|
|
||||||
minimumLoadTime = 30 //in minutes
|
|
||||||
minimumPickupTime = 0 //in minutes
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
instance *controller
|
instance *controller
|
||||||
once sync.Once
|
once sync.Once
|
||||||
|
|||||||
Reference in New Issue
Block a user