一物一码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

53 行
5.0 KiB

  1. package model
  2. import (
  3. "time"
  4. )
  5. type MallOrd struct {
  6. OrdId int64 `json:"ord_id" xorm:"not null pk BIGINT(20)"`
  7. MainOrdId int64 `json:"main_ord_id" xorm:"not null comment('主订单号') index BIGINT(20)"`
  8. Uid int `json:"uid" xorm:"comment('用户id') index INT(11)"`
  9. BuyerName string `json:"buyer_name" xorm:"comment('购买人') VARCHAR(255)"`
  10. BuyerPhone string `json:"buyer_phone" xorm:"comment('购买人手机号') VARCHAR(255)"`
  11. CostPrice string `json:"cost_price" xorm:"comment('价格') DECIMAL(12,2)"`
  12. CostVirtualCoin string `json:"cost_virtual_coin" xorm:"comment('消耗的虚拟币') DECIMAL(12,2)"`
  13. VirtualCoinId int `json:"virtual_coin_id" xorm:"comment('使用的虚拟币id') INT(11)"`
  14. State int `json:"state" xorm:"comment('订单状态:0未支付 1已支付 2已发货 3已完成 4售后中 5部分售后中 6关闭') TINYINT(1)"`
  15. PayTime time.Time `json:"pay_time" xorm:"comment('支付时间') DATETIME"`
  16. PayChannel int `json:"pay_channel" xorm:"not null comment('支付方式:1balance 2alipay 3wx_pay') TINYINT(1)"`
  17. ShippingTime time.Time `json:"shipping_time" xorm:"comment('发货时间') DATETIME"`
  18. LogisticCompany string `json:"logistic_company" xorm:"not null default '' comment('物流公司') VARCHAR(255)"`
  19. LogisticNum string `json:"logistic_num" xorm:"not null default '' comment('物流单号') VARCHAR(255)"`
  20. ReceiverPhone string `json:"receiver_phone" xorm:"not null default '' comment('收货人手机号') VARCHAR(20)"`
  21. ReceiverName string `json:"receiver_name" xorm:"not null default '' comment('收货人名字') VARCHAR(255)"`
  22. ReceiverAddressDetail string `json:"receiver_address_detail" xorm:"not null default '' comment('收货人地址') VARCHAR(255)"`
  23. ShippingType int `json:"shipping_type" xorm:"not null default 1 comment('运送方式:1快递送货') TINYINT(1)"`
  24. CouponDiscount string `json:"coupon_discount" xorm:"not null default 0.00 comment('优惠券折扣额') DECIMAL(12,2)"`
  25. DiscountPrice string `json:"discount_price" xorm:"not null default 0.00 comment('立减') DECIMAL(12,2)"`
  26. UserCouponId int64 `json:"user_coupon_id" xorm:"comment('使用的优惠券id') BIGINT(20)"`
  27. ReturnInsuranceFee string `json:"return_insurance_fee" xorm:"not null default 0.00 comment('退货无忧费用') DECIMAL(12,2)"`
  28. IsReceipt int `json:"is_receipt" xorm:"not null default 0 comment('是否开具发票 0否 1是') TINYINT(255)"`
  29. ShippingFee string `json:"shipping_fee" xorm:"not null default 0.00 comment('运费') DECIMAL(12,2)"`
  30. Comment string `json:"comment" xorm:"not null comment('备注') VARCHAR(2048)"`
  31. ProvinceName string `json:"province_name" xorm:"not null default '' comment('收货省份') VARCHAR(255)"`
  32. CityName string `json:"city_name" xorm:"not null default '' comment('收货城市') VARCHAR(255)"`
  33. CountyName string `json:"county_name" xorm:"not null default '' comment('收货区域') VARCHAR(255)"`
  34. PayNum string `json:"pay_num" xorm:"not null default '' comment('交易流水') VARCHAR(255)"`
  35. ConfirmTime time.Time `json:"confirm_time" xorm:"comment('确认时间') DATETIME"`
  36. EstimateIntegral string `json:"estimate_integral" xorm:"not null default 0.0000 comment('预计积分') DECIMAL(12,4)"`
  37. EstimateCommission string `json:"estimate_commission" xorm:"not null default 0.0000 comment('预计佣金') DECIMAL(12,4)"`
  38. CreateTime time.Time `json:"create_time" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"`
  39. UpdateTime time.Time `json:"update_time" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"`
  40. DeletedTime time.Time `json:"deleted_time" xorm:"comment('删除时间') DATETIME"`
  41. FinishTime time.Time `json:"finish_time" xorm:"comment('完成时间') DATETIME"`
  42. OrderType int `json:"order_type" xorm:"not null default 1 comment('订单类型:1普通订单 2拼团订单') TINYINT(3)"`
  43. Data string `json:"data" xorm:"comment('订单相关的数据') TEXT"`
  44. GroupBuyCommission string `json:"group_buy_commission" xorm:"default 0.0000 comment('团购未中奖佣金') DECIMAL(12,4)"`
  45. GroupBuySettleTime time.Time `json:"group_buy_settle_time" xorm:"comment('拼团结算时间') DATETIME"`
  46. SettleTime time.Time `json:"settle_time" xorm:"comment('结算时间') DATETIME"`
  47. GroupBuyCommissionTime time.Time `json:"group_buy_commission_time" xorm:"comment('拼团分佣时间') DATETIME"`
  48. CommissionTime time.Time `json:"commission_time" xorm:"comment('分佣时间') DATETIME"`
  49. ShareUid int `json:"share_uid" xorm:"comment('分享人') INT(11)"`
  50. }