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

2 weeks ago
  1. package v1
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. "github.com/gogf/gf/v2/os/gtime"
  5. )
  6. type CreateVoteReq struct {
  7. g.Meta `path:"/createVote" method:"post" tags:"新增投票"`
  8. PostId int64 `v:"required" dc:"文章/视频 ID"`
  9. VoteTitle string `v:"required" dc:"投票标题"`
  10. MultiSelection int `v:"required" dc:"支持多选"`
  11. DeadlineTime *gtime.Time `v:"required" dc:"截止时间"`
  12. }
  13. type CreateVoteResp struct {
  14. Id int64 `json:"id" dc:"投票 id"`
  15. }