2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_cloud 云仓表
|
|
|
|
type FsCloud struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
|
|
|
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
|
|
|
|
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
|
|
|
type FsCloudModel struct{ db *gorm.DB }
|
|
|
|
|
|
|
|
func NewFsCloudModel(db *gorm.DB) *FsCloudModel { return &FsCloudModel{db} }
|