You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
2.0 KiB

package model
import (
"shop-api/global"
"time"
)
type OrderPostSale struct { // 订单售后记录
global.MG_MODEL
Type int `gorm:"type:tinyint(1)" json:"type"` // 售后类型 1:仅退款
OrderID string `gorm:"size:50" json:"orderId"` // 订单号
StoreNo string `gorm:"size:60" json:"store_no"` // 店铺编号
UserID string `gorm:"size:50" json:"userId"` // 用户id
Amount float64 `gorm:"type:decimal(10,2)" json:"amount"` // 退款金额
Reason string `gorm:"size:1" json:"reason"` // 退款原因
Images string `gorm:"size:255" json:"images"` // 图片
Videos string `gorm:"size:255" json:"videos"` // 视频
Status int `gorm:"type:tinyint(1)" json:"status"` // 处理状态 1:已提交 2:已处理 3:已拒绝 4:已撤回
Remark string `gorm:"size:255" json:"remark"` // 原因
ExamineTime *time.Time `gorm:"" json:"examine_time"` // 审核时间
RefundStatus int `gorm:"type:tinyint(1)" json:"refundStatus"` // 退款状态 1:退款中 2:退款成功 3:退款失败
RefundTime *time.Time `gorm:"" json:"refund_time"` // 退款时间
}
type PostSale struct {
ID uint `json:"id"` // id
OrderID string `json:"orderId"` // 订单id
Status int `json:"status"` // 处理状态 1:已提交 2:已处理 3:已拒绝 4:已撤回
Remark string `json:"remark"` // 审核原因
ExamineTime *time.Time `json:"examine_time"` // 审核时间
RefundStatus int `json:"refundStatus"` // 退款状态 1:退款中 2:退款成功 3:退款失败
RefundTime *time.Time `json:"refund_time"` // 退款时间
CreatedAt *time.Time `json:"created_at"` // 创建时间
}
func (OrderPostSale) TableName() string {
return "order_post_sale"
}
func (PostSale) TableName() string {
return "order_post_sale"
}