Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(args context.ServiceArguments) (context.ServiceResult, error)
Serve call for the service registry
Types ¶
type Address ¶
type Category ¶
type Category struct {
gorm.Model
Children []Category `gorm:"foreignkey:ParentID" json:"children"`
Name string `json:"name"`
Parent *Category
ParentID *uint `sql:"type:integer REFERENCES categories(id)" json:"-"`
Scores []Score `gorm:"foreignkey:CategoryID" json:"scores"`
}
func (Category) MarshalJSON ¶
type CategoryJSON ¶
type Order ¶
type Order struct {
gorm.Model
BillingAddress *Address `json:"billingAddress"`
BillingAddressID uint `sql:"type:integer REFERENCES addresses(id)" json:"-"`
BillingDate int64 `json:"billingDate"`
Company string `json:"company"`
Date int64 `json:"date"`
DeliveryAddress *Address `json:"deliveryAddress"`
DeliveryAddressID uint `sql:"type:integer REFERENCES addresses(id)" json:"-"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Payed bool `json:"payed"`
ReferenceCount int `json:"referenceCount"`
Salutation string `json:"salutation"`
Score Score `json:"score"`
ScoreID uint `sql:"type:integer REFERENCES scores(id)" json:"scoreId"`
ScoreAmount int `json:"scoreAmount"`
Telephone string `json:"telephone"`
}
type Score ¶
type Score struct {
gorm.Model
Category *Category
CategoryID uint `sql:"type:integer REFERENCES categories(id)" json:"-"`
Difficulty int `json:"difficulty"`
Price float64 `json:"price"`
Title string `json:"title"`
}
func (Score) MarshalJSON ¶
type User ¶
type User struct {
*UserWithoutPassword
Password string `json:"password"`
}
Click to show internal directories.
Click to hide internal directories.