Skip to content

Instantly share code, notes, and snippets.

@semasping
Last active June 11, 2020 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semasping/d170f2ffa3403524a0e52726ccecf058 to your computer and use it in GitHub Desktop.
Save semasping/d170f2ffa3403524a0e52726ccecf058 to your computer and use it in GitHub Desktop.
{
"dates": [
{
"date": "2020, 06, 10",
"hours": [
"12",
"13",
"14",
"15",
"16",
"17",
"18"
]
},
{
"date": "2020, 06, 12",
"hours": [
"12",
"13",
"14",
"15",
"16",
"17",
"18"
]
},
{
"date": "2020, 06, 17",
"hours": [
"11",
"12",
"13",
"14",
"17",
"18"
]
},
],
"excludedDates": [],
"excludedTimes": [
{
"date": "2020, 06, 17",
"hours": [
"12",
"13",
"14",
"17",
"18"
]
},
{
"date": "2020, 06, 10",
"hours": [
"12",
"13",
"15",
"16",
"17",
"18"
]
}
],
"period": "always"
}
/*у нас пришло бронирование на 10 июня на 14 часов
после бронирования наш json поменяется*/
{
"dates": [
{
"date": "2020, 06, 10",
"hours": [
"12",
"13",
"15",
"16",
"17",
"18"
]
},
{
"date": "2020, 06, 12",
"hours": [
"12",
"13",
"14",
"15",
"16",
"17",
"18"
]
},
{
"date": "2020, 06, 17",
"hours": [
"11",
"12",
"13",
"14",
"17",
"18"
]
},
],
"excludedDates": [],
"excludedTimes": [
{
"date": "2020, 06, 17",
"hours": [
"12",
"13",
"14",
"17",
"18"
]
},
{
"date": "2020, 06, 10",
"hours": [
"12",
"13",
"15",
"16",
"17",
"18"
]
}
],
"period": "always"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment