Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type PostAdapter ¶
type PostAdapter struct { Title string `json:"p.title"` Content string `json:"p.content"` Created time.Time `json:"p.created"` Updated time.Time `json:"p.updated"` PublishTime time.Time `json:"p.publish_time"` Status string `json:"p.status"` UserId int `json:"id(u)"` }
func (*PostAdapter) Transform ¶
func (pa *PostAdapter) Transform() *Post
Transform transform a PostAdapter into a Post struct
Click to show internal directories.
Click to hide internal directories.