2023-06-12 16:47:48 +08:00
|
|
|
package gmodel
|
|
|
|
|
2023-06-12 17:00:37 +08:00
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
2023-06-12 14:35:36 +08:00
|
|
|
|
|
|
|
type FsStandardLogo struct {
|
|
|
|
Id int64 `gorm:"primary_key" json:"id"` // ID
|
|
|
|
Name *string `gorm:"default:''" json:"name"` // logo名称
|
|
|
|
Image *string `gorm:"default:''" json:"image"` // 图片地址
|
|
|
|
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
|
|
|
Status *int64 `gorm:"default:1" json:"status"` // 状态 1正常 0删除
|
2023-06-12 14:05:35 +08:00
|
|
|
}
|
2023-06-12 16:47:48 +08:00
|
|
|
type FsStandardLogoModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewFsStandardLogoModel(db *gorm.DB) *FsStandardLogoModel {
|
|
|
|
return &FsStandardLogoModel{db}
|
|
|
|
}
|