...
|
...
|
@@ -12,12 +12,12 @@ const ( |
|
|
|
|
|
/*BulletinRelease */
|
|
|
type BulletinReleaseRequest 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"`
|
|
|
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 []string `json:"receiver" valid:"Required"`
|
|
|
Question Question `json:"question"`
|
...
|
...
|
@@ -65,12 +65,12 @@ type BulletinItem struct { |
|
|
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"`
|
|
|
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"`
|
...
|
...
|
@@ -84,12 +84,12 @@ type Receiver struct { |
|
|
|
|
|
/*UpdateBulletin */
|
|
|
type UpdateBulletinRequest struct {
|
|
|
Id int `json:"id" valid:"Required"`
|
|
|
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"`
|
|
|
Id int `json:"id" valid:"Required"`
|
|
|
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 []string `json:"receiver" valid:"Required"`
|
|
|
Question Question `json:"question"`
|
...
|
...
|
|