models

package
v0.0.0-...-3c40ba8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentModel

type CommentModel struct {
	ObjectId         uuid.UUID `json:"objectId"`
	Score            int64     `json:"score"`
	OwnerUserId      uuid.UUID `json:"ownerUserId"`
	OwnerDisplayName string    `json:"ownerDisplayName"`
	OwnerAvatar      string    `json:"ownerAvatar"`
	PostId           uuid.UUID `json:"postId"`
	Text             string    `json:"text"`
	Deleted          bool      `json:"deleted"`
	DeletedDate      int64     `json:"deletedDate"`
	CreatedDate      int64     `json:"created_date"`
	LastUpdated      int64     `json:"last_updated"`
}

type CreateCommentModel

type CreateCommentModel struct {
	ObjectId         uuid.UUID `json:"objectId"`
	Score            int64     `json:"score"`
	OwnerUserId      uuid.UUID `json:"ownerUserId"`
	OwnerDisplayName string    `json:"ownerDisplayName"`
	OwnerAvatar      string    `json:"ownerAvatar"`
	PostId           uuid.UUID `json:"postId"`
	Text             string    `json:"text"`
	Deleted          bool      `json:"deleted"`
	DeletedDate      int64     `json:"deletedDate"`
	CreatedDate      int64     `json:"created_date"`
	LastUpdated      int64     `json:"last_updated"`
}

type NotificationModel

type NotificationModel struct {
	ObjectId             uuid.UUID `json:"objectId"`
	OwnerUserId          uuid.UUID `json:"ownerUserId"`
	OwnerDisplayName     string    `json:"ownerDisplayName"`
	OwnerAvatar          string    `json:"ownerAvatar"`
	CreatedDate          int64     `json:"created_date"`
	Title                string    `json:"title"`
	Description          string    `json:"description"`
	URL                  string    `json:"url"`
	NotifyRecieverUserId uuid.UUID `json:"notifyRecieverUserId"`
	TargetId             uuid.UUID `json:"targetId"`
	IsSeen               bool      `json:"isSeen"`
	Type                 string    `json:"type"`
	EmailNotification    int16     `json:"emailNotification"`
}

Jump to

Keyboard shortcuts

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