kobe6258 4 місяців тому
батько
коміт
3bbaaf137b
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      models/order/product_order.go

+ 2 - 1
models/order/product_order.go

@@ -27,7 +27,7 @@ const (
 	RefundStatusFailed     RefundStatus = "failed"
 	RefundStatusProcessing RefundStatus = "processing"
 
-	detailColumn = "id,order_id,user_id,template_user_id,product_id,status,created_time,updated_time,total_amount,expired_time,real_name,mobile,area_code,product_type,product_name"
+	detailColumn = "id,order_id,user_id,template_user_id,product_id,status,created_time,updated_time,total_amount,expired_time,real_name,mobile,area_code,product_type,product_name,valid_duration"
 )
 
 type ProductOrder struct {
@@ -54,6 +54,7 @@ type ProductOrder struct {
 	RefundStatus     RefundStatus                    `gorm:"column:refund_status;type:enum('pending','processing','failed','success');default:null;comment:'退款状态'" json:"refund_status"`
 	RefundFinishTime time.Time                       `gorm:"column:refund_finish_time;default:null;comment:'退款完成时间'" json:"refund_finish_time"`
 	Remark           string                          `gorm:"column:remark;size:255;default:null;comment:'备注'" json:"remark"`
+	ValidDuration    string                          `gorm:"column:valid_duration;default:null;comment:'订单有效期'" json:"valid_duration"`
 	IsDeleted        int                             `gorm:"column:is_deleted;size:1;default:0;comment:'是否删除'" json:"is_deleted"`
 	CreatedTime      time.Time                       `gorm:"column:created_time;default:null;comment:'创建时间'" json:"created_time"`
 	UpdatedTime      time.Time                       `gorm:"column:updated_time;default:null;comment:'更新时间'" json:"updated_time"`