models

package
v0.0.0-...-702fcad Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectivesModel

type CollectivesModel struct {
	CollectiveId  uuid.UUID `json:"collectiveId" bson:"collectiveId"`
	Name          string    `json:"Name" bson:"Name" validate:"max=50"`
	Avatar        string    `json:"avatar" bson:"avatar" validate:"max=500"`
	Banner        string    `json:"banner" bson:"banner" validate:"max=500"`
	Tagline       string    `json:"tagLine" bson:"tagLine"`
	Title         string    `json:"title" bson:"title"`
	Body          string    `json:"body" bson:"body"`
	CreatedDate   int64     `json:"created_date" bson:"created_date"`
	LastUpdated   int64     `json:"last_updated" bson:"last_updated"`
	VoteCount     int64     `json:"voteCount" bson:"voteCount"`
	ShareCount    int64     `json:"shareCount" bson:"shareCount"`
	FollowerCount int64     `json:"followerCount" bson:"followerCount"`
	PostCount     int64     `json:"postCount" bson:"postCount"`
}

type CommentCountModel

type CommentCountModel struct {
	PostId uuid.UUID `json:"postId"`
	Count  int       `json:"count"`
}

type CreateCollectivesPostModel

type CreateCollectivesPostModel struct {
	ObjectId         uuid.UUID                     `json:"objectId"`
	CollectiveId     uuid.UUID                     `json:"collectiveId"`
	PostTypeId       int                           `json:"postTypeId"`
	Score            int64                         `json:"score"`
	Votes            []dto.VoterProfile            `json:"votes"`
	ViewCount        int64                         `json:"viewCount"`
	Body             string                        `json:"body"`
	OwnerUserId      uuid.UUID                     `json:"ownerUserId"`
	OwnerDisplayName string                        `json:"ownerDisplayName"`
	OwnerAvatar      string                        `json:"ownerAvatar"`
	URLKey           string                        `json:"urlKey"`
	Tags             []string                      `json:"tags"`
	CommentCounter   int64                         `json:"commentCounter"`
	Image            string                        `json:"image"`
	ImageFullPath    string                        `json:"imageFullPath"`
	Video            string                        `json:"video"`
	Thumbnail        string                        `json:"thumbnail"`
	Album            PostAlbumModel                `json:"album"`
	DisableComments  bool                          `json:"disableComments"`
	DisableSharing   bool                          `json:"disableSharing"`
	Deleted          bool                          `json:"deleted"`
	DeletedDate      int64                         `json:"deletedDate"`
	CreatedDate      int64                         `json:"created_date"`
	LastUpdated      int64                         `json:"last_updated"`
	AccessUserList   []string                      `json:"accessUserList"`
	Permission       constants.UserPermissionConst `json:"permission"`
	Version          string                        `json:"version"`
}

type CreatePostModel

type CreatePostModel struct {
	ObjectId         uuid.UUID                     `json:"objectId"`
	PostTypeId       int                           `json:"postTypeId"`
	Score            int64                         `json:"score"`
	Votes            []dto.VoterProfile            `json:"votes"`
	ViewCount        int64                         `json:"viewCount"`
	Body             string                        `json:"body"`
	OwnerUserId      uuid.UUID                     `json:"ownerUserId"`
	OwnerDisplayName string                        `json:"ownerDisplayName"`
	OwnerAvatar      string                        `json:"ownerAvatar"`
	URLKey           string                        `json:"urlKey"`
	Tags             []string                      `json:"tags"`
	CommentCounter   int64                         `json:"commentCounter"`
	Image            string                        `json:"image"`
	ImageFullPath    string                        `json:"imageFullPath"`
	Video            string                        `json:"video"`
	Thumbnail        string                        `json:"thumbnail"`
	Album            PostAlbumModel                `json:"album"`
	DisableComments  bool                          `json:"disableComments"`
	DisableSharing   bool                          `json:"disableSharing"`
	Deleted          bool                          `json:"deleted"`
	DeletedDate      int64                         `json:"deletedDate"`
	CreatedDate      int64                         `json:"created_date"`
	LastUpdated      int64                         `json:"last_updated"`
	AccessUserList   []string                      `json:"accessUserList"`
	Permission       constants.UserPermissionConst `json:"permission"`
	Version          string                        `json:"version"`
}

type DisableCommentModel

type DisableCommentModel struct {
	PostId uuid.UUID `json:"postId"`
	Status bool      `json:"status"`
}

type DisableSharingModel

type DisableSharingModel struct {
	PostId uuid.UUID `json:"postId"`
	Status bool      `json:"status"`
}

type PostAlbumModel

type PostAlbumModel struct {
	Count   int       `json:"count"`
	Cover   string    `json:"cover"`
	CoverId uuid.UUID `json:"coverId"`
	Photos  []string  `json:"photos"`
	Title   string    `json:"title"`
}

type PostModel

type PostModel struct {
	ObjectId         uuid.UUID                     `json:"objectId" bson:"objectId"`
	PostTypeId       int                           `json:"postTypeId" bson:"postTypeId"`
	Score            int64                         `json:"score" bson:"score"`
	Votes            []dto.VoterProfile            `json:"votes" bson:"votes"`
	ViewCount        int64                         `json:"viewCount" bson:"viewCount"`
	Body             string                        `json:"body" bson:"body" validate:"max=3000"`
	OwnerUserId      uuid.UUID                     `json:"ownerUserId" bson:"ownerUserId"`
	OwnerDisplayName string                        `json:"ownerDisplayName" bson:"ownerDisplayName"`
	OwnerAvatar      string                        `json:"ownerAvatar" bson:"ownerAvatar"`
	URLKey           string                        `json:"urlKey" bson:"urlKey"`
	Tags             []string                      `json:"tags" bson:"tags"`
	CommentCounter   int64                         `json:"commentCounter" bson:"commentCounter"`
	Image            string                        `json:"image" bson:"image"`
	ImageFullPath    string                        `json:"imageFullPath" bson:"imageFullPath"`
	Video            string                        `json:"video" bson:"video"`
	Thumbnail        string                        `json:"thumbnail" bson:"thumbnail"`
	Album            PostAlbumModel                `json:"album" bson:"album"`
	DisableComments  bool                          `json:"disableComments" bson:"disableComments"`
	DisableSharing   bool                          `json:"disableSharing" bson:"disableSharing"`
	Deleted          bool                          `json:"deleted" bson:"deleted"`
	DeletedDate      int64                         `json:"deletedDate" bson:"deletedDate"`
	CreatedDate      int64                         `json:"created_date" bson:"created_date"`
	LastUpdated      int64                         `json:"last_updated" bson:"last_updated"`
	AccessUserList   []string                      `json:"accessUserList" bson:"accessUserList"`
	Permission       constants.UserPermissionConst `json:"permission" bson:"permission"`
	Version          string                        `json:"version" bson:"version"`
}

type PostUpdateModel

type PostUpdateModel struct {
	ObjectId         uuid.UUID                     `json:"objectId" bson:"objectId"`
	PostTypeId       int                           `json:"postTypeId" bson:"postTypeId"`
	Score            int64                         `json:"score" bson:"score"`
	Votes            []dto.VoterProfile            `json:"votes" bson:"votes"`
	ViewCount        int64                         `json:"viewCount" bson:"viewCount"`
	Body             string                        `json:"body" bson:"body"`
	OwnerUserId      uuid.UUID                     `json:"ownerUserId" bson:"ownerUserId"`
	OwnerDisplayName string                        `json:"ownerDisplayName" bson:"ownerDisplayName"`
	OwnerAvatar      string                        `json:"ownerAvatar" bson:"ownerAvatar"`
	Tags             []string                      `json:"tags" bson:"tags"`
	CommentCounter   int64                         `json:"commentCounter" bson:"commentCounter"`
	Image            string                        `json:"image" bson:"image"`
	ImageFullPath    string                        `json:"imageFullPath" bson:"imageFullPath"`
	Video            string                        `json:"video" bson:"video"`
	Thumbnail        string                        `json:"thumbnail" bson:"thumbnail"`
	Album            *PostAlbumModel               `json:"album" bson:"album"`
	DisableComments  bool                          `json:"disableComments" bson:"disableComments"`
	DisableSharing   bool                          `json:"disableSharing" bson:"disableSharing"`
	LastUpdated      int64                         `json:"last_updated" bson:"last_updated"`
	AccessUserList   []string                      `json:"accessUserList" bson:"accessUserList"`
	Permission       constants.UserPermissionConst `json:"permission" bson:"permission"`
	Version          string                        `json:"version" bson:"version"`
}

type ScoreModel

type ScoreModel struct {
	PostId      uuid.UUID `json:"postId"`
	Count       int       `json:"count"`
	UserID      uuid.UUID `json:"userId"`
	DisplayName string    `json:"displayName"`
	Avatar      string    `json:"currentUser.Avatar"`
}

type UserProfileModel

type UserProfileModel struct {
	ObjectId       uuid.UUID                     `json:"objectId" bson:"objectId"`
	FullName       string                        `json:"fullName" bson:"fullName"`
	SocialName     string                        `json:"socialName" bson:"socialName"`
	Avatar         string                        `json:"avatar" bson:"avatar"`
	Banner         string                        `json:"banner" bson:"banner"`
	TagLine        string                        `json:"tagLine" bson:"tagLine"`
	CreatedDate    int64                         `json:"created_date" bson:"created_date"`
	LastUpdated    int64                         `json:"last_updated" bson:"last_updated"`
	Email          string                        `json:"email" bson:"email"`
	Birthday       int64                         `json:"birthday" bson:"birthday"`
	WebUrl         string                        `json:"webUrl" bson:"webUrl"`
	CompanyName    string                        `json:"companyName" bson:"companyName"`
	VoteCount      int64                         `json:"voteCount" bson:"voteCount"`
	ShareCount     int64                         `json:"shareCount" bson:"shareCount"`
	FollowCount    int64                         `json:"followCount" bson:"followCount"`
	FollowerCount  int64                         `json:"followerCount" bson:"followerCount"`
	PostCount      int64                         `json:"postCount" bson:"postCount"`
	FacebookId     string                        `json:"facebookId" bson:"facebookId"`
	InstagramId    string                        `json:"instagramId" bson:"instagramId"`
	TwitterId      string                        `json:"twitterId" bson:"twitterId"`
	AccessUserList []string                      `json:"accessUserList" bson:"accessUserList"`
	Permission     constants.UserPermissionConst `json:"permission" bson:"permission"`
}

Jump to

Keyboard shortcuts

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