post

package
v1.19.25 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceMany

func ReplaceMany(
	ctx context.Context,
	companyID primitive.ObjectID,
	vkGroupID int,
	replaceIfNewLessThanOld bool,
) (
	err error,
)

Types

type Photo

type Photo struct {
	URLm string `bson:"um,omitempty"`
	URLr string `bson:"ur,omitempty"`
}

type Post

type Post struct {
	ID        primitive.ObjectID `bson:"_id,omitempty"`
	CompanyID primitive.ObjectID `bson:"c,omitempty"`
	Date      time.Time          `bson:"d,omitempty"`
	Text      string             `bson:"t,omitempty"`
	Photos    []Photo            `bson:"p,omitempty"`
}

func Get

func Get(ctx context.Context, companyID primitive.ObjectID, skip, limit uint32, excludeIDs []primitive.ObjectID) (
	res []Post,
	err error,
)

Jump to

Keyboard shortcuts

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