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 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 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 TweetCommentsReq
- type TweetCommentsResp
- type TweetDetailReq
- type TweetDetailResp
- type TweetStarStatusReq
- type TweetStarStatusResp
- 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 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 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 TopicListResp ¶
type TopicListResp struct {
Topics []*core.TagFormated `json:"topics"`
}
TopicListResp 主题返回值 TODO: 优化内容定义
type TweetCollectionStatusReq ¶
type TweetCollectionStatusReq struct { SimpleInfo `json:"-" binding:"-"` TweetId int64 `form:"id"` }
type TweetCollectionStatusResp ¶
type TweetCollectionStatusResp struct {
Status bool `json:"status"`
}
type TweetCommentsReq ¶
type TweetCommentsResp ¶
type TweetDetailReq ¶
type TweetDetailReq struct {
TweetId int64 `form:"id"`
}
type TweetDetailResp ¶
type TweetDetailResp core.PostFormated
type TweetStarStatusReq ¶
type TweetStarStatusReq struct { SimpleInfo `json:"-" binding:"-"` TweetId int64 `form:"id"` }
type TweetStarStatusResp ¶
type TweetStarStatusResp struct {
Status bool `json:"status"`
}
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.