Versions in this module Expand all Collapse all v0 v0.0.1 Apr 26, 2026 Changes in this version + func FormatTimestamp(ts int64) time.Time + type AnswerAcceptReq struct + AnswerID string + QuestionID string + type AnswerAddReq struct + Content string + QuestionID string + type AnswerDeleteReq struct + ID string + type AnswerInfo struct + Accepted int + CommentCount int + Content string + CreatedAt int64 + HTML string + ID string + QuestionID string + Status int + UpdatedAt int64 + UserInfo *UserBasicInfo + VoteCount int + type AnswerListReq struct + Order string + Page int + PageSize int + QuestionID string + type AnswerListResp struct + Count int64 + List []AnswerInfo + type AnswerUpdateReq struct + Content string + ID string + type AppConfig struct + AI struct{ ... } + Log struct{ ... } + Output struct{ ... } + Server struct{ ... } + Version string + func (c *AppConfig) GetAIAPIKey() string + func (c *AppConfig) GetAIBaseURL() string + func (c *AppConfig) GetAIModel() string + func (c *AppConfig) GetAIProvider() string + func (c *AppConfig) GetOutputFormat() string + func (c *AppConfig) GetServerToken() string + func (c *AppConfig) GetServerURL() string + type AvatarInfo struct + Custom string + Gravatar string + Type string + func (a *AvatarInfo) GetURL() string + func (a *AvatarInfo) UnmarshalJSON(data []byte) error + type CommentAddReq struct + ObjectID string + OriginalText string + ReplyCommentID string + type CommentDeleteReq struct + CommentID string + type CommentInfo struct + CommentID string + CreatedAt int64 + IsVote bool + ObjectID string + OriginalText string + ParsedText string + QuestionID string + ReplyCommentID string + ReplyUserDisplayName string + ReplyUserID string + ReplyUsername string + Status int + UpdatedAt int64 + UserAvatar string + UserDisplayName string + UserID string + UserStatus string + Username string + VoteCount int + func (c CommentInfo) DisplayAuthor() string + type CommentListReq struct + ObjectID string + Page int + PageSize int + type CommentListResp struct + Count int64 + List []CommentInfo + type CommentUpdateReq struct + CommentID string + OriginalText string + type LoginResponse struct + AccessToken string + Avatar json.RawMessage + DisplayName string + EMail string + ID string + Rank int + Username string + type NotificationItem struct + Content string + CreatedAt int64 + ID string + IsRead bool + ObjectID string + Reason string + Title string + Type string + type NotificationListReq struct + InboxType string + Page int + Size int + Type string + type NotificationListResp struct + Count int64 + List []NotificationItem + type NotificationReadAllReq struct + Type string + type NotificationReadReq struct + ID string + type NotificationStatusResp struct + Achievement bool + Inbox bool + type PageModel struct + Count int64 + List any + type QuestionAddReq struct + Content string + Tags []TagAddReq + Title string + type QuestionCloseReq struct + CloseMsg string + CloseType int + ID string + type QuestionDeleteReq struct + ID string + type QuestionInfoResp struct + AcceptedAnswerID string + AnswerCount int + CollectionCount int + CommentCount int + Content string + CreatedAt int64 + FollowCount int + HTML string + HotScore int + ID string + LastAnswerID string + Pin int + Status int + Tags []TagItem + Title string + UniqueViewCount int + UpdatedAt int64 + UserInfo *UserBasicInfo + ViewCount int + VoteCount int + type QuestionListItem struct + AcceptedAnswerID string + AnswerCount int + CollectionCount int + CommentCount int + Content string + CreatedAt int64 + ID string + Operator *UserBasicInfo + Pin int + Status int + Tags []TagItem + Title string + UpdatedAt int64 + ViewCount int + VoteCount int + func (q QuestionListItem) DisplayAuthor() string + type QuestionListReq struct + InDays int + Order string + Page int + PageSize int + Tag string + Username string + type QuestionPageResp struct + Count int64 + List []QuestionListItem + type QuestionReopenReq struct + ID string + type QuestionUpdateReq struct + Content string + ID string + Tags []string + Title string + type SearchObject struct + Accepted bool + AnswerCount int + CreatedAt int64 + Excerpt string + ID string + QuestionID string + StatusStr string + Title string + VoteCount int + type SearchReq struct + Order string + Page int + Query string + Size int + type SearchResp struct + Count int64 + List []*SearchResult + type SearchResult struct + Object *SearchObject + ObjectType string + type TagAddReq struct + DisplayName string + OriginalText string + SlugName string + type TagDeleteReq struct + SlugName string + type TagDetail struct + CreatedAt int64 + DisplayName string + FollowCount int + ID string + MainTagID int64 + MainTagSlugName string + OriginalText string + ParsedText string + QuestionCount int + Recommend bool + Reserved bool + SlugName string + Status int + type TagItem struct + DisplayName string + ID string + MainTagID int64 + Reserved bool + SlugName string + type TagListReq struct + Page int + PageSize int + QueryCond string + type TagListResp struct + Count int64 + List []TagDetail + type TagUpdateReq struct + DisplayName string + OriginalText string + SlugName string + type UserBasicInfo struct + Avatar *AvatarInfo + DisplayName string + ID string + Rank int + Username string + type UserDetailResp struct + Avatar *AvatarInfo + Bio string + DisplayName string + ID string + Location string + Rank int + Username string + Website string + type UserInfoResp struct + AnswerCount int + Avatar *AvatarInfo + Bio string + DisplayName string + EMail string + FollowCount int + ID string + IsAdmin bool + Location string + QuestionCount int + Rank int + Username string + Website string + type VoteReq struct + Group string + IsCancel bool + ObjectID string + type VoteResp struct + Group string + ID string + ObjectID string + Status int + UpDown int