package tnc const ( TimeLayout = "2006-01-02 15:04:05" 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" PriorityUrgent = 3 PriorityHigh = 2 PriorityNormal = 1 TPLCodeGHN = "GHN" TPLCodeGHTK = "GHTK" TPLCodeBest = "BEST" TPLCodeSnappy = "SPY" TPLCodeViettelPost = "VTP" TPLCodeSellyExpress = "SE" TPLCodeJTExpress = "JTE" ShippingServiceCodeSTD = "STD" ORTypeOrder = 1 ShippingTypeSelfShip = 1 PackTypeNormal = 1 BizTypeB2C = 1 ConditionTypeCodeNew = "NEW" ) const ( baseURLAuthStaging = "https://auth.stg.tnclog.vn" baseURLStaging = "https://ext-api.stg.tnclog.vn" baseURLAuthProd = "https://auth.tnclog.vn" baseURLProd = "https://ext-api.tnclog.vn" ) const ( ErrCodeExistPartnerCode = "exist_partner_code" ) var ( baseURLENVMapping = map[ENV]string{ EnvProd: baseURLProd, EnvStaging: baseURLStaging, } baseURLAuthENVMapping = map[ENV]string{ EnvProd: baseURLAuthProd, EnvStaging: baseURLAuthStaging, } )