feat: 添加预约核销功能
This commit is contained in:
+5
-7
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user