medicament

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMedicamentInput

type CreateMedicamentInput struct {
	Name            string   `json:"name"`
	Unit            string   `json:"unit"`
	TargetDiseases  []string `json:"target_diseases"`
	TreatedSymptoms []string `json:"treated_symptoms"`
	SideEffects     []string `json:"side_effects"`
	Type            string   `json:"type"`
	Content         string   `json:"content"`
	Quantity        int      `json:"quantity"`
}

type CreateMedicamentResponse

type CreateMedicamentResponse struct {
	Medicament model.Medicine
	Code       int
	Err        error
}

type GetMedicamentByIdResponse

type GetMedicamentByIdResponse struct {
	Medicine model.Medicine
	Code     int
	Err      error
}

func GetMedicamentById

func GetMedicamentById(id string) GetMedicamentByIdResponse

type GetMedicamentsResponse

type GetMedicamentsResponse struct {
	Medicines []model.Medicine
	Code      int
	Err       error
}

func GetMedicaments

func GetMedicaments() GetMedicamentsResponse

Jump to

Keyboard shortcuts

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