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