Documentation ¶
Index ¶
Constants ¶
View Source
const ( LenAesKey = 43 LenAppID = 25 LenDate = 10 LenDesc = 255 LenJSON = 1530 LenKey = 4096 LenMobile = 11 LenName = 100 LenNormal = 50 LenOrder = 24 LenPhone = 20 LenURL = 255 LenUUID = 32 LenTwenty = 20 LenHundred = 100 LenFiveHundred = 500 DishDesc = 500 FALSE = false )
Variables ¶
View Source
var ( DatetimeSchema = map[string]string{dialect.MySQL: "datetime"} DateSchema = map[string]string{dialect.MySQL: "date"} DecimalSchema = map[string]string{dialect.MySQL: "decimal(12,2)"} GeoSchema = map[string]string{dialect.MySQL: "decimal(9,6)"} Varchar30 = map[string]string{dialect.MySQL: "varchar(30)"} Varchar100 = map[string]string{dialect.MySQL: "varchar(100)"} Varchar255 = map[string]string{dialect.MySQL: "varchar(255)"} Varchar500 = map[string]string{dialect.MySQL: "varchar(500)"} )
Functions ¶
func MaxRuneCount ¶
Types ¶
type BookConfig ¶
type DealsConfig ¶
type DealsConfig struct {
EnableCashier bool `json:"enable_cashier"` // 是否作为收银
}
type DeliveryConfig ¶
type DeliveryConfig struct { PrepareMealTimes int `json:"prepare_meal_times"` // 备餐时间 Level int `json:"level"` // 目前有0(基础), 1(第一档), 2(第二档), 3(第三档) 与配送相关 BasePrice string `json:"base_price"` // 20 起送价 FreePrice string `json:"free_price"` // 免费配送价格 LevelConfig LevelConfig `json:"level_config"` DeliveryAreas int `json:"delivery_areas"` // 配送区域半径 单位m DeliveryPartners []string `json:"delivery_partners"` // 配送方式 EnableAutoDelivery bool `json:"enable_auto_delivery"` // 是否自动呼叫配送 EnableBooking bool `json:"enable_booking"` // 是否开启预约配送功能 BookingConfigs BookConfig `json:"booking_configs"` // 预约配置 DeliveryCallTime int `json:"delivery_call_time"` // 呼叫第三方配送时长, 单位分钟 DelayCallTime int `json:"delay_call_time"` // 延迟呼叫配送,单位分钟 }
type DineInConfigs ¶
type LevelConfig ¶
type LevelConfig struct { Price string `json:"price"` // 1km 以内的配送费 8 新币 Additional string `json:"additional"` // 额外配送费, 每 km 为 0.35 Distance int `json:"distance"` // 基础配送距离 1km DeliveryTime int `json:"delivery_time"` // 基础配送时长 FirstPrice string `json:"first_price"` // 第一档配送费 FirstDistance int `json:"first_distance"` // 第一档配送距离 FirstDeliveryTime int `json:"first_delivery_time"` // 第一档配送时长 SecondPrice string `json:"second_price"` // 第二档配送费 SecondDistance int `json:"second_distance"` // 第二档配送距离 SecondDeliveryTime int `json:"second_delivery_time"` // 第二档配送时长 ThirdPrice string `json:"third_price"` // 第三档配送费 ThirdDistance int `json:"third_distance"` // 第三档配送距离 ThirdDeliveryTime int `json:"third_delivery_time"` // 第三档配送时长 }
type PayConfig ¶
type PayConfig struct { EnableInStore bool `json:"enable_in_store"` // 到店支付 EnableAlipay bool `json:"enable_alipay"` // 支付宝支付 EnableWechat bool `json:"enable_wechat"` // 微信支付 EnableApple bool `json:"enable_apple"` // 苹果支付 EnableGoogle bool `json:"enable_google"` // google支付 EnablePayNow bool `json:"enable_pay_now"` // paynow支付 EnableCard bool `json:"enable_card"` // 卡支付 }
type PrintConfig ¶
type PrintConfig struct {
ScanDisplayStyle int `json:"scan_display_style"` // 小票展示形式 1:为默认,2:暂时为food_hub样式
}
type RingConfig ¶
type RingConfig struct { NewOrder string `json:"new_order"` // 新订单(即时配送,预约配送,即时自提) AutoAcceptOrder string `json:"auto_accept_order"` // 自动接单 OverdueOrder string `json:"overdue_order"` // 订单过期 DeliverException string `json:"deliver_exception"` // 配送异常 PrinterDisconnect string `json:"printer_disconnect"` // 打印机断开 NetworkDisconnect string `json:"network_disconnect"` // 网络断开 BookingNotice string `json:"booking_notice"` // 预订单配送提醒 SelfPickupNewOrder string `json:"self_pickup_new_order"` // 自提新订单 SelfPickupAutoAcceptOrder string `json:"self_pickup_auto_accept_order"` // 自提自动接单 SelfPickupBookingNotice string `json:"self_pickup_booking_notice"` // 自提预订单提醒 }
type SelfPickupConfig ¶
type SelfPickupConfig struct { BasePrice string `json:"base_price"` // 起定价, 对等于配送的起送价 PrepareMealTimes int `json:"prepare_meal_times"` // 备餐时间 AutoAcceptOrder bool `json:"auto_accept_order"` // 自动接单 EnableBooking bool `json:"enable_booking"` // 是否预约配置 BookingConfigs BookConfig `json:"booking_configs"` // 预约配置 }
Click to show internal directories.
Click to hide internal directories.