更新表结构
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
package article
|
||||
|
||||
import "time"
|
||||
|
||||
type Document struct {
|
||||
Title string `json:"title"`
|
||||
Body string `json:"body"`
|
||||
Content string `json:"content"`
|
||||
AuthorId string `json:"author_id"`
|
||||
Status string `json:"status"`
|
||||
TotalVotes int `json:"total_votes"`
|
||||
IsMultiple int `json:"is_multiple"`
|
||||
MaxChoices int `json:"max_choices"`
|
||||
ViewCount int `json:"view_count"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user