models

package
v0.0.0-...-295118f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryDetails

type DeliveryDetails struct {
	DeliveryStatus  int    `json:"deliveryStatus"`
	DeliveryLabel   string `json:"deliveryLabel"`
	DeliveryMessage string `json:"deliveryMessage"`
}

type OrderUpdate

type OrderUpdate struct {
	Order   *ZomatoOrder `json:"order"`
	SlackId string       `json:"slackId"`
}

type ResInfo

type ResInfo struct {
	Name string `json:"name"`
}

type Schedule

type Schedule struct {
	From string `bson:"from" json:"from"`
	To   string `bson:"to" json:"to"`
}

type UpdateUserSettings

type UpdateUserSettings struct {
	SlackId    string   `json:"slackId"`
	StartTime  []string `json:"startTime"`
	EndTime    []string `json:"endTime"`
	AddressIds []string `json:"addressIds"`
}

type User

type User struct {
	UserId     string      `bson:"user_id" json:"user_id"`
	ChannelId  string      `bson:"channel_id" json:"channel_id"`
	TeamDomain string      `bson:"team_domain" json:"team_domain"`
	Schedule   []*Schedule `bson:"schedule" json:"schedule"`
	AddressIds []string    `bson:"address_ids" json:"address_ids"`
}

type ZomatoOrder

type ZomatoOrder struct {
	OrderId         uint64           `json:"orderId"`
	Status          int              `json:"status"`
	PaymentStatus   int              `json:"paymentStatus"`
	DeliveryDetails *DeliveryDetails `json:"deliveryDetails"`
	ResInfo         *ResInfo         `json:"resInfo"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL