Documentation
¶
Index ¶
- Constants
- Variables
- type AutoDeliverStatus
- type BalanceType
- type BannerStatus
- type BeeCashLogBehavior
- type BeeCashLogType
- type BeeGoodsFeeType
- type BeeLogisticsType
- type BeePeiSongFeeType
- type BeeQueueStatus
- type BeeShopGoodsAdditionType
- type BeeShopStatus
- type BeeUserQueueStatus
- type BeeUserSource
- type BeeUserStatus
- type BussError
- type CartStatus
- type CommentStatus
- type CommentType
- type CouponDateEndType
- type CouponLogType
- type CouponMoneyType
- type CouponStatus
- type CtxKey
- type CyTablePayMod
- type CyTableStatus
- type DeliveryCancelReason
- type DeliveryType
- type FxType
- type GoodsAfterSale
- type GoodsStatus
- type OrderGoodsStatus
- type OrderLogType
- type OrderPaisongStatus
- type OrderPrinterStatus
- type OrderRefundStatus
- type OrderReputation
- type OrderStatus
- type OrderType
- type PayGate
- type PayLogStatus
- type PayNextActionType
- type PrinterBrand
- type PrinterCondition
- type ResCode
Constants ¶
View Source
const ( BeeCashLogBehaviorIncome BeeCashLogBehavior = 0 BeeCashLogBehaviorConsume BeeCashLogBehavior = 1 BeeCashLogTypeRecharge BeeCashLogType = 0 BeeCashLogTypePayOrder BeeCashLogType = 2 BeeCashLogTypePayRefund BeeCashLogType = 3 BeeCashLogTypePayExchange BeeCashLogType = 140 )
View Source
const ( CommentTypeOrder CommentType = 6 CommentStatusNone CommentStatus = 0 //待审核 )
View Source
const ( CouponStatusNormal CouponStatus = 0 CouponStatusUsing CouponStatus = 1 CouponStatusUsed CouponStatus = 2 CouponStatusExpired CouponStatus = 3 CouponMoneyTypeFixed CouponMoneyType = 0 //固定 CouponMoneyTypeRatio CouponMoneyType = 1 //比例 CouponDateEndTypeFixed CouponDateEndType = 0 //指定日期过期 CouponDateEndTypeDelay CouponDateEndType = 1 //几天后过期 CouponLogTypeReceive CouponLogType = 1 CouponLogTypeConsume CouponLogType = 2 )
View Source
const ( GoodsStatusUp GoodsStatus = 0 GoodsStatusDown GoodsStatus = 1 BeeShopGoodsAdditionTypeSingle BeeShopGoodsAdditionType = 0 //单选 BeeShopGoodsAdditionTypeMulti BeeShopGoodsAdditionType = 1 //多选 GoodsAfterSaleNone GoodsAfterSale = 0 GoodsAfterSaleRefund GoodsAfterSale = 1 GoodsAfterSaleRefundRet GoodsAfterSale = 2 GoodsAfterSaleExchange GoodsAfterSale = 3 )
View Source
const ( OrderStatusClose OrderStatus = -1 OrderStatusUnPaid OrderStatus = 0 OrderStatusPaid OrderStatus = 1 OrderStatusShipped OrderStatus = 2 // 已发货待确认 OrderStatusConfirmShipped OrderStatus = 3 // 确认收货待评价 OrderStatusHadComment OrderStatus = 4 // 已评价 OrderGoodsStatusNone OrderGoodsStatus = 0 // 无 OrderGoodsStatusShipped OrderGoodsStatus = 2 // 已发货待确认 OrderGoodsStatusConfirmShipped OrderGoodsStatus = 3 // 确认收货待评价 OrderGoodsStatusHadComment OrderGoodsStatus = 4 // 已评价 OrderRefundStatusNone = 0 OrderRefundStatusHadRefund = 1 OrderTypeNormal = 0 OrderTypePeriod = 1 OrderTypeScan = 2 OrderTypeJdVop = 3 OrderTypeReceiving = 4 OrderReputationNone = -1 OrderReputationBad = 0 OrderReputationMiddle = 1 OrderReputationGood = 2 OrderLogTypeClose OrderLogType = -1 // 关闭订单 OrderLogTypeCreate OrderLogType = 0 // 0 下单 OrderLogTypePay OrderLogType = 1 // 1 支付 OrderLogTypeDeliver OrderLogType = 2 // 2 发货 OrderLogTypeConfirmDeliver OrderLogType = 3 // 3 确认收货 OrderLogTypeReputation OrderLogType = 4 // 4 评价 OrderLogTypeChangePrice OrderLogType = 5 // 5 卖家修改价格 OrderLogTypeSetComplete OrderLogType = 6 // 6 商家设置交易完成 OrderLogTypeRefund OrderLogType = 7 // 7退款 OrderLogTypeCreateSub OrderLogType = 8 // 8 创建子订单 OrderLogTypeAddGoods OrderLogType = 100 // 100 增加商品 OrderLogTypePayByOthers OrderLogType = 11 // 11 代支付 OrderLogTypeHx OrderLogType = 21 // 11 核销 OrderPaisongStatusNone OrderPaisongStatus = 0 OrderPaisongStatusWaiting OrderPaisongStatus = 1 OrderPaisongStatusPickup OrderPaisongStatus = 2 OrderPaisongStatusDelivering OrderPaisongStatus = 3 OrderPaisongStatusFinish OrderPaisongStatus = 4 OrderPaisongStatusCancel OrderPaisongStatus = 5 OrderPaisongStatusAssign OrderPaisongStatus = 8 OrderPaisongStatusReturning OrderPaisongStatus = 9 OrderPaisongStatusReturned OrderPaisongStatus = 10 OrderPaisongStatusDadaFail OrderPaisongStatus = 1000 OrderPaisongStatusArrive OrderPaisongStatus = 100 OrderPrinterStatusWaiting OrderPrinterStatus = 0 OrderPrinterStatusDone OrderPrinterStatus = 1 OrderPrinterStatusErr OrderPrinterStatus = 2 AutoDeliverStatusNone AutoDeliverStatus = 0 AutoDeliverStatusOn AutoDeliverStatus = 1 AutoDeliverStatusOff AutoDeliverStatus = 2 )
View Source
const ( PayLogStatusUnPaid PayLogStatus = 0 PayLogStatusPaid PayLogStatus = 1 PayLogStatusFail PayLogStatus = 2 PayGateWXAPP PayGate = "WXAPP" PayGateBalance PayGate = "余额" PayNextActionTypeRecharge PayNextActionType = -1 // 充值,nextAction 没有值 PayNextActionTypePayOrder PayNextActionType = 0 // 支付订单, { type: 0, id: orderId} PayNextActionTypePayDirect PayNextActionType = 4 // 优惠买单 {type: 4, uid: wx.getStorageSync('uid'), money: data.money} )
View Source
const ( // PrinterBrandDaQu 大趋打印机 https://www.trendit.cn/pages_9/ PrinterBrandDaQu PrinterBrand = 1 // PrinterBrandFeiE 飞蛾打印机 https://help.feieyun.com/home/doc/zh;nav=1-1 PrinterBrandFeiE PrinterBrand = 2 PrinterConditionAfterPaySuccess PrinterCondition = 1 // 支付后打印 PrinterConditionAfterShip PrinterCondition = 2 // 发货后打印 )
View Source
const ( BeeQueueStatusNormal BeeQueueStatus = 0 BeeQueueStatusClose BeeQueueStatus = 1 BeeQueueStatusFull BeeQueueStatus = 2 BeeUserQueueStatusNormal BeeUserQueueStatus = 0 BeeUserQueueStatusDoing BeeUserQueueStatus = 1 BeeUserQueueStatusDone BeeUserQueueStatus = 2 BeeUserQueueStatusOver BeeUserQueueStatus = 3 )
View Source
const ( BeeUserSourceWx BeeUserSource = 1 BeeUserStatusNormal BeeUserStatus = 0 )
Variables ¶
View Source
var ( ErrBuss = errors.New("业务错误") ErrEmpty = NewBussErr(ErrBuss, ResCodeEmpty, "数据为空") ErrNotImplement = NewBussErr(ErrBuss, ResCodeFail, "未实现") ErrParamError = NewBussErr(ErrBuss, ResCodeForbidden, "参数错误") ErrReceived = NewBussErr(ErrBuss, 30002, "已经领取过了") ErrIneligible = NewBussErr(ErrBuss, 30003, "不符合条件") )
View Source
var ( GoodsStatusStrMap = map[GoodsStatus]string{ GoodsStatusUp: "上架", GoodsStatusDown: "下架", } GoodsAfterSaleStrMap = map[GoodsAfterSale]string{ GoodsAfterSaleNone: "无售后", GoodsAfterSaleRefund: "仅退款", GoodsAfterSaleRefundRet: "退款退货", GoodsAfterSaleExchange: "换货", } )
View Source
var ( BeeLogisticsTypeMap = map[BeeLogisticsType]string{ BeeLogisticsTypeNum: "按件", BeeLogisticsTypeWeight: "按重量", BeeLogisticsTypeAmount: "按金额", } BeeLogisticsUnitMap = map[BeeLogisticsType]string{ BeeLogisticsTypeNum: "件", BeeLogisticsTypeWeight: "KG", BeeLogisticsTypeAmount: "元", } )
View Source
var BalanceTypeMap = map[BalanceType]string{ BalanceTypeBalance: "余额", BalanceTypeFreeze: "冻结", BalanceTypeFxCommisionPaying: "分销佣金", BalanceTypeGrowth: "成长值", BalanceTypeScore: "积分", }
View Source
var BeeCashLogBehaviorMap = map[BeeCashLogBehavior]string{
BeeCashLogBehaviorIncome: "收入",
BeeCashLogBehaviorConsume: "支出",
}
View Source
var BeeCashLogTypeMap = map[BeeCashLogType]string{
BeeCashLogTypeRecharge: "充值",
BeeCashLogTypePayOrder: "支付订单",
BeeCashLogTypePayRefund: "退款",
BeeCashLogTypePayExchange: "积分兑换",
}
View Source
var (
BeeGoodsFeeTypeMap = map[BeeGoodsFeeType]string{
BeeGoodsFeeTypeNum: "按件",
BeeGoodsFeeTypeWeight: "按重量",
BeeGoodsFeeTypeAmount: "按金额",
}
)
View Source
var BeePeiSongFeeTypeMap = map[BeePeiSongFeeType]string{ BeePeiSongFeeTypeFixed: "固定运费", BeePeiSongFeeTypeRate: "比例运费", }
View Source
var BeeQueueStatusMap = map[BeeQueueStatus]string{
BeeQueueStatusNormal: "正常",
BeeQueueStatusClose: "关闭",
BeeQueueStatusFull: "满号",
}
View Source
var BeeShopStatusMap = map[BeeShopStatus]string{
BeeShopStatusNormal: "正常",
}
View Source
var BeeUserQueueStatusMap = map[BeeUserQueueStatus]string{
BeeUserQueueStatusNormal: "排队中",
BeeUserQueueStatusDoing: "受理中",
BeeUserQueueStatusDone: "已处理",
BeeUserQueueStatusOver: "已过号",
}
View Source
var BeeUserSourceMap = map[BeeUserSource]string{ BeeUserSourceWx: "微信", }
View Source
var ( CartStatusStrMap = map[CartStatus]string{ CartStatusNormal: "正常", } )
View Source
var CommentStatusMap = map[CommentStatus]string{
CommentStatusNone: "待审核",
}
View Source
var CommentTypeMap = map[CommentType]string{
CommentTypeOrder: "商城订单",
}
View Source
var CouponStatusMap = map[CouponStatus]string{ CouponStatusNormal: "正常", CouponStatusUsing: "使用中", CouponStatusUsed: "已使用", }
View Source
var CyTablePayModMap = map[CyTablePayMod]string{
CyTablePayModPayBefore: "先付钱再用餐",
CyTablePayModPayAfter: "先用餐再付款",
}
View Source
var CyTableStatusStrMap = map[CyTableStatus]string{
CyTableStatusConfirm: "确认中",
CyTableStatusDoing: "已下厨",
CyTableStatusDone: "已上菜",
}
View Source
var DeliveryCancelReasonMap = map[DeliveryCancelReason]string{
1: "没有配送员接单",
2: "配送员没来取货",
3: "配送员态度太差",
4: "顾客取消订单",
5: "订单填写错误",
34: "配送员让我取消此单",
35: "配送员不愿上门取货",
36: "我不需要配送了",
37: "配送员以各种理由表示无法完成订单",
10000: "其他",
}
View Source
var DeliveryStrMap = map[string]DeliveryType{ "dada": DeliveryTypeDada, "yunlaba": DeliveryTypeYunlaba, }
View Source
var DeliveryTypeMap = map[DeliveryType]string{ DeliveryTypeDada: "达达", DeliveryTypeYunlaba: "云喇叭", }
View Source
var OrderLogTypeMap = map[OrderLogType]string{
OrderLogTypePayByOthers: "代付",
OrderLogTypeCreate: "下单",
OrderLogTypeDeliver: "发货",
OrderLogTypeRefund: "退款",
OrderLogTypeChangePrice: "改价",
OrderLogTypeConfirmDeliver: "确认发货",
OrderLogTypeReputation: "评价",
OrderLogTypeClose: "关闭",
OrderLogTypePay: "支付",
OrderLogTypeHx: "核销",
OrderLogTypeAddGoods: "添加商品",
OrderLogTypeSetComplete: "商家设置完成",
OrderLogTypeCreateSub: "创建子订单",
}
View Source
var OrderPeisongStatusMap = map[OrderPaisongStatus]string{
OrderPaisongStatusNone: "无",
OrderPaisongStatusWaiting: "待接单",
OrderPaisongStatusPickup: "待取货",
OrderPaisongStatusDelivering: "配送中",
OrderPaisongStatusFinish: "已完成",
OrderPaisongStatusCancel: "已取消",
OrderPaisongStatusAssign: "指派单",
OrderPaisongStatusReturning: "妥投异常之物品返回中",
OrderPaisongStatusReturned: "妥投异常之物品返回完成",
OrderPaisongStatusDadaFail: "创建配送运单失败",
OrderPaisongStatusArrive: "达达已送达",
}
View Source
var OrderReputationMap = map[OrderReputation]string{
OrderReputationNone: "无",
OrderReputationBad: "差评",
OrderReputationMiddle: "中评",
OrderReputationGood: "好评",
}
View Source
var OrderStatusMap = map[OrderStatus]string{
OrderStatusClose: "已关闭",
OrderStatusUnPaid: "待支付",
OrderStatusPaid: "已支付待发货",
OrderStatusShipped: "已发货待确认",
OrderStatusConfirmShipped: "确认收货待评价",
OrderStatusHadComment: "已评价",
}
View Source
var OrderTypeMap = map[OrderType]string{
OrderTypeNormal: "普通订单",
OrderTypePeriod: "周期订单",
OrderTypeScan: "扫码点餐订单",
OrderTypeJdVop: "京东vop订单",
OrderTypeReceiving: "从区管进货",
}
View Source
var PayGateMap = map[PayGate]string{
PayGateWXAPP: "微信小程序",
PayGateBalance: "余额",
}
View Source
var PayLogStatusMap = map[PayLogStatus]string{
PayLogStatusUnPaid: "未支付",
PayLogStatusPaid: "已支付",
PayLogStatusFail: "失败",
}
View Source
var PrinterBrandMap = map[PrinterBrand]string{ PrinterBrandDaQu: "大趋", PrinterBrandFeiE: "飞蛾", }
View Source
var PrinterConditionMap = map[PrinterCondition]string{ PrinterConditionAfterPaySuccess: "支付后打印", }
View Source
var (
UserInfoKey = "UserInfo"
)
Functions ¶
This section is empty.
Types ¶
type AutoDeliverStatus ¶
type AutoDeliverStatus int32
type BalanceType ¶
type BalanceType int
const ( BalanceTypeBalance BalanceType = 1 BalanceTypeFreeze BalanceType = 2 BalanceTypeFxCommisionPaying BalanceType = 3 BalanceTypeGrowth BalanceType = 4 BalanceTypeScore BalanceType = 5 )
type BannerStatus ¶
type BannerStatus int32
const ( BannerStatusOn BannerStatus = 0 BannerStatusOff BannerStatus = 1 )
type BeeCashLogType ¶
type BeeCashLogType int32
BeeCashLogType 交易类型 0 充值 11 提现申请 12 提现失败 1 提现成功 2 支付订单 3 退款 4支付预约报名费 5 知识付费 6分销返佣 7 分享商品奖励; 8 优惠买单; 100 押金;101 押金退还; 110 购买会员; 120 货款收入; 130 分润收入; 140 积分兑换
type BeeGoodsFeeType ¶
type BeeGoodsFeeType int32
const ( BeeGoodsFeeTypeNum BeeGoodsFeeType = 1 BeeGoodsFeeTypeWeight BeeGoodsFeeType = 2 BeeGoodsFeeTypeAmount BeeGoodsFeeType = 3 )
type BeeLogisticsType ¶
type BeeLogisticsType int32
const ( BeeLogisticsTypeNum BeeLogisticsType = 0 BeeLogisticsTypeAmount BeeLogisticsType = 3 BeeLogisticsTypeWeight BeeLogisticsType = 1 )
type BeePeiSongFeeType ¶
type BeePeiSongFeeType int32
const ( BeePeiSongFeeTypeFixed BeePeiSongFeeType = 0 BeePeiSongFeeTypeRate BeePeiSongFeeType = 1 )
type BeeQueueStatus ¶
type BeeQueueStatus int32
type BeeShopGoodsAdditionType ¶
type BeeShopGoodsAdditionType int
type BeeShopStatus ¶
type BeeShopStatus int32
const ( BeeShopStatusNormal BeeShopStatus = 1 //正常 BeeShopStatusDisable BeeShopStatus = 0 //歇业 )
type BeeUserQueueStatus ¶
type BeeUserQueueStatus int32 // 0 排队中 1 受理中 2 已处理 3 已过号
type BeeUserSource ¶
type BeeUserSource int32
type BeeUserStatus ¶
type BeeUserStatus int32
type CommentStatus ¶
type CommentStatus int32
type CommentType ¶
type CommentType int32
type CouponDateEndType ¶
type CouponDateEndType int32
type CouponLogType ¶
type CouponLogType int32
type CouponMoneyType ¶
type CouponMoneyType int32
type CouponStatus ¶
type CouponStatus int8
type CyTablePayMod ¶
type CyTablePayMod int32
const ( CyTablePayModPayBefore CyTablePayMod = 0 CyTablePayModPayAfter CyTablePayMod = 1 )
type CyTableStatus ¶
type CyTableStatus int8
const ( CyTableStatusConfirm CyTableStatus = 0 //确认中 CyTableStatusDoing CyTableStatus = 1 //已下厨 CyTableStatusDone CyTableStatus = 2 //已上菜 )
type DeliveryCancelReason ¶
type DeliveryCancelReason int
type DeliveryType ¶
type DeliveryType int
const ( DeliveryTypeNone DeliveryType = 0 DeliveryTypeDada DeliveryType = 1 DeliveryTypeYunlaba DeliveryType = 2 )
type GoodsAfterSale ¶
type GoodsAfterSale int // 售后类型 1仅退款,2退款退货,3换货
type GoodsStatus ¶
type GoodsStatus int
type OrderGoodsStatus ¶
type OrderGoodsStatus int32
type OrderLogType ¶
type OrderLogType int32
type OrderPaisongStatus ¶
type OrderPaisongStatus int32
OrderPaisongStatus 待接单=1,待取货=2,配送中=3,已完成=4,已取消=5, 指派单=8,妥投异常之物品返回中=9, 妥投异常之物品返回完成=10, 骑士到店=100,创建达达运单失败=1000
type OrderPrinterStatus ¶
type OrderPrinterStatus int32
type OrderRefundStatus ¶
type OrderRefundStatus int32
type OrderReputation ¶
type OrderReputation int32 // 评价状态,0 差评 1 中评 2 好评
type OrderStatus ¶
type OrderStatus int32
OrderStatus https://www.yuque.com/apifm/nu0f75/uwggsm -1 已关闭 0 待支付 1 已支付待发货 2 已发货待确认 3 确认收货待评价 4 已评价
type PayNextActionType ¶
type PayNextActionType int32
type PrinterBrand ¶
type PrinterBrand int32
type PrinterCondition ¶
type PrinterCondition int32
Click to show internal directories.
Click to hide internal directories.