fusenapi/model/gmodel/fs_standard_logo_gen.go

23 lines
719 B
Go
Raw Normal View History

2023-06-19 09:53:35 +08:00
package gmodel
2023-06-16 19:04:13 +08:00
import (
"gorm.io/gorm"
)
2023-06-16 19:29:48 +08:00
// fs_standard_logo 标准logo
2023-06-16 19:04:13 +08:00
type FsStandardLogo struct {
2023-06-19 18:27:31 +08:00
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
Name *string `gorm:"default:'';" json:"name"` //
Image *string `gorm:"default:'';" json:"image"` //
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
Status *int64 `gorm:"default:1;" json:"status"` // 状态 1正常 0删除
2023-06-16 19:04:13 +08:00
}
type FsStandardLogoModel struct {
db *gorm.DB
name string
}
2023-06-16 19:04:13 +08:00
func NewFsStandardLogoModel(db *gorm.DB) *FsStandardLogoModel {
return &FsStandardLogoModel{db: db, name: "fs_standard_logo"}
}