✨ Question APIs
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user