package
Version:
v0.0.0-...-2b09096
Opens a new window with list of versions in this module.
Published: May 26, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CommonModel struct {
CreateTime time.Time `json:"-" gorm:"type:datetime;default:CURRENT_TIMESTAMP"`
UpdateTime time.Time `json:"-" gorm:"type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index"`
}
type Property struct {
UserType uint8 `json:"ut"`
OnlineTime int64 `json:"ot"`
}
type Template struct {
CommonModel
ID uint64 `json:"id" gorm:"auto_increment;primary_key"`
Name string `json:"name" gorm:"not null;size:60"`
Amount int64 `json:"amount" gorm:"not null"`
Custom string `json:"custom" gorm:"type:text"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.