Article
This commit is contained in:
@@ -5,13 +5,14 @@ import (
|
||||
)
|
||||
|
||||
type Image struct {
|
||||
Id int `json:"id" db:"id"`
|
||||
ID int `json:"id" db:"id"`
|
||||
Width int `json:"width" db:"width"`
|
||||
Height int `json:"height" db:"height"`
|
||||
Content string `json:"content" db:"content"`
|
||||
ArticleCategoryTopId int `json:"article_category_top_id" db:"article_category_top_id"`
|
||||
PraiseCount int `json:"praise_count" db:"praise_count"`
|
||||
CollectCount int `json:"collect_count" db:"collect_count"`
|
||||
ArticleID int `json:"article_id" db:"article_id"`
|
||||
UserID int `json:"user_id" db:"user_id"`
|
||||
User User `json:"user" db:"user"`
|
||||
Article Article `json:"article" db:"article"`
|
||||
@@ -29,7 +30,7 @@ type User struct {
|
||||
}
|
||||
|
||||
type Article struct {
|
||||
Id int `json:"id" db:"id"`
|
||||
ID int `json:"id" db:"id"`
|
||||
Title string `json:"title" db:"title"`
|
||||
Tags string `json:"tags" db:"tags"`
|
||||
CreateTime time.Time `json:"create_time" db:"create_time"`
|
||||
|
Reference in New Issue
Block a user