feat: 添加预约核销功能

This commit is contained in:
ws
2026-04-29 18:24:34 +08:00
parent f1d1c9b460
commit 98f5c7bc49
7 changed files with 125 additions and 77 deletions
+5 -7
View File
@@ -200,18 +200,16 @@ const appointmentDB = {
},
/**
* 核销通知被访人
* 核销预约记录(通知被访人访客已到达)
* @param {string} id - 预约记录 id
* @returns {Promise<boolean>}
* @returns {Promise<string>} 操作结果
*/
async notifyHost(id) {
await request({
async notifyHostArrival(id) {
return await request({
url: BASE_URL + API.NOTIFY_HOST,
method: 'POST',
header: { 'content-type': 'application/json' },
method: 'GET',
data: { id }
})
return true
}
}