Discover Packages
github.com/kanocz/modelq
examples
custom
package
Version:
v0.0.0-...-fa15f91
Opens a new window with list of versions in this module.
Published: Sep 30, 2016
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Article struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
Title string `json:"title"`
State int `json:"state"`
Content string `json:"content"`
Donation float64 `json:"donation"`
CreateTime time .Time `json:"create_time"`
UpdateTime time .Time `json:"update_time"`
}
type Comment struct {
ArticleId int64 `json:"article_id"`
}
type User struct {
Id int64 `json:"id"`
Name string `json:"name"`
Password string `json:"password"`
IsMarried int `json:"is_married"`
Age int `json:"age"`
CreateTime time .Time `json:"create_time"`
UpdateTime time .Time `json:"update_time"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.