Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { ID int64 `xorm:"pk autoincr 'id'" json:"id"` Name string `xorm:"notnull unique" json:"name"` Created time.Time `xorm:"created"` Updated time.Time `xorm:"updated"` }
Category entity
type Post ¶
type Post struct { ID int64 `xorm:"pk autoincr 'id'" json:"id"` Desc string `xorm:"notnull" json:"summary"` From int64 `xorm:"notnull 'source_id'" json:"source_id"` Title string `xorm:"notnull" json:"title"` Link string `xorm:"notnull unique" json:"link"` Content string `json:"content"` Author string `json:"author"` CreateAt time.Time `xorm:"notnull" json:"create_at" time_format:"2006-01-02T15:04:05Z"` DeleteAt time.Time `xorm:"deleted" time_format:"2006-01-02T15:04:05Z"` Unread bool `json:"unread"` }
Post entity
type Source ¶
type Source struct { ID int64 `xorm:"pk autoincr 'id'" json:"id"` Category int64 `xorm:"notnull 'category_id'" json:"category_id"` URL string `xorm:"notnull 'url'" json:"url"` ETag string `xorm:"'etag'" json:"etag"` LastModified string `json:"last_modified"` Alias string `xorm:"notnull" json:"alias"` Kind string `xorm:"notnull"` CreateAt time.Time `xorm:"created" json:"create_at" time_format:"2006-01-02T15:04:05Z"` DeleteAt time.Time `xorm:"deleted" time_format:"2006-01-02 15:04:05"` Updated time.Time `xorm:"last_updated" time_format:"2006-01-02T15:04:05Z"` }
Source entity
Click to show internal directories.
Click to hide internal directories.