fusenapi/model/gmodel/fs_cloud_gen.go

16 lines
423 B
Go
Raw Normal View History

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-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} }