2023-06-16 11:51:41 +00:00
|
|
|
package model
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_cloud 云仓表
|
|
|
|
type FsCloud struct {
|
2023-06-16 11:29:48 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;" 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} }
|