Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Environment string `mapstructure:"ENV"`
MongoServer string `mapstructure:"MONGO_SERVER"`
MongoDatabase string `mapstructure:"MONGO_DATABASE"`
MongoUsername string `mapstructure:"MONGO_USERNAME"`
MongoPassword string `mapstructure:"MONGO_PASSWORD"`
LaravelBaseUrl string `mapstructure:"LARAVEL_BASE_URL"`
LaravelUserName string `mapstructure:"LARAVEL_USERNAME"`
LaravelPassword string `mapstructure:"LARAVEL_PASSWORD"`
UseTestNet bool `mapstructure:"USE_TEST_NET"`
StreamsPerListener int64 `mapstructure:"NUM_OF_STREAMS_PER_LISTENER"`
MySqlRootPassword string `mapstructure:"MYSQL_ROOT_PASSWORD"`
MySqlPassword string `mapstructure:"MYSQL_PASSWORD"`
MySqlUser string `mapstructure:"MYSQL_USER"`
MySqlDatabase string `mapstructure:"MYSQL_DATABASE"`
}
type FoodCommentMySql ¶
type FoodGroupMySql ¶
type FoodImageMySql ¶
type FoodMySql ¶
type FoodMySql struct {
Id int64 `json:"id,omitempty" bson:"id,omitempty"`
Name string `json:"name,omitempty" bson:"name,omitempty" binding:"required"`
FoodGroupId int64 `json:"FoodGroupId" bson:"FoodGroupId,omitempty" binding:"required"`
ResturanId int64 `json:"resturanId" bson:"resturanId,omitempty" binding:"required"`
}
type FoodMySqlDTO ¶
type FoodMySqlDTO struct {
Id int64 `json:"id,omitempty" bson:"id,omitempty"`
Name string `json:"name,omzitempty" bson:"name,omitempty" binding:"required"`
FoodGroupId int64 `json:"foodgroupid" bson:"foodgroupid,omitempty" binding:"required"`
ResturanId int64 `json:"resturanid" bson:"resturanid,omitempty"`
Image *string `json:"image" bson:"image"`
Images []string `json:"images" bson:"images"`
Comments []FoodCommentMySql `json:"comments" bson:"comments"`
FoodGroup FoodGroupMySql `json:"foodgroup" bson:"foodgroup"`
Resturan ResturanMySql `json:"resturan" bson:"resturan"`
}
type PagedResult ¶
type PagedResult struct {
TotalCount int `json:"totalcount"`
Items interface{} `json:"items"`
}
type Pagination ¶
type ResturanMySql ¶
Click to show internal directories.
Click to hide internal directories.