models

package
v0.0.0-...-6eddc5e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EGender

type EGender string
const (
	EGenderMale   EGender = "Male"
	EGenderFemale EGender = "Female"
)

type Owner

type Owner struct {
	Id          primitive.ObjectID `json:"id" bson:"_id"`
	UserId      string             `json:"-" bson:"user_id" swaggerignore:"true"`
	Name        string             `json:"name" bson:"name"`
	DateOfBirth primitive.DateTime `json:"date_of_birth" bson:"date_of_birth"`
	Picture     string             `json:"picture" bson:"picture"`
}

type Pet

type Pet struct {
	Id          primitive.ObjectID `json:"id" bson:"_id"`
	OwnerId     string             `json:"-" bson:"owner_id" swaggerignore:"true"`
	Name        string             `json:"name" bson:"name"`
	DateOfBirth primitive.DateTime `json:"date_of_birth" bson:"date_of_birth"`
	Picture     string             `json:"picture" bson:"picture"`
	Species     string             `json:"species" bson:"species"`
	Breed       string             `json:"breed" bson:"breed"`
	Weight      float64            `json:"weight" bson:"weight"`
	Gender      EGender            `json:"gender" bson:"gender"`
}

Jump to

Keyboard shortcuts

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