Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelPollReq ¶
type CancelPollRes ¶
type CancelPollRes struct{}
type GetPollDetailReq ¶
type GetPollDetailRes ¶
type GetPollDetailRes struct {
model.PollListElement
}
type GetPollMarksReq ¶
type GetPollMarksRes ¶
type GetPollsReq ¶
type GetPollsReq struct { g.Meta `path:"/poll" tags:"Poll" method:"get" summary:"获取投票列表"` StatusStart int `json:"status_start" dc:"起始状态" v:"required|min:0"` StatusEnd int `json:"status_end" dc:"结束状态" v:"required|max:300"` WithRecords bool `json:"with_records" dc:"是否返回投票记录" v:"boolean" d:"false"` PolledFilter consts.PollListPolledFilter `json:"polled_filter" dc:"投票过滤器" v:"in:0,1,2" d:"0"` Order string `json:"order" dc:"排序方式" v:"in:desc,asc" d:"asc"` Page int `json:"page" dc:"页码" v:"min:1" d:"1"` PageSize int `json:"page_size" dc:"每页数量" v:"min:0|max:1000" d:"30"` }
type GetPollsRes ¶
type GetPollsRes model.GetPollListOutput
type NewPollReq ¶
type NewPollRes ¶
type NewPollRes struct { Poll model.PollElement `json:"poll" dc:"投票内容"` RemainPending int `json:"remain_pending" dc:"剩余待处理"` }
type PollReq ¶
type PollReq struct { g.Meta `path:"/poll/:id" tags:"Poll" method:"put" summary:"投票"` ID int `json:"id" dc:"投票ID" v:"required|integer" in:"path"` Method consts.PollMethod `json:"method" dc:"投票方式" v:"required"` MarkIDs []int `json:"mark_ids" dc:"标记"` Comment string `json:"comment" dc:"理由" v:"length:1,255"` }
Click to show internal directories.
Click to hide internal directories.