db

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	ReplyTo string             `bson:"replyTo,omitempty" json:"replyTo,omitempty"`

	ParentId     string `bson:"parentId,omitempty" json:"parentId,omitempty"`
	FirstLevelId string `bson:"firstLevelId,omitempty" json:"firstLevelId,omitempty"`
	Type         string `bson:"type,omitempty" json:"type,omitempty"`
	Text         string `bson:"text,omitempty" json:"text,omitempty"`
	AuthorId     string `bson:"authorId,omitempty" json:"authorId,omitempty"`

	UpdateAt time.Time `bson:"updateAt,omitempty" json:"updateAt,omitempty"`
	CreateAt time.Time `bson:"createAt,omitempty" json:"createAt,omitempty"`
}

type History

type History struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Type     string             `bson:"type,omitempty" json:"type,omitempty"`
	Data     Comment            `bson:"data,omitempty" json:"data,omitempty"`
	UpdateAt time.Time          `bson:"updateAt,omitempty" json:"updateAt,omitempty"`
	CreateAt time.Time          `bson:"createAt,omitempty" json:"createAt,omitempty"`
}

Jump to

Keyboard shortcuts

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