Documentation ¶
Index ¶
- type AddFollowingReq
- type AddFriendReq
- type AlipayNotifyReq
- type BaseInfo
- type BasePageReq
- type ChangeAvatarReq
- type ChangeNicknameReq
- type ChangePasswordReq
- type ChangeUserStatusReq
- type CollectionTweetReq
- type CollectionTweetResp
- type CreateCommentReplyReq
- type CreateCommentReplyResp
- type CreateCommentReq
- type CreateCommentResp
- type CreateTweetReq
- type CreateTweetResp
- type DeleteCommentReplyReq
- type DeleteCommentReq
- type DeleteFollowingReq
- type DeleteFriendReq
- type DeleteTweetReq
- type DownloadAttachmentPrecheckReq
- type DownloadAttachmentPrecheckResp
- type DownloadAttachmentReq
- type DownloadAttachmentResp
- type FollowTopicReq
- type GetCaptchaResp
- type GetCollectionsReq
- type GetCollectionsResp
- type GetContactsReq
- type GetContactsResp
- type GetMessagesReq
- type GetMessagesResp
- type GetStarsReq
- type GetStarsResp
- type GetUnreadMsgCountReq
- type GetUnreadMsgCountResp
- type GetUserProfileReq
- type GetUserProfileResp
- type GetUserTweetsReq
- type GetUserTweetsResp
- type ListFollowersReq
- type ListFollowersResp
- type ListFollowingsReq
- type ListFollowingsResp
- type LockTweetReq
- type LockTweetResp
- type LoginReq
- type LoginResp
- type PostContentItem
- type ReadMessageReq
- type RegisterReq
- type RegisterResp
- type RejectFriendReq
- type RequestingFriendReq
- type SendCaptchaReq
- type SendWhisperReq
- type SimpleInfo
- type StarTweetReq
- type StarTweetResp
- type StickTopicReq
- type StickTopicResp
- type StickTweetReq
- type StickTweetResp
- type SuggestTagsReq
- type SuggestTagsResp
- type SuggestUsersReq
- type SuggestUsersResp
- type SyncSearchIndexReq
- type TagType
- type TimelineReq
- type TimelineResp
- type TopicListReq
- type TopicListResp
- type TweetCollectionStatusReq
- type TweetCollectionStatusResp
- type TweetCommentThumbsReq
- type TweetCommentsReq
- type TweetCommentsResp
- type TweetDetailReq
- type TweetDetailResp
- type TweetReplyThumbsReq
- type TweetStarStatusReq
- type TweetStarStatusResp
- type UnfollowTopicReq
- type UploadAttachmentReq
- type UploadAttachmentResp
- type UserInfoReq
- type UserInfoResp
- type UserPhoneBindReq
- type UserRechargeLinkReq
- type UserRechargeLinkResp
- type UserRechargeResultReq
- type UserRechargeResultResp
- type UserWalletBillsReq
- type UserWalletBillsResp
- type VersionResp
- type VisibleTweetReq
- type VisibleTweetResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFollowingReq ¶
type AddFollowingReq struct {
BaseInfo `json:"-" binding:"-"`
}
type AddFriendReq ¶
type AlipayNotifyReq ¶
type BasePageReq ¶
func BasePageReqFrom ¶
func BasePageReqFrom(c *gin.Context) (*BasePageReq, mir.Error)
type ChangeAvatarReq ¶
type ChangeNicknameReq ¶
type ChangePasswordReq ¶
type ChangeUserStatusReq ¶
type CollectionTweetReq ¶
type CollectionTweetReq struct { SimpleInfo `json:"-" binding:"-"` ID int64 `json:"id" binding:"required"` }
type CollectionTweetResp ¶
type CollectionTweetResp struct {
Status bool `json:"status"`
}
type CreateCommentReplyReq ¶
type CreateCommentReplyReq struct { SimpleInfo `json:"-" binding:"-"` CommentID int64 `json:"comment_id" binding:"required"` Content string `json:"content" binding:"required"` AtUserID int64 `json:"at_user_id"` ClientIP string `json:"-" binding:"-"` }
type CreateCommentReplyResp ¶
type CreateCommentReplyResp core.CommentReply
type CreateCommentReq ¶
type CreateCommentReq struct { SimpleInfo `json:"-" binding:"-"` PostID int64 `json:"post_id" binding:"required"` Contents []*PostContentItem `json:"contents" binding:"required"` Users []string `json:"users" binding:"required"` ClientIP string `json:"-" binding:"-"` }
type CreateCommentResp ¶
type CreateTweetReq ¶
type CreateTweetReq struct { BaseInfo `json:"-" binding:"-"` Contents []*PostContentItem `json:"contents" binding:"required"` Tags []string `json:"tags" binding:"required"` Users []string `json:"users" binding:"required"` AttachmentPrice int64 `json:"attachment_price"` Visibility core.PostVisibleT `json:"visibility"` ClientIP string `json:"-" binding:"-"` }
type CreateTweetResp ¶
type CreateTweetResp core.PostFormated
type DeleteCommentReplyReq ¶
type DeleteCommentReq ¶
type DeleteFollowingReq ¶
type DeleteFollowingReq struct {
BaseInfo `json:"-" binding:"-"`
}
type DeleteFriendReq ¶
type DeleteTweetReq ¶
type DownloadAttachmentPrecheckResp ¶
type DownloadAttachmentPrecheckResp struct {
Paid bool `json:"paid"`
}
type DownloadAttachmentReq ¶
type DownloadAttachmentResp ¶
type DownloadAttachmentResp struct {
SignedURL string `json:"signed_url"`
}
type FollowTopicReq ¶ added in v0.3.0
type FollowTopicReq struct { SimpleInfo `json:"-" binding:"-"` TopicId int64 `json:"topic_id" binding:"required"` }
type GetCaptchaResp ¶
type GetCollectionsReq ¶
type GetCollectionsReq BasePageReq
type GetCollectionsResp ¶
type GetContactsReq ¶
type GetContactsReq struct { BaseInfo `form:"-" binding:"-"` Page int `form:"-" binding:"-"` PageSize int `form:"-" binding:"-"` }
func (*GetContactsReq) SetPageInfo ¶
func (r *GetContactsReq) SetPageInfo(page int, pageSize int)
type GetContactsResp ¶
type GetMessagesReq ¶
type GetMessagesReq BasePageReq
type GetMessagesResp ¶
type GetStarsReq ¶
type GetStarsReq BasePageReq
type GetStarsResp ¶
type GetUnreadMsgCountReq ¶
type GetUnreadMsgCountReq struct {
SimpleInfo `json:"-" binding:"-"`
}
type GetUnreadMsgCountResp ¶
type GetUnreadMsgCountResp struct {
Count int64 `json:"count"`
}
type GetUserProfileReq ¶
type GetUserProfileResp ¶
type GetUserTweetsReq ¶
type GetUserTweetsReq struct { BaseInfo `form:"-" binding:"-"` Username string `form:"username" binding:"required"` Page int `form:"-" binding:"-"` PageSize int `form:"-" binding:"-"` }
func (*GetUserTweetsReq) SetPageInfo ¶
func (r *GetUserTweetsReq) SetPageInfo(page int, pageSize int)
type GetUserTweetsResp ¶
type ListFollowersReq ¶
type ListFollowersReq struct {
BaseInfo `form:"-" binding:"-"`
}
type ListFollowersResp ¶
type ListFollowingsReq ¶
type ListFollowingsReq struct {
BaseInfo `json:"-" binding:"-"`
}
type ListFollowingsResp ¶
type LockTweetReq ¶
type LockTweetResp ¶
type LockTweetResp struct {
LockStatus int `json:"lock_status"`
}
type PostContentItem ¶
type PostContentItem struct { Content string `json:"content" binding:"required"` Type core.PostContentT `json:"type" binding:"required"` Sort int64 `json:"sort" binding:"required"` }
func (*PostContentItem) Check ¶
func (p *PostContentItem) Check(acs core.AttachmentCheckService) error
Check 检查PostContentItem属性
type ReadMessageReq ¶
type ReadMessageReq struct { SimpleInfo `json:"-" binding:"-"` ID int64 `json:"id" binding:"required"` }
type RegisterReq ¶
type RegisterResp ¶
type RejectFriendReq ¶
type RequestingFriendReq ¶
type SendCaptchaReq ¶
type SendWhisperReq ¶
type SendWhisperReq struct { SimpleInfo `json:"-" binding:"-"` UserID int64 `json:"user_id" binding:"required"` Content string `json:"content" binding:"required"` }
type SimpleInfo ¶
type SimpleInfo struct {
Uid int64
}
func (*SimpleInfo) SetUserId ¶
func (s *SimpleInfo) SetUserId(id int64)
type StarTweetReq ¶
type StarTweetReq struct { SimpleInfo `json:"-" binding:"-"` ID int64 `json:"id" binding:"required"` }
type StarTweetResp ¶
type StarTweetResp struct {
Status bool `json:"status"`
}
type StickTopicReq ¶ added in v0.3.0
type StickTopicReq struct { SimpleInfo `json:"-" binding:"-"` TopicId int64 `json:"topic_id" binding:"required"` }
type StickTopicResp ¶ added in v0.3.0
type StickTopicResp struct {
StickStatus int8 `json:"top_status"`
}
type StickTweetReq ¶
type StickTweetResp ¶
type StickTweetResp struct {
StickStatus int `json:"top_status"`
}
type SuggestTagsReq ¶
type SuggestTagsReq struct {
Keyword string
}
type SuggestTagsResp ¶
type SuggestTagsResp struct {
Suggests []string `json:"suggest"`
}
type SuggestUsersReq ¶
type SuggestUsersReq struct {
Keyword string
}
type SuggestUsersResp ¶
type SuggestUsersResp struct {
Suggests []string `json:"suggest"`
}
type SyncSearchIndexReq ¶
type SyncSearchIndexReq struct {
BaseInfo `json:"-" binding:"-"`
}
type TimelineReq ¶
type TimelineResp ¶
type TopicListReq ¶
type TopicListReq struct { SimpleInfo `form:"-" binding:"-"` Type TagType `json:"type" form:"type" binding:"required"` Num int `json:"num" form:"num" binding:"required"` ExtralNum int `json:"extral_num" form:"extral_num"` }
type TopicListResp ¶
type TopicListResp struct { Topics []*core.TagFormated `json:"topics"` ExtralTopics []*core.TagFormated `json:"extral_topics,omitempty"` }
TopicListResp 主题返回值 TODO: 优化内容定义
type TweetCollectionStatusReq ¶
type TweetCollectionStatusReq struct { SimpleInfo `json:"-" binding:"-"` TweetId int64 `form:"id"` }
type TweetCollectionStatusResp ¶
type TweetCollectionStatusResp struct {
Status bool `json:"status"`
}
type TweetCommentThumbsReq ¶ added in v0.3.0
type TweetCommentThumbsReq struct { SimpleInfo `json:"-" binding:"-"` TweetId int64 `json:"tweet_id" binding:"required"` CommentId int64 `json:"comment_id" binding:"required"` }
type TweetCommentsReq ¶
type TweetCommentsResp ¶
type TweetDetailReq ¶
type TweetDetailReq struct {
TweetId int64 `form:"id"`
}
type TweetDetailResp ¶
type TweetDetailResp core.PostFormated
type TweetReplyThumbsReq ¶ added in v0.3.0
type TweetReplyThumbsReq struct { SimpleInfo `json:"-" binding:"-"` TweetId int64 `json:"tweet_id" binding:"required"` CommentId int64 `json:"comment_id" binding:"required"` ReplyId int64 `json:"reply_id" binding:"required"` }
type TweetStarStatusReq ¶
type TweetStarStatusReq struct { SimpleInfo `json:"-" binding:"-"` TweetId int64 `form:"id"` }
type TweetStarStatusResp ¶
type TweetStarStatusResp struct {
Status bool `json:"status"`
}
type UnfollowTopicReq ¶ added in v0.3.0
type UnfollowTopicReq struct { SimpleInfo `json:"-" binding:"-"` TopicId int64 `json:"topic_id" binding:"required"` }
type UploadAttachmentReq ¶
type UploadAttachmentResp ¶
type UserInfoReq ¶
type UserInfoResp ¶
type UserPhoneBindReq ¶
type UserRechargeLinkReq ¶
type UserRechargeLinkResp ¶
type UserRechargeResultReq ¶
type UserRechargeResultResp ¶
type UserWalletBillsReq ¶
type UserWalletBillsResp ¶
type VersionResp ¶
type VisibleTweetReq ¶
type VisibleTweetReq struct { BaseInfo `json:"-" binding:"-"` ID int64 `json:"id"` Visibility core.PostVisibleT `json:"visibility"` }
type VisibleTweetResp ¶
type VisibleTweetResp struct {
Visibility core.PostVisibleT `json:"visibility"`
}
Click to show internal directories.
Click to hide internal directories.