...
|
...
|
@@ -125,23 +125,23 @@ type BulletinItem struct { |
|
|
CreateAt string `json:"time"`
|
|
|
}
|
|
|
|
|
|
/*GetBulletin */
|
|
|
type GetBulletinRequest struct {
|
|
|
}
|
|
|
type GetBulletinResponse struct {
|
|
|
Id int `json:"id"`
|
|
|
Type int `json:"type" valid:"Required"`
|
|
|
Title string `json:"title" valid:"Required"`
|
|
|
Content string `json:"content" valid:"Required"`
|
|
|
AllowClose int `json:"allow_close"`
|
|
|
//AllowCondition int `json:"allow_condition"`
|
|
|
QuestionSwitch int `json:"question_switch"`
|
|
|
Receiver []Receiver `json:"receiver" valid:"Required"`
|
|
|
Question Question `json:"question"`
|
|
|
Cover Cover `json:"cover" valid:"Required"`
|
|
|
}
|
|
|
|
|
|
type Receiver struct {
|
|
|
Id int64 `json:"id"`
|
|
|
NickName string `json:"name"`
|
|
|
}
|
|
|
|
|
|
/*请求公告列表 Announcements */
|
|
|
type AnnouncementsRequest struct {
|
|
|
}
|
|
|
type AnnouncementsResponse struct {
|
|
|
Lists []Announcement `json:"lists"`
|
|
|
}
|
|
|
|
|
|
type Announcement struct {
|
|
|
Id int `json:"id"`
|
|
|
Type int `json:"type" valid:"Required"`
|
|
|
Title string `json:"title" valid:"Required"`
|
|
|
Cover Cover `json:"cover" valid:"Required"`
|
|
|
Link string `json:"link"`
|
|
|
Control int `json:"Control"`
|
|
|
} |
...
|
...
|
|