web

package
v0.0.0-...-56ff5f7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 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 Kunjungan

type Kunjungan struct {
	FName    string     `json:"fname"`
	LName    string     `json:"lname"`
	Age      int        `json:"age"`
	Address  string     `json:"address"`
	Penyakit []Penyakit `json:"penyakit"`
}

type Obat

type Obat struct {
	ID           uint   `json:"id"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	Price        int    `json:"price"`
	QtyAvailable int    `json:"qty_available"`
	QtyReserved  int    `json:"qty_reserved"`
	QtyOn        int    `json:"qty_on"`
	Composition  string `json:"composition"`
}

type ObatCreated

type ObatCreated struct {
	ID           uint   `json:"id"`
	Name         string `json:"name"`
	Description  string `json:"string"`
	Price        int32  `json:"price"`
	QtyAvailable uint8  `json:"qty_available"`
	Composition  string `json:"composition"`
}

type ObatUpdated

type ObatUpdated struct {
	ID           uint   `json:"id"`
	Name         string `json:"name"`
	Description  string `json:"string"`
	Price        int32  `json:"price"`
	QtyAvailable uint8  `json:"qty_available"`
}

type Penyakit

type Penyakit struct {
	ID          uint   `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Obat        []Obat `json:"obat"`
}

type PenyakitCreated

type PenyakitCreated struct {
	ID          uint   `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Reported

type Reported struct {
	ID         primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Pengunjung string             `json:"pengunjung" bson:"pengunjung"`
	Age        int                `json:"age" bson:"age"`
	Address    string             `json:"address" bson:"address"`
	Category   string             `json:"category" bson:"category"`
}

type User

type User struct {
	ID      uint      `json:"id"`
	Email   string    `json:"email"`
	FName   string    `json:"fname"`
	LName   string    `json:"lname"`
	Age     int       `json:"age"`
	Address string    `json:"address"`
	TTL     time.Time `json:"ttl"`
}

Jump to

Keyboard shortcuts

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