1
This commit is contained in:
@@ -24,18 +24,18 @@ type AddPrinterParam struct {
|
|||||||
type Printer struct {
|
type Printer struct {
|
||||||
ModelIDCULD
|
ModelIDCULD
|
||||||
|
|
||||||
AppID int `orm:"column(app_id)" json:"app_id" db:"app_id"` //应用编号
|
AppID int `orm:"column(app_id)" json:"app_id" db:"app_id"` //应用编号
|
||||||
PrintNo string `json:"print_no" db:"print_no"` //打印机编号
|
PrintNo string `json:"print_no" db:"print_no"` //打印机编号
|
||||||
PrintKey string `json:"print_key" db:"print_key"` //打印机识别码
|
PrintKey string `json:"print_key" db:"print_key"` //打印机识别码
|
||||||
Name string `json:"name" db:"name"` //打印机备注名
|
Name string `json:"name" db:"name"` //打印机备注名
|
||||||
Status int `json:"status" db:"status"` //打印机状态
|
Status int `json:"status" db:"status"` //打印机状态
|
||||||
IsOnline int `json:"is_online" db:"is_online"` //1在线,0离线
|
IsOnline int `json:"is_online" db:"is_online"` //1在线,0离线
|
||||||
IccID string `orm:"column(icc_id)" json:"IccID" db:"icc_id"` //sim卡号
|
IccID string `orm:"column(icc_id)" json:"IccID" db:"icc_id"` //sim卡号
|
||||||
Sound string `json:"sound" db:"sound"` //声音类型 sounda ,b,c,d,e,f,g
|
Sound string `json:"sound" db:"sound"` //声音类型 sounda ,b,c,d,e,f,g
|
||||||
Volume int `json:"volume" db:"volume"` //音量,1-5 ,对应打印机2-10
|
Volume int `json:"volume" db:"volume"` //音量,1-5 ,对应打印机2-10
|
||||||
FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了,1表示超了
|
FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了,1表示超了
|
||||||
OfflineCount int `json:"offlineCount" db:"offline_count"` //掉线次数
|
OfflineCount int `json:"offlineCount" db:"offline_count"` //掉线次数
|
||||||
UserId string `json:"user_id" db:"user_id"` //用户id
|
UserId string `orm:"column(user_id)" json:"user_id" db:"user_id"` //用户id
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *Printer) TableIndex() [][]string {
|
func (v *Printer) TableIndex() [][]string {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ type PrintBill struct {
|
|||||||
ID int `orm:"column(id)" json:"id" db:"id"`
|
ID int `orm:"column(id)" json:"id" db:"id"`
|
||||||
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||||||
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
||||||
PrintNo string `orm:"type(varchar);size(32);index" json:"print_no" db:"print_no"` // 打印机编号
|
PrintNo string `orm:"type(varchar);size(32);index" json:"print_no" db:"print_no"` // 打印机编号
|
||||||
PrintBalance int64 `orm:"type(int);size(16)" json:"print_balance" db:"print_balance"` // 账户余额
|
PrintBalance int64 `orm:"type(int);size(16)" json:"print_balance" db:"print_balance"` // 账户余额
|
||||||
UserId string `orm:"type(varchar);size(125)" json:"user_id" db:"user_id"` // 打印机所属用户
|
UserId string `orm:"column(user_id);type(varchar);size(125)" json:"user_id" db:"user_id"` // 打印机所属用户
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *PrintBill) TableUnique() [][]string {
|
func (v *PrintBill) TableUnique() [][]string {
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ type PrintBillRecord struct {
|
|||||||
ID int `orm:"column(id)" json:"id" db:"id"`
|
ID int `orm:"column(id)" json:"id" db:"id"`
|
||||||
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||||||
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
||||||
PrintNo string `orm:"type(varchar);size(32);index" json:"print_no" db:"print_no"` // 打印机编号
|
PrintNo string `orm:"type(varchar);size(32);index" json:"print_no" db:"print_no"` // 打印机编号
|
||||||
PayType int `orm:"type(int);size(2)" json:"pay_type" db:"pay_type"` // 支付类型[1-充值/2-支出]
|
PayType int `orm:"type(int);size(2)" json:"pay_type" db:"pay_type"` // 支付类型[1-充值/2-支出]
|
||||||
PayMoney int `orm:"type(int);size(10)" json:"pay_money" db:"pay_money"` // 金额
|
PayMoney int `orm:"type(int);size(10)" json:"pay_money" db:"pay_money"` // 金额
|
||||||
OrderId string `orm:"type(varchar);size(64);index" json:"order_id" db:"order_id"` // 订单号
|
OrderId string `orm:"column(order_id);type(varchar);size(64);index" json:"order_id" db:"order_id"` // 订单号
|
||||||
UserId string `orm:"type(varchar);size(125)" json:"user_id" db:"user_id"` // 打印机所属用户
|
UserId string `orm:"column(user_id);type(varchar);size(125)" json:"user_id" db:"user_id"` // 打印机所属用户
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *PrintBillRecord) TableUnique() [][]string {
|
func (v *PrintBillRecord) TableUnique() [][]string {
|
||||||
|
|||||||
@@ -4,15 +4,15 @@ import "time"
|
|||||||
|
|
||||||
type PrintBindStore struct {
|
type PrintBindStore struct {
|
||||||
ID int `orm:"column(id)" json:"id" db:"id"`
|
ID int `orm:"column(id)" json:"id" db:"id"`
|
||||||
CreatedAt time.Time `orm:"type(datetime)" json:"created_at" db:"created_at"` // 创建时间
|
CreatedAt time.Time `orm:"type(datetime)" json:"created_at" db:"created_at"` // 创建时间
|
||||||
UpdatedAt time.Time `orm:"type(datetime)" json:"updated_at" db:"updated_at"` // 更新时间
|
UpdatedAt time.Time `orm:"type(datetime)" json:"updated_at" db:"updated_at"` // 更新时间
|
||||||
StoreID int64 `orm:"column(store_id);type(int);size(11)" json:"store_id" db:"store_id"` // 门店id(为京西创建门店id)唯一
|
StoreID int64 `orm:"column(store_id);type(int);size(11)" json:"store_id" db:"store_id"` // 门店id(为京西创建门店id)唯一
|
||||||
StoreName string `orm:"type(varchar);size(255)" json:"store_name" db:"store_name"` // 门店名称
|
StoreName string `orm:"type(varchar);size(255)" json:"store_name" db:"store_name"` // 门店名称
|
||||||
StoreVendor int `orm:"type(int);size(2)" json:"store_vendor" db:"store_vendor"` // 门店平台
|
StoreVendor int `orm:"type(int);size(2)" json:"store_vendor" db:"store_vendor"` // 门店平台
|
||||||
PrintNo string `orm:"type(varchar);size(32);index" json:"print_no" db:"print_no"` // 打印机编号
|
PrintNo string `orm:"type(varchar);size(32);index" json:"print_no" db:"print_no"` // 打印机编号
|
||||||
UserId string `orm:"type(varchar);size(125)" json:"user_id" db:"user_id"` // 打印机所属用户
|
UserId string `orm:"column(user_id);type(varchar);size(125)" json:"user_id" db:"user_id"` // 打印机所属用户
|
||||||
StoreStatus int `orm:"type(int);size(2)" json:"store_status" db:"store_status"` // 门店状态
|
StoreStatus int `orm:"type(int);size(2)" json:"store_status" db:"store_status"` // 门店状态
|
||||||
BindStatus int `orm:"type(int);size(2)" json:"bind_status" db:"bind_status"` // 绑定状态
|
BindStatus int `orm:"type(int);size(2)" json:"bind_status" db:"bind_status"` // 绑定状态
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *PrintBindStore) TableUnique() [][]string {
|
func (v *PrintBindStore) TableUnique() [][]string {
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ type PrintSetting struct {
|
|||||||
CallNameSetting int `orm:"type(int);size(4);default(64)" json:"call_name_setting" db:"call_name_setting"` // 称谓设置 [64-默认老板]
|
CallNameSetting int `orm:"type(int);size(4);default(64)" json:"call_name_setting" db:"call_name_setting"` // 称谓设置 [64-默认老板]
|
||||||
SystemVoice int `orm:"type(tinyint);size(2);default(1)" json:"system_voice" db:"system_voice"` // 平台语音开关[1打开]
|
SystemVoice int `orm:"type(tinyint);size(2);default(1)" json:"system_voice" db:"system_voice"` // 平台语音开关[1打开]
|
||||||
|
|
||||||
PrintVoiceSetting string `orm:"type(varchar);size(255)" json:"print_voice_setting" db:"print_voice_setting"` // 打印机提示语音设置
|
PrintVoiceSetting string `orm:"type(varchar);size(512)" json:"print_voice_setting" db:"print_voice_setting"` // 打印机提示语音设置
|
||||||
OrderVoiceSetting string `orm:"type(varchar);size(255)" json:"order_voice_setting" db:"order_voice_setting"` // 订单提示设置
|
OrderVoiceSetting string `orm:"type(varchar);size(512)" json:"order_voice_setting" db:"order_voice_setting"` // 订单提示设置
|
||||||
RiderVoiceSetting string `orm:"type(varchar);size(255)" json:"rider_voice_setting" db:"rider_voice_setting"` // 骑手动态提示设置
|
RiderVoiceSetting string `orm:"type(varchar);size(512)" json:"rider_voice_setting" db:"rider_voice_setting"` // 骑手动态提示设置
|
||||||
CustomerVoiceSetting string `orm:"type(varchar);size(255)" json:"customer_voice_setting" db:"customer_voice_setting"` // 客户收货提示设置
|
CustomerVoiceSetting string `orm:"type(varchar);size(512)" json:"customer_voice_setting" db:"customer_voice_setting"` // 客户收货提示设置
|
||||||
PickingSetting string `orm:"type(varchar);size(255)" json:"picking_setting" db:"picking_setting"` // 拣货语音设置
|
PickingSetting string `orm:"type(varchar);size(512)" json:"picking_setting" db:"picking_setting"` // 拣货语音设置
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *PrintSetting) TableUnique() [][]string {
|
func (v *PrintSetting) TableUnique() [][]string {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ type SystemTemp struct {
|
|||||||
LastOperator string `json:"last_operator" db:"last_operator"`
|
LastOperator string `json:"last_operator" db:"last_operator"`
|
||||||
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
||||||
TempName string `json:"temp_name" db:"temp_name"` // 模板名称
|
TempName string `json:"temp_name" db:"temp_name"` // 模板名称
|
||||||
TempRank string `json:"temp_rank" db:"temp_rank"` // 模板顺序
|
TempRank string `orm:"type(text)" json:"temp_rank" db:"temp_rank"` // 模板顺序
|
||||||
Temp string `orm:"type(text)" json:"temp" db:"temp"` // 模板
|
Temp string `orm:"type(text)" json:"temp" db:"temp"` // 模板
|
||||||
UserId string `json:"user_id" db:"user_id"` // 所属用户
|
UserId string `json:"user_id" db:"user_id"` // 所属用户
|
||||||
TempType string `json:"temp_type" db:"temp_type"` // 模板类型 user_store/user_consumer
|
TempType string `json:"temp_type" db:"temp_type"` // 模板类型 user_store/user_consumer
|
||||||
|
|||||||
Reference in New Issue
Block a user