package consts const ( // 批次异步状态 batch_async_status BatchAsyncStatusCreated = 0 // 已创建 BatchAsyncStatusPending = 1 // 待处理 BatchAsyncStatusProcessing = 2 // 处理中 BatchAsyncStatusSuccess = 3 // 成功 BatchAsyncStatusFailed = 4 // 失败 BatchAsyncStatusPartialSuccess = 5 // 部分成功 ) const ( // 批次运行结果 run_result BatchRunResultPending = 0 // 待运行 BatchRunResultRunning = 1 // 运行中 BatchRunResultSuccess = 2 // 成功 BatchRunResultFailed = 3 // 失败 BatchRunResultPartialSuccess = 4 // 部分成功 ) const ( // 批次业务状态 batch_status BatchStatusNormal = 0 // 正常 BatchStatusAbandoned = 1 // 废弃 ) const ( // 批次明细状态 detail_status BatchDetailStatusPending = 0 // 待处理 BatchDetailStatusRunning = 1 // 处理中 BatchDetailStatusSuccess = 2 // 成功 BatchDetailStatusFailed = 3 // 失败 ) const ( BatchSourceTypeBatchSelect = 0 BatchSourceTypeRange = 1 BatchSourceTypeBatchInput = 2 BatchSourceTypeFile = 3 ) const ( // 通用批次类型 1-99 BatchTypeInbound = 1 // 入库 BatchTypeOutbound = 2 // 出库 BatchTypeAllocate = 3 // 划拨 BatchTypePrepare = 4 // 预处理 // 卡业务专属批次类型 101-199 BatchTypeRenew = 101 // 卡续费 BatchTypeChange = 102 // 卡变更 BatchTypeStart = 103 // 卡开机 BatchTypeStop = 104 // 卡停机 BatchTypeRestart = 105 // 卡停复机 BatchTypeCancel = 106 // 卡销户 BatchTypeDataCut = 107 // 卡达量断网 BatchTypeUnsub = 108 // 卡退订 BatchTypeDataStart = 109 // 数据服务开通 BatchTypeDataStop = 110 // 数据服务停用 ) const ( // 通用批次编号前缀 BatchNoPrefixInbound = "IN" BatchNoPrefixOutbound = "OUT" BatchNoPrefixAllocate = "ALC" // 卡业务专属批次编号前缀 BatchNoPrefixRenew = "REN" BatchNoPrefixChange = "CHG" BatchNoPrefixStart = "STR" // 开机 BatchNoPrefixStop = "STP" // 停机 BatchNoPrefixRestart = "RST" // 停复机 BatchNoPrefixCancel = "CAN" // 销户 BatchNoPrefixDataCut = "DCT" // 达量断网 BatchNoPrefixUnsub = "UNS" // 退订 BatchNoPrefixDataStart = "DOP" // 数据服务开通 BatchNoPrefixDataStop = "DST" // 数据服务停用 ) const ( BlankOutStatusYes = 0 BlankOutStatusNo = 1 ) const ( DownloadStatusPending = 0 DownloadStatusGenerated = 1 DownloadStatusRunning = 2 DownloadStatusFailed = 3 ) const ( ResourceTypeExcel = 1 ResourceExportSceneInbound = 1 ResourceExportSceneOutbound = 2 ResourceExportSceneAllocate = 3 ResourceExportSceneRenew = 101 ResourceExportSceneChange = 102 ResourceExportSceneUnsub = 108 ResourceExportSceneDataStart = 109 ResourceExportSceneDataStop = 110 ) const ( ImportStatusSuccess = "success" ImportStatusFailed = "failed" ) const ( ResourceBatchDownloadTaskSimCardInbound = "卡入库结果" ResourceBatchDownloadTaskSimCardOutbound = "卡出库结果" ResourceBatchDownloadTaskSimCardRenew = "卡续费结果" ResourceBatchDownloadTaskSimCardChange = "卡变更套餐结果" ResourceBatchDownloadTaskSimCardUnsub = "卡退订结果" SimCardInboundMaxFileSize = 50 << 20 SimCardInboundSubDirImportInput = "sim-card-inbound/import-input" SimCardInboundDefaultInputInlineMaxRows = 1000 SimCardOutboundMaxFileSize = 50 << 20 SimCardRenewMaxFileSize = 50 << 20 SimCardChangeMaxFileSize = 50 << 20 SimCardUnsubMaxFileSize = 50 << 20 SimCardInboundSubDirImportExcel = "sim-card-inbound/import" SimCardInboundSubDirResultExcel = "sim-card-inbound/result" SimCardOutboundSubDirImportExcel = "sim-card-outbound/import" SimCardOutboundSubDirResultExcel = "sim-card-outbound/result" SimCardRenewSubDirImportExcel = "sim-card-renew/import" SimCardRenewSubDirResultExcel = "sim-card-renew/result" SimCardChangeSubDirImportExcel = "sim-card-change/import" SimCardChangeSubDirResultExcel = "sim-card-change/result" SimCardUnsubSubDirImportExcel = "sim-card-unsub/import" SimCardUnsubSubDirResultExcel = "sim-card-unsub/result" SimCardDataStartMaxFileSize = 50 << 20 SimCardDataStopMaxFileSize = 50 << 20 SimCardDataStartSubDirImportExcel = "sim-card-data-start/import" SimCardDataStartSubDirResultExcel = "sim-card-data-start/result" SimCardDataStopSubDirImportExcel = "sim-card-data-stop/import" SimCardDataStopSubDirResultExcel = "sim-card-data-stop/result" ) const ( OrderTypeCardSubscribe = 1 OrderStatusCompleted = 5 CustomerTypeAgent = 1 PayTypeOffline = 3 PayStatusPaid = 2 ProductTypeCard = 1 PayModeYearMonth = 1 PackageBusinessTypeSubscribe = 0 OrderReturnStatusNone = 0 OrderReturnStatusPending = 1 OrderReturnStatusRunning = 2 OrderReturnStatusPartial = 3 OrderReturnStatusSuccess = 4 ) const ( PackageStatusNone = 0 PackageStatusPending = 1 PackageStatusEffective = 2 PackageStatusExpired = 3 ) const ( EffectiveStatusPending = 0 EffectiveStatusEffective = 1 EffectiveStatusExpired = 2 EffectiveStatusTerminated = 3 EffectiveStatusVoided = 4 )