Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -46,17 +46,17 @@ type ArticleOptionResp struct {
|
||||
|
||||
// ArticleResponse 单个文评的响应结构
|
||||
type ArticleResponse struct {
|
||||
ID int64 `json:"文评ID"`
|
||||
Title string `json:"文评标题"`
|
||||
VoteType string `json:"投票类型"`
|
||||
TotalVoters int `json:"总投票人数"`
|
||||
EndTime string `json:"结束时间"`
|
||||
IsEnded bool `json:"是否结束"`
|
||||
PublisherID string `json:"发布者ID"`
|
||||
CreateTime string `json:"创建时间"`
|
||||
Options []ArticleOptionResp `json:"选项"`
|
||||
UserHasVoted bool `json:"用户是否已投票"`
|
||||
VotedOptionIDs []int64 `json:"用户投票的选项ID"`
|
||||
ID int64 `json:"article_id"`
|
||||
Title string `json:"article_title"`
|
||||
VoteType string `json:"vote_type"`
|
||||
TotalVoters int `json:"total_voters"`
|
||||
EndTime string `json:"end_time"`
|
||||
IsEnded bool `json:"is_ended"`
|
||||
PublisherID string `json:"publisher_id"`
|
||||
CreateTime string `json:"create_time"`
|
||||
Options []ArticleOptionResp `json:"options"`
|
||||
UserHasVoted bool `json:"user_has_voted"`
|
||||
VotedOptionIDs []int64 `json:"user_voted_option_ids"`
|
||||
}
|
||||
|
||||
type UserReq struct {
|
||||
|
||||
Reference in New Issue
Block a user