Documentation ¶
Overview ¶
Package ms contain core data service interface type model define for gorm adapter
Index ¶
- Constants
- type Action
- type Attachment
- type AttachmentType
- type Captcha
- type Comment
- type CommentContent
- type CommentFormated
- type CommentReply
- type CommentReplyFormated
- type ConditionsT
- type ContactItem
- type ContactList
- type FriendFilter
- type FriendSet
- type IndexTweetList
- type Message
- type MessageFormated
- type Model
- type Post
- type PostAttachmentBill
- type PostCollection
- type PostContent
- type PostContentFormated
- type PostContentT
- type PostFormated
- type PostStar
- type PostVisibleT
- type User
- type UserFormated
- type WalletRecharge
- type WalletStatement
Constants ¶
View Source
const ( ActRegisterUser act = iota ActCreatePublicTweet ActCreatePublicAttachment ActCreatePublicPicture ActCreatePublicVideo ActCreatePrivateTweet ActCreatePrivateAttachment ActCreatePrivatePicture ActCreatePrivateVideo ActCreateFriendTweet ActCreateFriendAttachment ActCreateFriendPicture ActCreateFriendVideo ActCreatePublicComment ActCreatePublicPicureComment ActCreateFriendComment ActCreateFriendPicureComment ActCreatePrivateComment ActCreatePrivatePicureComment ActStickTweet ActTopTweet ActLockTweet ActVisibleTweet ActDeleteTweet ActCreateActivationCode )
View Source
const ( MsgTypePost = dbr.MsgTypePost MsgtypeComment = dbr.MsgtypeComment MsgTypeReply = dbr.MsgTypeReply MsgTypeWhisper = dbr.MsgTypeWhisper MsgTypeRequestingFriend = dbr.MsgTypeRequestingFriend MsgTypeSystem = dbr.MsgTypeSystem MsgStatusUnread = dbr.MsgStatusUnread MsgStatusReaded = dbr.MsgStatusReaded )
View Source
const ( UserStatusNormal = dbr.UserStatusNormal UserStatusClosed = dbr.UserStatusClosed )
View Source
const ( AttachmentTypeImage = dbr.AttachmentTypeImage AttachmentTypeVideo = dbr.AttachmentTypeVideo AttachmentTypeOther = dbr.AttachmentTypeOther // 类型,1标题,2文字段落,3图片地址,4视频地址,5语音地址,6链接地址,7附件资源 ContentTypeTitle = dbr.ContentTypeTitle ContentTypeText = dbr.ContentTypeText ContentTypeImage = dbr.ContentTypeImage ContentTypeVideo = dbr.ContentTypeVideo ContentTypeAudio = dbr.ContentTypeAudio ContentTypeLink = dbr.ContentTypeLink ContentTypeAttachment = dbr.ContentTypeAttachment ContentTypeChargeAttachment = dbr.ContentTypeChargeAttachment )
View Source
const ( PostVisitPublic = dbr.PostVisitPublic PostVisitPrivate = dbr.PostVisitPrivate PostVisitFriend = dbr.PostVisitFriend PostVisitFollowing = dbr.PostVisitFollowing )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment = dbr.Attachment
type AttachmentType ¶
type AttachmentType = dbr.AttachmentType
type CommentContent ¶
type CommentContent = dbr.CommentContent
type CommentFormated ¶
type CommentFormated = dbr.CommentFormated
type CommentReply ¶
type CommentReply = dbr.CommentReply
type CommentReplyFormated ¶
type CommentReplyFormated = dbr.CommentReplyFormated
type ConditionsT ¶
type ConditionsT = dbr.ConditionsT
type ContactItem ¶
type ContactList ¶
type ContactList struct { Contacts []ContactItem `json:"contacts"` Total int64 `json:"total"` }
type FriendFilter ¶
func (FriendFilter) IsFriend ¶
func (f FriendFilter) IsFriend(userId int64) bool
type IndexTweetList ¶
type IndexTweetList struct { Tweets []*PostFormated Total int64 }
type MessageFormated ¶
type MessageFormated = dbr.MessageFormated
type PostAttachmentBill ¶
type PostAttachmentBill = dbr.PostAttachmentBill
type PostCollection ¶
type PostCollection = dbr.PostCollection
type PostContent ¶
type PostContent = dbr.PostContent
type PostContentFormated ¶
type PostContentFormated = dbr.PostContentFormated
type PostContentT ¶
type PostContentT = dbr.PostContentT
type PostFormated ¶
type PostFormated = dbr.PostFormated
type PostVisibleT ¶
type PostVisibleT = dbr.PostVisibleT
type UserFormated ¶
type UserFormated = dbr.UserFormated
type WalletRecharge ¶
type WalletRecharge = dbr.WalletRecharge
type WalletStatement ¶
type WalletStatement = dbr.WalletStatement
Click to show internal directories.
Click to hide internal directories.