feat:优化项目信息
This commit is contained in:
19
app/common/model/order_log.go
Normal file
19
app/common/model/order_log.go
Normal file
@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
// OrderLog 订单日志信息模型
|
||||
type OrderLog struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
OrderID uint64 `gorm:"column:uid;type:int(11);default:0;comment:订单ID" json:"-"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:'';comment:备注" json:"remark"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *OrderLog) TableName() string {
|
||||
return "order_log"
|
||||
}
|
||||
|
||||
func NewOrderLog() *OrderLog {
|
||||
return &OrderLog{}
|
||||
}
|
||||
Reference in New Issue
Block a user