Documentation
¶
Index ¶
- func CheckOrderingTime(orderingEndTime string) (bool, error)
- func Orders(sid string, canteen string) ([][]order, error)
- func PickOrders(sid string, canteen string, userHash string) ([][]order, [][]order, error)
- func RegisterBetatester(userHash string, registerHash string) error
- func SendOrders(request SendOrdersRequest, userHash string) error
- type AccountInfoResponse
- type LoginRequest
- type LoginResponse
- type LoginReturn
- type SendOrdersRequest
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOrderingTime ¶
func PickOrders ¶
returns a list of picked orders, originally used orders and used filters and possibly an error
func RegisterBetatester ¶
func SendOrders ¶
func SendOrders(request SendOrdersRequest, userHash string) error
Types ¶
type AccountInfoResponse ¶
type AccountInfoResponse struct { Konto string `json:"konto"` VS string `json:"vs"` Jmeno string `json:"jmeno"` Email string `json:"email"` Vydej int `json:"vydej"` Limit string `json:"limit"` Vicenasobny bool `json:"vicenasobny"` PocetJidel int `json:"pocetJidel"` Podrobnosti int `json:"podrobnosti"` EditaceJidelnicku int `json:"editaceJidelnicku"` ID string `json:"id"` Cislo string `json:"cislo"` BakalarID string `json:"bakalarId"` Prihlaska int `json:"prihlaska"` Pasivni bool `json:"pasivni"` Verze string `json:"verze"` Text string `json:"text"` Mena string `json:"mena"` Dochazka string `json:"dochazka"` NazevJidelny string `json:"nazevJidelny"` }
func GetAccountInfo ¶
func GetAccountInfo(sid string, canteen string) (*AccountInfoResponse, error)
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct { Betatest bool `json:"betatest"` Cislo string `json:"cislo"` IgnoreCert bool `json:"ignoreCert"` Jmeno string `json:"jmeno"` S5url string `json:"s5url"` SID string `json:"sid"` Uzivatel User `json:"uzivatel"` Verze string `json:"verze"` ZustatPrihlasen bool `json:"zustatPrihlasen"` }
type LoginReturn ¶
type SendOrdersRequest ¶
Click to show internal directories.
Click to hide internal directories.