Question APIs

This commit is contained in:
2025-02-07 19:25:55 +08:00
parent 9d9b2ac866
commit 57b908e5a0
5 changed files with 333 additions and 2 deletions

View File

@ -10,8 +10,9 @@ import (
)
const (
PostTypeStory = "story"
PostTypeArticle = "article"
PostTypeStory = "story"
PostTypeArticle = "article"
PostTypeQuestion = "question"
)
type PostVisibilityLevel = int8
@ -81,6 +82,12 @@ type PostArticleBody struct {
Attachments []string `json:"attachments"`
}
type PostQuestionBody struct {
PostStoryBody
Answer *uint `json:"answer"`
Reward float64 `json:"reward"`
}
type PostInsight struct {
cruda.BaseModel