3pl/partnerapi/tnc/const.go

54 lines
1.3 KiB
Go
Raw Normal View History

2022-08-15 10:28:35 +00:00
package tnc
const (
TimeLayout = "2006-01-02 15:04:05"
2022-08-18 10:58:22 +00:00
apiPathCreateOutboundRequest = "/api/v1/ors"
apiPathGetOutboundRequest = "/api/v1/ors/%d"
apiPathCancelOutboundRequest = "/api/v1/ors/%d/cancel"
apiPathUpdateLogisticInfoOutboundRequest = "/api/v1/ors/%d/logistic-info"
apiPathAuth = "/auth/realms/%s/protocol/openid-connect/token"
2022-08-15 10:28:35 +00:00
PriorityUrgent = 3
PriorityHigh = 2
PriorityNormal = 1
TPLCodeGHN = "GHN"
TPLCodeGHTK = "GHTK"
TPLCodeBest = "BEST"
TPLCodeSnappy = "SPY"
TPLCodeViettelPost = "VTP"
TPLCodeSellyExpress = "SE"
TPLCodeJTExpress = "JTE"
2022-08-18 10:58:22 +00:00
ShippingServiceCodeSTD = "STD"
ORTypeOrder = 1
ShippingTypeSelfShip = 1
PackTypeNormal = 1
BizTypeB2C = 1
ConditionTypeCodeNew = "NEW"
2022-08-15 10:28:35 +00:00
)
const (
2023-08-16 03:01:10 +00:00
baseURLAuthStaging = "https://auth.stg.vnfai.com"
baseURLStaging = "https://ext-api.stg.vnfai.com"
2022-08-15 10:28:35 +00:00
2023-08-16 03:01:10 +00:00
baseURLAuthProd = "https://auth.vnfai.com"
baseURLProd = "https://ext-api.vnfai.com"
2022-08-15 10:28:35 +00:00
)
2022-08-24 07:17:45 +00:00
const (
ErrCodeExistPartnerCode = "exist_partner_code"
)
2022-08-15 10:28:35 +00:00
var (
baseURLENVMapping = map[ENV]string{
EnvProd: baseURLProd,
EnvStaging: baseURLStaging,
}
baseURLAuthENVMapping = map[ENV]string{
EnvProd: baseURLAuthProd,
EnvStaging: baseURLAuthStaging,
}
)