models

package
v0.0.0-...-53a68f7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CollectionBook holds the name of the articles collection
	CollectionBook = "books"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Id        bson.ObjectId `json:"id" bson:"_id,omitempty"`
	Isbn      string        `json:"isbn" bson:"isbn"`
	Author    string        `json:"author" form:"author" binding:"requered" bson:"author"`
	Title     string        `json:"title" form:"title" binding:"requered" bson:"title"`
	Price     int32         `json:"price" form:"price" bson:"price"`
	CreatedOn int64         `json:"created_on" bson:"created_od"`
	UpdatedOn int64         `json:"updated_on" bson:"updated_on"`
}

Book model

Jump to

Keyboard shortcuts

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