完善发货链接签名和作废恢复
This commit is contained in:
@@ -196,29 +196,31 @@ type FulfillmentOrder struct {
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
||||
|
||||
MerchantID uint `gorm:"not null;index;uniqueIndex:idx_order_client_no" json:"merchant_id"`
|
||||
OrderNo string `gorm:"uniqueIndex;size:64;not null" json:"order_no"`
|
||||
ClientOrderNo string `gorm:"size:96;not null;uniqueIndex:idx_order_client_no" json:"client_order_no"`
|
||||
MerchantProductID uint `gorm:"not null;index" json:"merchant_product_id"`
|
||||
ProductSKU string `gorm:"size:96;not null" json:"product_sku"`
|
||||
ProductName string `gorm:"size:160;not null" json:"product_name"`
|
||||
Quantity int64 `gorm:"not null;default:1" json:"quantity"`
|
||||
BaseAmount int64 `gorm:"not null;default:0" json:"base_amount"`
|
||||
FeeType string `gorm:"size:16;not null;default:rate" json:"fee_type"`
|
||||
FeeRateBP int64 `gorm:"not null;default:0" json:"fee_rate_bp"`
|
||||
FeeFixedAmount int64 `gorm:"not null;default:0" json:"fee_fixed_amount"`
|
||||
ServiceFeeAmount int64 `gorm:"not null;default:0" json:"service_fee_amount"`
|
||||
Amount int64 `gorm:"not null" json:"amount"`
|
||||
Currency string `gorm:"size:12;not null;default:POINT" json:"currency"`
|
||||
PaymentStatus string `gorm:"size:16;not null;default:pending;index" json:"payment_status"`
|
||||
FulfillmentStatus string `gorm:"size:16;not null;default:pending;index" json:"fulfillment_status"`
|
||||
BuyerReference string `gorm:"size:128" json:"buyer_reference"`
|
||||
RequestData string `gorm:"type:text" json:"request_data"`
|
||||
ResultData string `gorm:"type:text" json:"result_data"`
|
||||
ProviderOrderNo string `gorm:"size:96;index" json:"provider_order_no"`
|
||||
FailureReason string `gorm:"size:512" json:"failure_reason"`
|
||||
CancelledAt *time.Time `json:"cancelled_at"`
|
||||
DeliveredAt *time.Time `json:"delivered_at"`
|
||||
MerchantID uint `gorm:"not null;index;uniqueIndex:idx_order_client_no" json:"merchant_id"`
|
||||
OrderNo string `gorm:"uniqueIndex;size:64;not null" json:"order_no"`
|
||||
ClientOrderNo string `gorm:"size:96;not null;uniqueIndex:idx_order_client_no" json:"client_order_no"`
|
||||
MerchantProductID uint `gorm:"not null;index" json:"merchant_product_id"`
|
||||
ProductSKU string `gorm:"size:96;not null" json:"product_sku"`
|
||||
ProductName string `gorm:"size:160;not null" json:"product_name"`
|
||||
Quantity int64 `gorm:"not null;default:1" json:"quantity"`
|
||||
BaseAmount int64 `gorm:"not null;default:0" json:"base_amount"`
|
||||
FeeType string `gorm:"size:16;not null;default:rate" json:"fee_type"`
|
||||
FeeRateBP int64 `gorm:"not null;default:0" json:"fee_rate_bp"`
|
||||
FeeFixedAmount int64 `gorm:"not null;default:0" json:"fee_fixed_amount"`
|
||||
ServiceFeeAmount int64 `gorm:"not null;default:0" json:"service_fee_amount"`
|
||||
Amount int64 `gorm:"not null" json:"amount"`
|
||||
Currency string `gorm:"size:12;not null;default:POINT" json:"currency"`
|
||||
PaymentStatus string `gorm:"size:16;not null;default:pending;index" json:"payment_status"`
|
||||
FulfillmentStatus string `gorm:"size:16;not null;default:pending;index" json:"fulfillment_status"`
|
||||
BuyerReference string `gorm:"size:128" json:"buyer_reference"`
|
||||
RequestData string `gorm:"type:text" json:"request_data"`
|
||||
ResultData string `gorm:"type:text" json:"result_data"`
|
||||
ProviderOrderNo string `gorm:"size:96;index" json:"provider_order_no"`
|
||||
FailureReason string `gorm:"size:512" json:"failure_reason"`
|
||||
CancelledAt *time.Time `json:"cancelled_at"`
|
||||
DeliveredAt *time.Time `json:"delivered_at"`
|
||||
DeliveryLinkExpiresAt *time.Time `json:"delivery_link_expires_at"`
|
||||
DeliveryLinkRevokedAt *time.Time `json:"delivery_link_revoked_at"`
|
||||
|
||||
MerchantProduct *MerchantProduct `gorm:"foreignKey:MerchantProductID" json:"merchant_product,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user