feat: zadávání cen
CI / Generate TypeScript types (push) Successful in 10s
CI / Server unit tests (push) Successful in 28s
CI / Build server (push) Successful in 37s
CI / Build client (push) Successful in 45s
CI / Playwright E2E tests (push) Successful in 2m15s
CI / Build and push Docker image (push) Successful in 45s
CI / Notify (push) Successful in 2s

This commit is contained in:
Ondřej Anděl committed 2026-10-21 09:42:04 +02:00
1 parent 96dc3f0053
commit 9a3987a2fa
13 files changed
+244 -11

No files matched your search

+2
View File
@@ -24,6 +24,8 @@ paths:
$ref: "./paths/food/removeChoice.yml"
/food/updateNote:
$ref: "./paths/food/updateNote.yml"
/food/updatePrice:
$ref: "./paths/food/updatePrice.yml"
/food/removeChoices:
$ref: "./paths/food/removeChoices.yml"
/food/changeDepartureTime:
+18
View File
@@ -0,0 +1,18 @@
post:
operationId: updatePrice
summary: Nastavení ceny oběda k volbě uživatele (pro přehled stravování). Lze jen u voleb podniků, ne u objednávání, Pizza day, "neobědvám" a "rozhoduji se".
requestBody:
required: true
content:
application/json:
schema:
properties:
dayIndex:
$ref: "../../schemas/_index.yml#/DayIndex"
price:
description: Cena v haléřích. Pokud není předána, cena se odstraní.
type: integer
minimum: 0
responses:
"200":
$ref: "../../api.yml#/components/responses/ClientDataResponse"
+3
View File
@@ -101,6 +101,9 @@ UserLunchChoice:
note:
description: Volitelná, veřejně viditelná uživatelská poznámka k vybrané volbě
type: string
price:
description: Uživatelem zadaná cena oběda v haléřích, promítá se do přehledu stravování
type: integer
isBuyer:
description: Příznak, zda je tento uživatel objednatelem pro stav "Budu objednávat"
type: boolean