package model import "time" type PrintMsg struct { ModelIDCULD PrintNo string `json:"print_no" db:"print_no"` //打印机编号 Content string `orm:"type(text)" json:"content" db:"content"` //订单内容 OrderNo string `json:"order_no" db:"order_no"` //订单序号 Status int `json:"status" db:"status"` //打印状态 Comment string `json:"comment" db:"comment"` //失败原因 MsgID string `orm:"column(msg_id)" json:"msgID" db:"msg_id"` ContentEncryption string `orm:"type(text)" json:"content_encryption" db:"content_encryption"` //订单类容进制文件 } type Printer struct { ModelIDCULD AppID int `orm:"column(app_id)" json:"app_id" db:"app_id"` //应用编号 PrintNo string `json:"print_no" db:"print_no"` //打印机编号 PrintKey string `json:"print_key" db:"print_key"` //打印机识别码 Name string `json:"name" db:"name"` //打印机备注名 Status int `json:"status" db:"status"` //打印机状态 IsOnline int `json:"is_online" db:"is_online"` //1在线,0离线 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 Volume int `json:"volume" db:"volume"` //音量,1-5 ,对应打印机2-10 FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了,1表示超了 OfflineCount int `json:"offlineCount" db:"offline_count"` //掉线次数 UserId string `json:"user_id" db:"user_id"` //打印机所属用户 } type SystemTemp struct { ID int `orm:"column(id)" json:"id" db:"id"` CreatedAt *time.Time `json:"created_at" db:"created_at"` UpdatedAt *time.Time `json:"updated_at" db:"updated_at"` LastOperator string `json:"last_operator" db:"last_operator"` DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"` TempName string `json:"temp_name" db:"temp_name"` // 模板名称 TempRank string `orm:"type(text)" json:"temp_rank" db:"temp_rank"` // 模板顺序 Temp string `orm:"type(text)" json:"temp" db:"temp"` // 模板 UserId string `json:"user_id" db:"user_id"` // 所属用户 TempType string `json:"temp_type" db:"temp_type"` // 模板类型 TempSize string `json:"temp_size" db:"temp_size"` // 模板尺寸 big/medium/small PrintSn string `json:"print_sn" db:"print_sn"` // 模板所属打印机 IsUse int `json:"is_use" db:"is_use"` // 默认使用 1-使用/2-不使用 } type Apps struct { ID int `orm:"column(id)" json:"id" db:"id"` CreatedAt *time.Time `json:"created_at" db:"created_at"` UpdatedAt *time.Time `json:"updated_at" db:"updated_at"` LastOperator string `json:"last_operator" db:"last_operator"` DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"` UserID string `orm:"column(user_id)" json:"user_id" db:"user_id"` //属于哪个账号的 Name string `json:"name"` //应用名称 Type int `json:"type"` //应用类型 AppKey string `json:"app_key" db:"app_key"` //Key Status int `json:"status"` //状态 Mobile string `json:"mobile"` //手机号 } type MenuDetail struct { ID int `orm:"column(id)" json:"id" db:"id"` CreatedAt *time.Time `json:"created_at" db:"created_at"` UpdatedAt *time.Time `json:"updated_at" db:"updated_at"` LastOperator string `json:"last_operator" db:"last_operator"` DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"` MenuID int `orm:"column(menu_id)" json:"menu_id" db:"menu_id"` Name string `json:"name"` Content string `json:"content"` URL string `orm:"column(url)" json:"url" db:"url"` Method string `json:"method"` PublicParam string `json:"public_param" db:"public_param"` PrivateParam string `json:"private_param" db:"private_param"` CallParam string `json:"call_param" db:"call_param"` ReturnParam string `json:"return_param" db:"return_param"` ReturnEX string `orm:"column(return_ex)" json:"return_ex" db:"return_ex"` } //流量支出 type SimFlowExpend struct { ID int `orm:"column(id)" json:"id" db:"id"` CreatedAt *time.Time `json:"created_at" db:"created_at"` UpdatedAt *time.Time `json:"updated_at" db:"updated_at"` LastOperator string `json:"last_operator" db:"last_operator"` IccID string `orm:"column(icc_id)" json:"icc_id" db:"icc_id"` //sim卡iccid Flow float64 `json:"flow"` //流量数 FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位 } //流量划入 type SimFlowIncome struct { ID int `orm:"column(id)" json:"id" db:"id"` CreatedAt *time.Time `json:"created_at" db:"created_at"` UpdatedAt *time.Time `json:"updated_at" db:"updated_at"` LastOperator string `json:"last_operator" db:"last_operator"` IccID string `orm:"column(icc_id)" json:"icc_id" db:"icc_id"` //sim卡iccid Flow float64 `json:"flow"` //流量数 FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位 IncomeType int `json:"income_type" db:"income_type"` //1 表示系统每月自动划转,2 表示商户自己冲的 OrderID string `orm:"column(order_id)" json:"order_id" db:"order_id"` //订单号 } type PayOrder struct { ID int `orm:"column(id)" json:"id" db:"id"` CreatedAt *time.Time `json:"created_at" db:"created_at"` OrderID string `orm:"column(order_id)" json:"order_id" db:"order_id"` //订单号 UserID string `orm:"column(user_id)" json:"user_id" db:"user_id"` //用户ID OrderType string `json:"order_type" db:"order_type"` //订单类型,流量充值等 Origin string `json:"origin"` //订单来源,小程序,开放后台 Status int `json:"status"` //订单状态,待支付2,已支付5,支付成功110,支付失败115 PayPrice int64 `json:"pay_price" db:"pay_price"` //支付金额 TransactionID string `orm:"column(transaction_id)" json:"transaction_id" db:"transaction_id"` // 支付成功后,支付方生成的事务ID PayFinishedAt *time.Time `json:"pay_finished_at" db:"pay_finished_at"` PrepayID string `orm:"column(prepay_id)" json:"prepay_id" db:"prepay_id"` // 下单后,支付前,支付方生成的事务ID OriginalData *string `json:"original_data" db:"original_data"` Comment string `json:"comment"` //备注 ThingID string `orm:"column(thing_id)" json:"thing_id" db:"thing_id"` //订单充值项目ID TypeID string `orm:"column(type_id)" json:"type_id" db:"type_id"` //类型ID,充流量就是套餐对应的id } type OrderPay struct { ID int `orm:"column(id)" json:"id" db:"id"` CreatedAt time.Time `orm:"type(datetime)" json:"created_at" db:"created_at"` // 创建时间 UpdatedAt time.Time `orm:"type(datetime)" json:"updated_at" db:"updated_at"` // 更新时间 PayOrderID string `orm:"column(pay_order_id);size(48)" json:"pay_order_id" db:"pay_order_id"` // 京西支付定单号 PayType int `orm:"type(int);size(2)" json:"pay_type" db:"pay_type"` // 支付类型[1-微信,2-通联,3-抖音] VendorPayType string `orm:"size(48)" json:"vendorPayType"` // VendorOrderID string `orm:"column(vendor_order_id);size(48);index" json:"vendor_order_id" db:"vendor_order_id"` // 支付对应的购物订单号 PrintNo string `orm:"column(print_no);size(48);index" json:"print_no" db:"print_no"` // 充值打印机编号 Status int `orm:"type(int);size(2)" json:"status" json:"status" db:"status"` // 订单支付状态 PayCreatedAt time.Time `orm:"type(datetime);index" json:"pay_created_at" db:"pay_created_at"` // 下单时间 PayFinishedAt time.Time `orm:"type(datetime)" json:"pay_finished_at" db:"pay_finished_at"` // 支付完成时间 TotalFee int `orm:"type(int);size(11)" json:"total_fee" db:"total_fee"` // 支付金额 PrepayID string `orm:"column(prepay_id);index;size(48)" json:"prepay_id" db:"prepay_id"` // 下单后,支付前,支付方生成的事务ID TransactionID string `orm:"column(transaction_id);index;size(48)" json:"transaction_id" db:"transaction_id"` // 支付成功后,支付方生成的事务ID OriginalData string `orm:"type(text)" json:"-"` // 返回消息 VendorID int `orm:"column(vendor_id)" json:"vendor_id" db:"vendor_id"` // 购物订单所属厂商代码(当前只有京西) CodeURL string `orm:"column(code_url);size(3200)" json:"codeURL"` // }