Files
toutoukan/model/article/article.go

16 lines
425 B
Go
Raw Normal View History

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"`
2025-08-12 17:06:48 +08:00
Status int `json:"status"`
2025-08-11 23:15:32 +08:00
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
}