2025-08-11 23:10:36 +08:00
|
|
|
package article
|
|
|
|
|
|
2025-08-11 23:15:32 +08:00
|
|
|
import "time"
|
|
|
|
|
|
2025-08-11 23:10:36 +08:00
|
|
|
type Document struct {
|
2025-08-11 23:15:32 +08:00
|
|
|
Title string `json:"title"`
|
|
|
|
|
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"`
|
2025-08-11 23:10:36 +08:00
|
|
|
}
|