Documentation
¶
Index ¶
Constants ¶
View Source
const ( LikeTypeAnswer = 1 LikeTypeComment = 2 )
View Source
const ( UserSexMan = 1 UserSexWomen = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct { AnswerId int64 `json:"answer_id" db:"answer_id"` Content string `json:"content" db:"content"` CommentCount int32 `json:"comment_count" db:"comment_count"` VoteupCount int32 `json:"voteup_count" db:"voteup_count"` AuthorId int64 `json:"author_id" db:"author_id"` Status int32 `json:"status" db:"status"` CanComment int32 `json:"can_comment" db:"can_comment"` CreateTime time.Time `json:"create_time" db:"create_time"` UpdateTime time.Time `json:"update_time" db:"update_time"` }
type ApiAnswerList ¶
type ApiCommentList ¶
type ApiQuestion ¶
type ApiQuestionDetail ¶
type Comment ¶
type Comment struct { CommentId int64 `db:"comment_id" json:"comment_id"` Content string `db:"content" json:"content"` AuthorId int64 `db:"author_id" json:"author_id"` LikeCount int `db:"like_count" json:"like_count"` CommentCount int `db:"comment_count" json:"comment_count"` CreateTime time.Time `db:"create_time" json:"create_time"` ParentId int64 `db:"parent_id" json:"parent_id"` QuestionId int64 `db:"question_id" json:"question_id"` ReplyAuthorId int64 `db:"reply_author_id" json:"reply_author_id"` ReplyCommentId int64 `db:"reply_comment_id" json:"reply_comment_id"` AuthorName string `json:"author_name"` ReplyAuthorName string `json:"reply_author_name"` }
type FavoriteDir ¶
type Question ¶
type Question struct { QuestionId int64 `json:"question_id" db:"question_id"` Caption string `json:"caption" db:"caption"` Content string `json:"content" db:"content"` AuthorId int64 `json:"author_id" db:"author_id"` CategoryId int64 `json:"category_id" db:"category_id"` Status int32 `json:"status" db:"status"` CreateTime time.Time `json:"-" db:"create_time"` CreateTimeStr string `json:"create_time"` }
Click to show internal directories.
Click to hide internal directories.