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 AddFriendReq ¶
type AlipayNotifyReq ¶
type BaseInfo ¶
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 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 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 DeleteFriendReq ¶
type DeleteTweetReq ¶
type DownloadAttachmentPrecheckReq ¶
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 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 GetMessagesReq ¶
type GetMessagesReq BasePageReq
type GetStarsReq ¶
type GetStarsReq BasePageReq
type GetUnreadMsgCountReq ¶
type GetUnreadMsgCountReq struct {
SimpleInfo `json:"-" binding:"-"`
}
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 LockTweetReq ¶
type LoginReq ¶
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 StickTweetReq ¶
type TimelineReq ¶
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 TweetDetailResp ¶
type TweetDetailResp core.PostFormated
type TweetStarStatusReq ¶
type TweetStarStatusReq struct { SimpleInfo `json:"-" binding:"-"` TweetId int64 `form:"id"` }
type UploadAttachmentReq ¶
type UploadAttachmentResp ¶
type UserInfoReq ¶
type UserInfoResp ¶
type UserPhoneBindReq ¶
type UserRechargeLinkReq ¶
type UserRechargeLinkResp ¶
type UserRechargeResultResp ¶
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.