jaryhe 1 rok pred
rodič
commit
4f4f5a2778
2 zmenil súbory, kde vykonal 10 pridanie a 37 odobranie
  1. 0 28
      impl/thirdparty_impl/adm/p10.go
  2. 10 9
      utils/provider_api_code.go

+ 0 - 28
impl/thirdparty_impl/adm/p10.go

@@ -1,28 +0,0 @@
-package adm
-
-import (
-	"context"
-	"gd_vehicle/apis"
-	"gd_vehicle/consts"
-	"gd_vehicle/errors"
-	dutils "gd_vehicle/utils"
-	"strconv"
-)
-
-func P10(ctx context.Context, vin string, lReqs *[]apis.ThirdpartLogWrite, providerMap map[string]apis.MerchantProviderLimitInfo, rangeNo int) (str string, err error) {
-	if CheckProviderApiIsAvaliable(dutils.ADMP10, providerMap, rangeNo) == nil {
-		str, err = (&Adm{
-			Ctx: ctx,
-			Params: map[string]string{
-				"vin": vin,
-			},
-			Code:     consts.P10,
-			LReqs:    lReqs,
-			Provider: providerMap[dutils.ADMP10+strconv.Itoa(rangeNo)],
-		}).Request()
-	} else {
-		return str, errors.ProviderUnavailable
-	}
-
-	return str, err
-}

+ 10 - 9
utils/provider_api_code.go

@@ -4,13 +4,14 @@
 package utils
 
 const (
-	ADMV01  = "125-019"
-	ADMA01  = "125-025"
-	ADMA04  = "125-026"
-	ADMA02  = "125-023"
-	ADMIS01 = "125-024"
-	ADMU01  = "125-025"
-	ADMA05  = "125-027"
-	ADMP07  = "125-016"
-	ADMP10  = "125-020"
+	ADMV01  = "100-005"
+	ADMV02  = "100-006"
+	ADMA01  = "100-007"
+	ADMA02  = "100-008"
+	ADMA03  = "100-009"
+	ADMA04  = "100-010"
+	ADMA05  = "100-011"
+	ADMIS01 = "100-012"
+	ADMU01  = "100-013"
+	ADMU02  = "100-014"
 )