@ -208,6 +208,7 @@ func ConfirmOrderTradeSuc(orderInfo *order.Information, clientIP ...string) erro
Level: 0,
ParentID: s1.ID,
UpgradeTime1: formatime.NewSecondNow(),
RootID: s1.RootID,
}).Error; e != nil {
return e
}
@ -46,6 +46,7 @@ type Information struct {
ParentID uint `json:"parent_id"`
UpgradeTime1 formatime.Second `json:"upgrade_time1"`
UpgradeTime2 formatime.Second `json:"upgrade_time2"`
RootID uint `json:"root_id"`
const (
@ -37,6 +37,7 @@ type RecookUserInfoModel struct {
OrderList []manage.RecookOrderInfoModel `json:"-" gorm:"foreignKey:user_id"`
InvitationNo string
Identifier string
RootID uint
// TableName sets the insert table name for this struct type