Documentation
¶
Index ¶
- func GetSqlite() *gorm.DB
- func SetSqlite()
- type History
- func (h *History) Delete() error
- func (h *History) ExistsByTitle() (bool, error)
- func (h *History) GetAll() ([]History, error)
- func (h *History) GetById(id int64) error
- func (h *History) GetByTitle(title string) error
- func (h *History) Insert() error
- func (h *History) Sync()
- func (h *History) Update() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type History ¶
type History struct {
Id int64 `gorm:"primaryKey;autoIncrement;comment:主键"`
Title string `gorm:"comment:标题"`
CreateAt time.Time `gorm:"autoCreateTime;comment:创建时间"`
UpdateAt time.Time `gorm:"autoUpdateTime;comment:更新时间"`
DeleteAt gorm.DeletedAt `gorm:"index;comment:删除时间"`
}
func (*History) ExistsByTitle ¶
func (*History) GetByTitle ¶
Click to show internal directories.
Click to hide internal directories.