models

package
v0.0.0-...-9e605f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListPollReq

type ListPollReq struct {
	LatestTime string `form:"latest_time"`
	ActorId    int    `form:"actor_id"`
}

type ListPollRes

type ListPollRes struct {
	StatusCode int          `json:"status_code"`
	StatusMsg  string       `json:"status_msg"`
	NextTime   *int64       `json:"next_time,omitempty"`
	PollList   []*poll.Poll `json:"poll_list,omitempty"`
}

type Poll

type Poll struct {
	PollUuid     string                  `json:"poll_uuid" bson:"pollUuid, omitempty"`
	Title        string                  `json:"title" bson:"title, omitempty"`
	Options      []string                `json:"options" bson:"options, omitempty"`
	OptionsCount []uint32                `json:"options_count" bson:"optionsCount, omitempty"`
	Content      string                  `json:"content" bson:"content, omitempty"`
	PollType     string                  `json:"poll_type" bson:"pollType, omitempty"`
	UserName     string                  `json:"username" bson:"userName, omitempty"`
	CommentList  []commentModels.Comment `json:"comment_list" bson:"commentList, omitempty"`
	VoteList     []voteModels.Vote       `json:"vote_list" bson:"voteList, omitempty"`
	CreateAt     time.Time               `json:"create_at" bson:"createAt, omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL