Discover Packages
github.com/wmsuke/WordsOfWisdom
domains
models
package
Version:
v0.0.0-...-26a59e4
Opens a new window with list of versions in this module.
Published: Jun 12, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2 modules, 4 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Categories struct {
ID int `json:"id" xorm:"'id' not null pk autoincr INT(11)"`
Category string `json:"category" xorm:"'category' not null default '' VARCHAR(100)"`
Timestamp time .Time `json:"timestamp" xorm:"'timestamp' not null default 'CURRENT_TIMESTAMP' TIMESTAMP"`
}
type Favorites struct {
Id int `xorm:"not null pk autoincr INTEGER"`
WordId int `xorm:"not null INTEGER"`
UserId int `xorm:"not null INTEGER"`
}
type Nices struct {
Id int `xorm:"not null pk autoincr INTEGER"`
WordId int `xorm:"not null INTEGER"`
UserId int `xorm:"not null INTEGER"`
}
type Users struct {
Id int `xorm:"not null pk autoincr INTEGER"`
Key string `xorm:"not null TEXT"`
AccessDate time .Time `xorm:"not null DATETIME"`
}
type Word struct {
ID int `json:"id"`
Word string `json:"word"`
Author string `json:"author"`
Category string `json:"category"`
Nice int64 `json:"nice"`
Favortite int64 `json:"favortite"`
NiceStatus bool `json:"nice_status"`
FavortiteStatus bool `json:"favortite_status"`
}
type Words struct {
Id int `xorm:"not null pk autoincr INTEGER"`
Word string `xorm:"not null TEXT"`
Author string `xorm:"not null TEXT"`
CategoryId int `xorm:"not null INTEGER"`
Timestamp time .Time `xorm:"not null default 'now()' DATETIME"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.