18 lines
628 B
Go
18 lines
628 B
Go
|
package gmodel
|
||
|
|
||
|
import (
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
// fs_order_remark 订单备注表
|
||
|
type FsOrderRemark struct {
|
||
|
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||
|
OrderId *int64 `gorm:"index;default:'0';" json:"order_id"` // 订单id
|
||
|
Remark *string `gorm:"default:'';" json:"remark"` // 订单备注
|
||
|
AdminId *int64 `gorm:"default:'0';" json:"admin_id"` // 后台操作人员
|
||
|
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||
|
}
|
||
|
type FsOrderRemarkModel struct{ db *gorm.DB }
|
||
|
|
||
|
func NewFsOrderRemarkModel(db *gorm.DB) *FsOrderRemarkModel { return &FsOrderRemarkModel{db} }
|