dto

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	ObjectId         uuid.UUID                     `json:"objectId" bson:"objectId"`
	CollectiveId     uuid.UUID                     `json:"collectiveId" bson:"collectiveId"`
	PostTypeId       int                           `json:"postTypeId" bson:"postTypeId"`
	Score            int64                         `json:"score" bson:"score"`
	Votes            []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"`
	URLKey           string                        `json:"urlKey" bson:"urlKey"`
	Album            *PostAlbum                    `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 PostAlbum

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

type VoterProfile

type VoterProfile struct {
	ObjectId      uuid.UUID `json:"objectId" bson:"objectId"`
	FullName      string    `json:"fullName" bson:"fullName"`
	DisplayName   string    `json:"displayName" bson:"displayName"`
	SocialName    string    `json:"socialName" bson:"socialName"`
	Avatar        string    `json:"avatar" bson:"avatar"`
	FollowCount   int64     `json:"followCount" bson:"followCount"`
	FollowerCount int64     `json:"followerCount" bson:"followerCount"`
}

Jump to

Keyboard shortcuts

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