Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMedicine ¶ added in v1.2.0
CreateMedicine ... Insert New data
func DeleteMedicine ¶ added in v1.2.0
DeleteMedicine ... Delete medicine
func GetAllMedicines ¶ added in v1.0.1
GetAllMedicines Fetch all medicine data
func GetMedicineByID ¶ added in v1.2.0
GetMedicineByID ... Fetch only one medicine by Id
Types ¶
type Medicine ¶ added in v1.0.1
type Medicine struct { ID int `json:"id" example:"123" gorm:"primaryKey"` Name string `json:"name" example:"Paracetamol" gorm:"unique"` Description string `json:"description" example:"Some Description"` EANCode string `json:"ean_code" example:"9900000124" gorm:"unique"` Laboratory string `json:"laboratory" example:"Roche"` CreatedAt time.Time `json:"created_at,omitempty" example:"2021-02-24 20:19:39" gorm:"autoCreateTime:mili"` UpdatedAt time.Time `json:"updated_at,omitempty" example:"2021-02-24 20:19:39" gorm:"autoUpdateTime:mili"` }
func UpdateMedicine ¶ added in v1.2.0
UpdateMedicine ... Update medicine
Click to show internal directories.
Click to hide internal directories.