ms

package
v0.6.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ms contain core data service interface type model define for gorm adapter

Index

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 Action

type Action struct {
	Act    act
	UserId int64
}

type Attachment

type Attachment = dbr.Attachment

type AttachmentType

type AttachmentType = dbr.AttachmentType

type Captcha

type Captcha = dbr.Captcha

type Comment

type Comment = dbr.Comment

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 ContactItem struct {
	UserId      int64  `json:"user_id"`
	Username    string `db:"username" json:"username"`
	Nickname    string `json:"nickname"`
	Avatar      string `json:"avatar"`
	Phone       string `json:"phone,omitempty"`
	IsFollowing bool   `json:"is_following"`
	CreatedOn   int64  `json:"created_on"`
}

type ContactList

type ContactList struct {
	Contacts []ContactItem `json:"contacts"`
	Total    int64         `json:"total"`
}

type FriendFilter

type FriendFilter map[int64]types.Empty

func (FriendFilter) IsFriend

func (f FriendFilter) IsFriend(userId int64) bool

type FriendSet

type FriendSet map[string]types.Empty

type IndexTweetList

type IndexTweetList struct {
	Tweets []*PostFormated
	Total  int64
}

type Message

type Message = dbr.Message

type MessageFormated

type MessageFormated = dbr.MessageFormated

type Model

type Model = dbr.Model

type Post

type Post = dbr.Post

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 PostStar

type PostStar = dbr.PostStar

type PostVisibleT

type PostVisibleT = dbr.PostVisibleT

type User

type User = dbr.User

type UserFormated

type UserFormated = dbr.UserFormated

type WalletRecharge

type WalletRecharge = dbr.WalletRecharge

type WalletStatement

type WalletStatement = dbr.WalletStatement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL