2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
2023-10-11 04:23:41 +00:00
|
|
|
"time"
|
2023-06-16 11:04:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// fs_contact 该表暂未使用
|
|
|
|
type FsContact struct {
|
2023-10-11 04:23:41 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
|
|
|
Name *string `gorm:"default:'';" json:"name"` //
|
|
|
|
Email *string `gorm:"index;default:'';" json:"email"` // 邮箱
|
|
|
|
Subject *string `gorm:"default:'0';" json:"subject"` // 主题
|
|
|
|
Message *string `gorm:"default:'';" json:"message"` // 消息
|
|
|
|
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
|
|
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否已处理
|
|
|
|
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
|
|
|
Phone *string `gorm:"default:'';" json:"phone"` //
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsContactModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsContactModel(db *gorm.DB) *FsContactModel {
|
|
|
|
return &FsContactModel{db: db, name: "fs_contact"}
|
|
|
|
}
|