dao

package
v0.0.0-...-0a0b1f3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookInfoDAO

type BookInfoDAO struct {
	// ISBN is the unique identifier of the book.
	ISBN string `bson:"isbn"`
	// Title is the title of the book.
	Title string `bson:"title"`
	// Author is the author of the book.
	Author string `bson:"author"`
	// Price is the price of the book.
	Price float64 `bson:"price"`
	// PublishDate is the date when the book was published.
	PublishDate primitive.DateTime `bson:"publishDate"`
}

BookInfoDAO represents the struct of document type to be stored in mongoDB

Jump to

Keyboard shortcuts

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