更新表结构

This commit is contained in:
2025-08-11 23:15:32 +08:00
parent 61d74561ef
commit c383af752f

View File

@@ -1,6 +1,15 @@
package article package article
import "time"
type Document struct { type Document struct {
Title string `json:"title"` 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"`
} }