Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Id int64 `json:"id"` GuestName string `json:"guestName"` Content string `orm:"type(text)" json:"content"` Reply string `json:"reply"` PostId int64 `json:"postId"` PostTitle string `json:"postTitle"` CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"` }
func (*Message) Query ¶
func (this *Message) Query() orm.QuerySeter
type Post ¶
type Post struct { Id int64 `json:"id"` Title string `json:"title"` Content string `orm:"type(text)" json:"content"` Thumb string `json:"thumb"` Tag string `json:"tag"` PublishAt time.Time `orm:"auto_now_add;type(datetime)" json:"publishAt"` }
func (*Post) Query ¶
func (this *Post) Query() orm.QuerySeter
type User ¶
type User struct { Id int64 `json:"id"` UserName string `orm:"size(50)" json:"userName"` SiteTitle string `orm:"size(50)" json:"siteTitle"` Password string `orm:"size(100)" json:"-"` Thumb string `orm:"size(500)" json:"thumb"` HeadBgPic string `json:"headBgPic"` AboutMe string `orm:"size(2000)" json:"aboutMe"` }
func (*User) Query ¶
func (this *User) Query() orm.QuerySeter
Click to show internal directories.
Click to hide internal directories.