models

package
v0.0.0-...-f243ebf Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 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 Article

type Article struct {
	ID             *primitive.ObjectID `bson:"_id,omitempty"`
	Author         *string             `bson:"author,omitempty"`
	Slug           *string             `bson:"slug,omitempty"`
	Title          *string             `bson:"title,omitempty"`
	Description    *string             `bson:"description,omitempty"`
	Body           *string             `bson:"body,omitempty"`
	TagList        []string            `bson:"tagList,omitempty"`
	CreatedAt      *time.Time          `bson:"createdAt,omitempty"`
	UpdatedAt      *time.Time          `bson:"updatedAt,omitempty"`
	FavoritesCount *int64              `bson:"favoritesCount,omitempty"`
}

type Comment

type Comment struct {
	ID        *primitive.ObjectID `bson:"_id,omitempty"`
	Author    *string             `bson:"author,omitempty"`
	Article   *string             `bson:"article,omitempty"`
	Body      *string             `bson:"body,omitempty"`
	CreatedAt *time.Time          `bson:"createdAt,omitempty"`
	UpdatedAt *time.Time          `bson:"updatedAt,omitempty"`
}

Jump to

Keyboard shortcuts

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