feat: add dry wash json #44
@ -3,4 +3,4 @@
|
|||||||
docker stop ms-mongo
|
docker stop ms-mongo
|
||||||
docker volume remove ms_volume
|
docker volume remove ms_volume
|
||||||
docker volume create ms_volume
|
docker volume create ms_volume
|
||||||
docker run --rm -v ms_volume:/data/db --name ms-mongo -p 27017:27017 -d mongo:4.4.13
|
docker run --rm -v ms_volume:/data/db --name ms-mongo -p 27017:27017 -d mongo:8.0.3
|
||||||
|
@ -47,6 +47,7 @@ app.use('/todo', require('./routers/todo/routes'))
|
|||||||
app.use('/dogsitters-finder', require('./routers/dogsitters-finder'))
|
app.use('/dogsitters-finder', require('./routers/dogsitters-finder'))
|
||||||
app.use('/kazan-explore', require('./routers/kazan-explore'))
|
app.use('/kazan-explore', require('./routers/kazan-explore'))
|
||||||
app.use('/edateam', require('./routers/edateam-legacy'))
|
app.use('/edateam', require('./routers/edateam-legacy'))
|
||||||
|
app.use('/dry-wash', require('./routers/dry-wash'))
|
||||||
|
|
||||||
app.use(require('./error'))
|
app.use(require('./error'))
|
||||||
|
|
||||||
|
15
server/routers/dry-wash/index.js
Normal file
15
server/routers/dry-wash/index.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
const router = require('express').Router()
|
||||||
|
|
||||||
|
router.get('/arm/masters', (req, res) => {
|
||||||
|
res
|
||||||
|
.status(200)
|
||||||
|
.send(require("./json/arm-masters/success.json"))
|
||||||
|
})
|
||||||
|
|
||||||
|
router.get('/arm/orders', (req, res) => {
|
||||||
|
res
|
||||||
|
.status(200)
|
||||||
|
.send(require(`./json/arm-orders/success.json`))
|
||||||
|
})
|
||||||
|
|
||||||
|
module.exports = router
|
35
server/routers/dry-wash/json/arm-masters/success.json
Normal file
35
server/routers/dry-wash/json/arm-masters/success.json
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"success": true,
|
||||||
|
"body": [
|
||||||
|
{
|
||||||
|
"id": "masters1",
|
||||||
|
"name": "Иван Иванов",
|
||||||
|
"schedule": [ {
|
||||||
|
"id": "order1",
|
||||||
|
"startWashTime": "2024-11-24T10:30:00.000Z",
|
||||||
|
"endWashTime": "2024-11-24T16:30:00.000Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "order2",
|
||||||
|
"startWashTime": "2024-11-24T11:30:00.000Z",
|
||||||
|
"endWashTime": "2024-11-24T17:30:00.000Z"
|
||||||
|
}],
|
||||||
|
"phone": "+7 900 123 45 67"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "masters12",
|
||||||
|
"name": "Иван Иванов",
|
||||||
|
"schedule": [ {
|
||||||
|
"id": "order1",
|
||||||
|
"startWashTime": "2024-11-24T10:30:00.000Z",
|
||||||
|
"endWashTime": "2024-11-24T16:30:00.000Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "order2",
|
||||||
|
"startWashTime": "2024-11-24T11:30:00.000Z",
|
||||||
|
"endWashTime": "2024-11-24T17:30:00.000Z"
|
||||||
|
}],
|
||||||
|
"phone": "+7 900 123 45 67"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
25
server/routers/dry-wash/json/arm-orders/success.json
Normal file
25
server/routers/dry-wash/json/arm-orders/success.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"success": true,
|
||||||
|
"body": [
|
||||||
|
{
|
||||||
|
"id": "order1",
|
||||||
|
"carNumber": "A123BC",
|
||||||
|
"startWashTime": "2024-11-24T10:30:00.000Z",
|
||||||
|
"endWashTime": "2024-11-24T16:30:00.000Z",
|
||||||
|
"orderDate": "2024-11-24T08:41:46.366Z",
|
||||||
|
"status": "progress",
|
||||||
|
"phone": "79001234563",
|
||||||
|
"location": "Казань, ул. Баумана, 1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "order2",
|
||||||
|
"carNumber": "A245BC",
|
||||||
|
"startWashTime": "2024-11-24T11:30:00.000Z",
|
||||||
|
"endWashTime": "2024-11-24T17:30:00.000Z",
|
||||||
|
"orderDate": "2024-11-24T07:40:46.366Z",
|
||||||
|
"status": "progress",
|
||||||
|
"phone": "79001234567",
|
||||||
|
"location": "Казань, ул. Баумана, 43"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user