type Login struct {
// Username to login Username *string `json:"Username,omitempty"`
// Password of the user Password *string `json:"Password,omitempty"`
}
type LoginSuccess struct {
// User that was logged in User *User `json:"User,omitempty"`
// Login Status Success *bool `json:"Success,omitempty"`
// Message on error Message *string `json:"Message,omitempty"`
}
type Product struct {
ID *string `json:"ID,omitempty"`
// Name of the property Name *string `json:"Name,omitempty"`
Category *string `json:"Category,omitempty"`
Price *float64 `json:"Price,omitempty"`
CreatedAt *string `json:"CreatedAt,omitempty"`
Properties []*ProductProperty `json:"Properties,omitempty"`
}
type ProductInput struct {
// Name of the property Name *string `json:"Name,omitempty"`
Category *string `json:"Category,omitempty"`
Price *float64 `json:"Price,omitempty"`
}
type ProductProperty struct {
ID *string `json:"ID,omitempty"`
// Name of the property Name *string `json:"Name,omitempty"`
// Value of the property Value *string `json:"Value,omitempty"`
}