修改修改公共beans包路径
This commit is contained in:
@@ -3,7 +3,7 @@ package entity
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gitee.com/red-future---jilin-g/common/do"
|
||||
"gitee.com/red-future---jilin-g/common/beans"
|
||||
)
|
||||
|
||||
// OrderBase 订单基础信息
|
||||
@@ -13,16 +13,16 @@ import (
|
||||
// 例如:orders_pending, orders_paid, orders_shipped, orders_completed, orders_cancelled
|
||||
|
||||
type OrderBase struct {
|
||||
do.MongoBaseDO `bson:",inline"`
|
||||
OrderNo string `bson:"order_no" json:"order_no"` // 订单号
|
||||
UserID int64 `bson:"user_id" json:"user_id"` // 用户ID
|
||||
TotalAmount int64 `bson:"total_amount" json:"total_amount"` // 订单总金额(分)
|
||||
PayAmount int64 `bson:"pay_amount" json:"pay_amount"` // 实付金额(分)
|
||||
OrderType string `bson:"order_type" json:"order_type"` // 订单类型:normal-普通订单
|
||||
Subject string `bson:"subject" json:"subject"` // 订单标题
|
||||
Description string `bson:"description" json:"description"` // 订单描述
|
||||
OrderItems []OrderItem `bson:"order_items" json:"order_items"` // 订单商品项
|
||||
ExpiredAt *time.Time `bson:"expired_at,omitempty" json:"expired_at"` // 过期时间
|
||||
beans.MongoBaseDO `bson:",inline"`
|
||||
OrderNo string `bson:"order_no" json:"order_no"` // 订单号
|
||||
UserID int64 `bson:"user_id" json:"user_id"` // 用户ID
|
||||
TotalAmount int64 `bson:"total_amount" json:"total_amount"` // 订单总金额(分)
|
||||
PayAmount int64 `bson:"pay_amount" json:"pay_amount"` // 实付金额(分)
|
||||
OrderType string `bson:"order_type" json:"order_type"` // 订单类型:normal-普通订单
|
||||
Subject string `bson:"subject" json:"subject"` // 订单标题
|
||||
Description string `bson:"description" json:"description"` // 订单描述
|
||||
OrderItems []OrderItem `bson:"order_items" json:"order_items"` // 订单商品项
|
||||
ExpiredAt *time.Time `bson:"expired_at,omitempty" json:"expired_at"` // 过期时间
|
||||
}
|
||||
|
||||
// OrderItem 订单商品项
|
||||
|
||||
Reference in New Issue
Block a user