增加来访核验
This commit is contained in:
@@ -197,6 +197,21 @@ const appointmentDB = {
|
||||
data: { department }
|
||||
})
|
||||
return data || []
|
||||
},
|
||||
|
||||
/**
|
||||
* 核销通知被访人
|
||||
* @param {string} id - 预约记录 id
|
||||
* @returns {Promise<boolean>}
|
||||
*/
|
||||
async notifyHost(id) {
|
||||
await request({
|
||||
url: BASE_URL + API.NOTIFY_HOST,
|
||||
method: 'POST',
|
||||
header: { 'content-type': 'application/json' },
|
||||
data: { id }
|
||||
})
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user