...
|
...
|
@@ -19,23 +19,23 @@ type BulletinReleaseRequest struct { |
|
|
AllowClose int `json:"allow_close"`
|
|
|
//AllowCondition int `json:"allow_condition"`
|
|
|
QuestionSwitch int `json:"question_switch"`
|
|
|
Receiver []VisibleObject `json:"receiver" valid:"Required"`
|
|
|
Receiver []VisibleObject `json:"receiver"`
|
|
|
Question Question `json:"question"`
|
|
|
Cover Cover `json:"cover" valid:"Required"`
|
|
|
Cover Cover `json:"cover"`
|
|
|
IsPublish int `json:"is_publish"` //是否直接发布 0:否 1:直接发布
|
|
|
}
|
|
|
type Question struct {
|
|
|
Id int `json:"id"`
|
|
|
Type int `json:"type" valid:"Required"`
|
|
|
Title string `json:"title" valid:"Required"`
|
|
|
Type int `json:"type"`
|
|
|
Title string `json:"title" `
|
|
|
Content []QuestionContent `json:"content" valid:"Required"`
|
|
|
}
|
|
|
type QuestionContent struct {
|
|
|
Id int `json:"id" valid:"Required"`
|
|
|
Content string `json:"content" valid:"Required"`
|
|
|
Id int `json:"id"`
|
|
|
Content string `json:"content"`
|
|
|
}
|
|
|
type Cover struct {
|
|
|
Path string `json:"path" valid:"Required"`
|
|
|
Path string `json:"path"`
|
|
|
H int `json:"h"`
|
|
|
W int `json:"w"`
|
|
|
}
|
...
|
...
|
|