models

package
v0.0.0-...-7876fda Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 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 InsertResponse

type InsertResponse struct {
	Message   string `json:"message"`
	Insert_id string `json:"insert_id"`
}

type Product

type Product struct {
	ID          primitive.ObjectID `bson:"_id,omitempty"`
	Name        string             `bson:"name,omitempty"`
	Image       string             `bson:"image,omitempty"`
	Description string             `bson:"description,omitempty"`
	Price       int                `bson:"price,omitempty"`
	CreatedOn   time.Time          `bson:"createdon,omitempty"`
}

Catalog is used to represent Catalog profile data

Jump to

Keyboard shortcuts

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