This commit is contained in:
邹宗楠
2024-01-08 09:34:35 +08:00
parent be829b7399
commit 5ce817e327
3 changed files with 402 additions and 0 deletions

View File

@@ -0,0 +1,201 @@
package model
var NumberVoiceMap map[string]int
func init() {
NumberVoiceMap = map[string]int{
"0": ZeroVoice,
"1": OneVoice,
"2": TwoVoice,
"3": ThreeVoice,
"4": FourVoice,
"5": FiveVoice,
"6": SixVoice,
"7": SevenVoice,
"8": EightVoice,
"9": NineVoice,
"10": TenVoice,
"20": TwentyVoice,
"30": ThirtyVoice,
"40": FortyVoice,
"50": FiftyVoice,
"60": SixtyVoice,
"70": SeventyVoice,
"80": EightyVoice,
"90": NinetyVoice,
"100": OneHundredVoice,
"200": TwoHundredVoice,
"300": ThereHundredVoice,
"400": FourHundredVoice,
"500": FiveHundredVoice,
"600": SixHundredVoice,
"700": SeventyHundredVoice,
"800": EightHundredVoice,
"900": NineHundredVoice,
"1000": OneThousandVoice,
}
}
// 语音常量
const (
WeComeJXPrintVoice = 1 //. 欢迎使用京西云打印机.mp3
NetConnSuccessVoice = 2 //. 网络连接成功.mp3
NetConnFailVoice = 3 //. 网络连接失败和心跳失败.mp3
PrintLostPaperVoice = 4 //. 打印机缺纸或装纸错误.mp3
WFILPasswordErrVoice = 5 //. WIFI密码错误.mp3
NewOrderVoice = 6 //. 您来新订单了.mp3
WaitOrderVoice = 7 //. 您有新订单未处理.mp3
WaitPickUpOrderVoice = 8 //. 您有订单未拣货.mp3
RiderGetOrderVoice = 9 //. 骑手接单了.mp3
FinialsOrderVoice = 10 //. 定单以完成.mp3
ReminderOrderVoice = 11 //. 有人催单了.mp3
CancelOrderVoice = 12 //. 定单被取消了.mp3
ApplyCancelVoice = 13 //. 申请取消-后台设置播放几次.mp3
ApplyRefundVoice = 14 //. 申请退款-后台甚至播放几次.mp3
ApplyReturnGoodsVoice = 15 //. 申请退货-后台设置播放几次.mp3
DeliverFailVoice = 16 //. 骑手联系不到客户,可能会把商品送回.mp3
LoseTokenVoice = 17 //. 失去授权-联播3次.mp3
BusinessResponsibilityVoice = 18 //. 商家责任客服退款.mp3
EnterTheStoreVoice = 19 //. 进店咨询.mp3
StoreOfflineVoice = 20 //. 店铺被下线-联播3次.mp3
followVoice = 21 //. 请关注.mp3
ElmVoice = 22 //. 饿了么.mp3
JdToHose = 23 //. 京东到家.mp3
JxStore = 24 //. 京西.mp3
MtWmVoice = 25 //. 美团外卖.mp3
WmVoice = 26 //. 微盟.mp3
TaoBaoVoice = 27 //. 淘宝.mp3
JdVoice = 28 //. 京东.mp3
PddVoice = 29 //. 拼多多.mp3
MtVoice = 30 //. 美团.mp3
WdVoice = 31 //. 微店.mp3
XdVoice = 32 //. 新店.mp3
YzVoice = 33 //. 有赞.mp3
ZeroVoice = 34 //. 0.mp3
OneVoice = 35 //. 1.mp3
TwoVoice = 36 //. 2.mp3
ThreeVoice = 37 //. 3.mp3
FourVoice = 38 //. 4.mp3
FiveVoice = 39 //. 5.mp3
SixVoice = 40 //. 6.mp3
SevenVoice = 41 //. 7.mp3
EightVoice = 42 //. 8.mp3
NineVoice = 43 //. 9.mp3
TenVoice = 44 //. 10.mp3
TwentyVoice = 45 //. 20.mp3
ThirtyVoice = 46 //. 30.mp3
FortyVoice = 47 //. 40.mp3
FiftyVoice = 48 //. 50.mp3
SixtyVoice = 49 //. 60.mp3
SeventyVoice = 50 //. 70.mp3
EightyVoice = 51 //. 80.mp3
NinetyVoice = 52 //. 90.mp3
OneHundredVoice = 53 //. 100.mp3
TwoHundredVoice = 54 //. 200.mp3
ThereHundredVoice = 55 //. 300.mp3
FourHundredVoice = 56 //. 400.mp3
FiveHundredVoice = 57 //. 500.mp3
SixHundredVoice = 58 //. 600.mp3
SeventyHundredVoice = 59 //. 700.mp3
EightHundredVoice = 60 //. 800.mp3
NineHundredVoice = 61 //. 900.mp3
OneThousandVoice = 62 //. 1000.mp3
OrderNoVoice = 63 //. 号定单.mp3
BossVoice = 64 //. 老板.mp3
EldestBrotherVoice = 65 //. 大哥.mp3
EldestSisterVoice = 66 //. 大姐.mp3
ToStorePayVoice = 67 //. 到店支付.mp3
SpotVoice = 68 //. 点.mp3
BalanceEnoughVoice = 69 //. 余额不足5元.mp3
MondayVoice = 70 //. 星期一.mp3
TuesdayVoice = 71 //. 星期二.mp3
WednesdayVoice = 72 //. 星期三.mp3
ThursdayVoice = 73 //. 星期四.mp3
FridayVoice = 74 //. 星期五.mp3
SaturdayVoice = 75 //. 星期六.mp3
SundayVoice = 76 //. 星期天.mp3
ElementVoice = 77 //. 元.mp3
)
//
//EBailOrderNo = "eBaiOrderNo" // 品牌名称
//BusinessType = "businessType" // 是否为预定单
//PayOrderTime = "payOrderTime" // 下单时间
//TrySendTime = "trySendTime" // 预计送达时间
//OrderNo = "orderNo" // 订单编号
//VendorName = "vendorName" // 订单来源平台名称
//VendorID = "vendorID" // 订单来源平台id
//VendorOrderNo = "vendorOrderNo" // 订单序号1/2/
//EBaiCode = "eBailCode" // 饿百取货码
//QRCOrder = "qrcOrder" // 订单二维码单号还是订单Id
//ConsigneeName = "consigneeName" // 客户名称
//ConsigneeMobile = "consigneeMobile" // 客户电话
//ConsigneeAddress = "consigneeAddress" // 客户地址
//BuyerComment = "buyerComment" // 客户备注
//SkuList = "skuList" // 商品列表
//SkuName = "skuName" // 商品名称
//SkuCount = "skuCount" // 商品件数
//SkuOnePrice = "skuOnePrice" // 商品单价
//SkuAllPrice = "skuAllPrice" // 商品总价 = 商品件数 x 商品件数
//AllSkuTypeCount = "allSkuTypeCount" // 商品种类
//AllSkuCount = "allSkuCount" // 商品总数量
//UserPayMoney = "userPayMoney" // 用户支付
//StoreName = "storeName" // 门店名称
//StoreTel = "storeTel" // 门店电话
//OfficialName = "officialName" // 官方名称
//BigFont = "bigFont" // 是否为大字体
//PrintNumber = "printNumber" // 打印次数
//AppID = "appId" // 应用id
//// 状态对应打印设置的变化
//OrderStatus = "orderStatus" // 订单状态
//WayBillStatus = "wayBillStatus" // 运单状态
//StoreStatus = "storeStatus" // 门店状态
//ReminderStatus = "reminderStatus" // 催单状态
//AfsOrderStatus = "afsOrderStatus" // 售后
//
//RiderVendorId = "riderVendorId" // 骑手所属平台id
//RiderName = "riderName" // 骑手名称
//RiderPhone = "riderPhone" // 骑手电话
//RejectionReason = "rejectionReason" // 拒收原因
//CustcareRefundReason = "custcareRefundReason" // 客服退款理由
//EnterTheStore = "enterTheStore" // 催单
// 菜市商城常量名称
const (
EBailOrderNoPrint = "eBaiOrderNo" // 品牌名称
BusinessTypePrint = "businessType" // 是否为预定单
PayOrderTimePrint = "payOrderTime" // 下单时间
TrySendTimePrint = "trySendTime" // 预计送达时间
OrderNoPrint = "orderNo" // 订单编号
VendorNamePrint = "vendorName" // 订单来源平台名称
VendorIDPrint = "vendorID" // 订单来源平台id
VendorOrderNoPrint = "vendorOrderNo" // 订单序号1/2/
EBaiCodePrint = "eBailCode" // 饿百取货码
QRCOrderPrint = "qRCOrder" // 订单二维码单号还是订单Id
ConsigneeNamePrint = "consigneeName" // 客户名称
ConsigneeMobilePrint = "consigneeMobile" // 客户电话
ConsigneeAddressPrint = "consigneeAddress" // 客户地址
BuyerCommentPrint = "buyerComment" // 客户备注
SkuListPrint = "skuList" // 商品列表
SkuNamePrint = "skuName" // 商品名称
SkuCountPrint = "skuCount" // 商品件数
SkuOnePricePrint = "skuOnePrice" // 商品单价
SkuAllPricePrint = "skuAllPrice" // 商品总价 = 商品件数 x 商品件数
AllSkuTypeCountPrint = "allSkuTypeCount" // 商品种类
AllSkuCountPrint = "allSkuCount" // 商品总数量
UserPayMoneyPrint = "userPayMoney" // 用户支付
StoreNamePrint = "storeName" // 门店名称
StoreTelPrint = "storeTel" // 门店电话
OfficialNamePrint = "officialName" // 官方名称
BigFontPrint = "bigFont" // 是否为大字体
PrintNumberPrint = "printNumber" // 打印次数
AppIDPrint = "appId" // 应用id
OrderStatusPrint = "orderStatus" // 订单状态
WayBillStatusPrint = "wayBillStatus" // 运单状态
StoreStatusPrint = "storeStatus" // 门店状态
RiderVendorIdPrint = "riderVendorId" // 骑手所属平台id
RiderNamePrint = "riderName" // 骑手名称
RiderPhonePrint = "riderPhone" // 骑手电话
RejectionReasonPrint = "rejectionReason" // 拒收原因
CustcareRefundReasonPrint = "custcareRefundReason" // 客服退款理由
EnterTheStorePrint = "enterTheStore" // 进店
)