You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
509 B
17 lines
509 B
package v1
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|
)
|
|
|
|
type CreateVoteReq struct {
|
|
g.Meta `path:"/createVote" method:"post" tags:"新增投票"`
|
|
PostId int64 `v:"required" dc:"文章/视频 ID"`
|
|
VoteTitle string `v:"required" dc:"投票标题"`
|
|
MultiSelection int `v:"required" dc:"支持多选"`
|
|
DeadlineTime *gtime.Time `v:"required" dc:"截止时间"`
|
|
}
|
|
type CreateVoteResp struct {
|
|
Id int64 `json:"id" dc:"投票 id"`
|
|
}
|