增加detail
parent
c737e0719a
commit
eca884de0a
155
mock-config.json
155
mock-config.json
|
|
@ -1229,7 +1229,8 @@
|
|||
"https://res.klyj.jinzejk.com/nursing/service02.png",
|
||||
"https://res.klyj.jinzejk.com/nursing/service03.png",
|
||||
"https://res.klyj.jinzejk.com/nursing/service04.png"
|
||||
]
|
||||
],
|
||||
"detail":"https://res.klyj.jinzejk.com/nursing/detail.png"
|
||||
},
|
||||
"swagger": {
|
||||
"summary": "获取康养服务详情",
|
||||
|
|
@ -1275,8 +1276,160 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/housekeeping/cleaning/list",
|
||||
"response": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "全屋清洁",
|
||||
"price": 120.00,
|
||||
"unit": "元起",
|
||||
"tag": "随时可约·深度清洁",
|
||||
"purchased": 73,
|
||||
"cover": "https://res.klyj.jinzejk.com/cleaning/cleaning01.png"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "油烟机清洗",
|
||||
"price": 43.00,
|
||||
"unit": "元起",
|
||||
"tag": "随时可约·深度清洁",
|
||||
"purchased": 73,
|
||||
"cover": "https://res.klyj.jinzejk.com/cleaning/cleaning02.png"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "卧室及公共区域打扫",
|
||||
"price": 70.00,
|
||||
"unit": "元起",
|
||||
"tag": "随时可约·深度清洁",
|
||||
"purchased": 73,
|
||||
"cover": "https://res.klyj.jinzejk.com/cleaning/cleaning03.png"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "卫生间清洁",
|
||||
"price": 120.00,
|
||||
"unit": "元起",
|
||||
"tag": "随时可约·深度清洁",
|
||||
"purchased": 73,
|
||||
"cover": "https://res.klyj.jinzejk.com/cleaning/cleaning04.png"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "家电维修",
|
||||
"price": 100.00,
|
||||
"unit": "元起",
|
||||
"tag": "随时可约·深度清洁",
|
||||
"purchased": 73,
|
||||
"cover": "https://res.klyj.jinzejk.com/cleaning/cleaning05.png"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "空调清洗",
|
||||
"price": 80.00,
|
||||
"unit": "元起",
|
||||
"tag": "随时可约·深度清洁",
|
||||
"purchased": 73,
|
||||
"cover": "https://res.klyj.jinzejk.com/cleaning/cleaning06.png"
|
||||
}
|
||||
],
|
||||
"swagger": {
|
||||
"summary": "获取日常保洁服务列表",
|
||||
"description": "获取家政服务中日常保洁类目的服务项,包含价格、服务标签、封面图等信息。",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "保洁服务列表",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"title": { "type": "string" },
|
||||
"price": { "type": "number" },
|
||||
"unit": { "type": "string" },
|
||||
"tag": { "type": "string" },
|
||||
"purchased": { "type": "integer" },
|
||||
"cover": { "type": "string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/housekeeping/cleaning/detail",
|
||||
"response": {
|
||||
"id": 1,
|
||||
"title": "全屋清洁",
|
||||
"price": 120.00,
|
||||
"unit": "元起",
|
||||
"banner": ["https://res.klyj.jinzejk.com/cleaning/cleaning01.png","https://res.klyj.jinzejk.com/cleaning/cleaning02.png","https://res.klyj.jinzejk.com/cleaning/cleaning03.png"],
|
||||
"cover": "https://res.klyj.jinzejk.com/cleaning/detail.png",
|
||||
"shortDesc": "专业工具+人工精细擦洗,不留死角。清洗后擦拭保养,光亮如新",
|
||||
"subtitle": "爸妈打扫太辛苦 我们来帮!",
|
||||
"highlight": "专为长者定制的全屋清洁服务",
|
||||
"scope": "日常保洁所含全部服务 + 全屋深度除尘、橱柜内部清理、油污/水垢清除、厨房高温蒸汽消毒",
|
||||
"zones": [
|
||||
"卧室", "卫生间", "厨房", "餐厅", "客厅", "阳台"
|
||||
]
|
||||
},
|
||||
"swagger": {
|
||||
"summary": "获取家政服务详情",
|
||||
"description": "返回指定家政服务项目的详情信息,包括价格、简介、服务范围、时长建议、覆盖区域、服务流程等。",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
},
|
||||
"description": "服务ID"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "服务详情信息",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"title": { "type": "string" },
|
||||
"price": { "type": "number" },
|
||||
"unit": { "type": "string" },
|
||||
"banner": { "type": "array" },
|
||||
"cover": { "type": "string" },
|
||||
"shortDesc": { "type": "string" },
|
||||
"subtitle": { "type": "string" },
|
||||
"highlight": { "type": "string" },
|
||||
"scope": { "type": "string" },
|
||||
"zones": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue