2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_factory 该表废弃
|
|
|
|
type FsFactory struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
|
|
|
Name *string `gorm:"default:'';" json:"name"` // 名字
|
|
|
|
Addr *string `gorm:"default:'';" json:"addr"` // 地址
|
|
|
|
Contact *string `gorm:"default:'';" json:"contact"` // 联系人
|
|
|
|
Mobile *string `gorm:"default:'';" json:"mobile"` // 联系电话
|
|
|
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否禁用
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsFactoryModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsFactoryModel(db *gorm.DB) *FsFactoryModel {
|
|
|
|
return &FsFactoryModel{db: db, name: "fs_factory"}
|
|
|
|
}
|