|
|
@ -5,6 +5,19 @@ import ( |
|
|
|
"github.com/gogf/gf/v2/os/gtime" |
|
|
|
) |
|
|
|
|
|
|
|
type GetVoteDetailReq struct { |
|
|
|
g.Meta `path:"/getAllVoteDetail" method:"GET" tags:"获取投票名单列表"` |
|
|
|
VoteId int `json:"voteId" v:"required" dc:"投票活动ID"` |
|
|
|
} |
|
|
|
|
|
|
|
type GetVoteDetailRes struct { |
|
|
|
Username string `json:"username" dc:"名字"` |
|
|
|
Account string `json:"account" dc:"精网号"` |
|
|
|
VoteTitle string `json:"voteTitle" dc:"投票标题"` |
|
|
|
ArticleTitle int `json:"articleTitle" dc:"文章/视频标题"` |
|
|
|
OptionContent []string `json:"optionContent" dc:"选项名称"` |
|
|
|
CreateTime *gtime.Time `json:"createTime" dc:"投票时间"` |
|
|
|
} |
|
|
|
type GetVoteReq struct { |
|
|
|
g.Meta `path:"/getVote" method:"get" tags:"<获取文章及投票活动>"` |
|
|
|
ArticleId int `json:"articleId" v:"required" dc:"<文章>ID"` |
|
|
|