Add DbType for API requests

This commit is contained in:
qowevisa 2024-10-29 12:27:26 +02:00
parent 713f19a201
commit cfb97485e3

View File

@ -59,3 +59,9 @@ type DbIncome struct {
Date time.Time `json:"date" example:"29/11/2001 12:00"` Date time.Time `json:"date" example:"29/11/2001 12:00"`
UserID uint `json:"user_id" example:"1"` UserID uint `json:"user_id" example:"1"`
} }
type DbType struct {
Name string `json:"name" example:"Medicine"`
Comment string `json:"comment" example:""`
Color string `json:"color" example:"red"`
}