# 创建预约项目
该接口方法需要安装 美业小程序,如未安装需要前往安装才可以使用
# 接口标识:create_appointment_information
# 接口功能
创建预约项目
# 调用方式
wx.cloud.callFunction({
name: 'cloudbase_module',
data: {
name: 'create_appointment_information',
data: {
"data": {
"date": 123456,
"wxOpenId": "预约人id(类型为string)",
"telephone": "预约电话(类型为string)",
"serviceId": "服务id(类型为string)",
"status": "1"
}
},
},
success: (res) => {
console.log(res)
},
});
# 使用示例
(1) 创建预约项目
wx.cloud.callFunction({
name: 'cloudbase_module',
data: {
name: 'create_appointment_information',
data: {
"data": {
"date": 123456,
"wxOpenId": "wx123456789",
"telephone": "1888888811",
"serviceId": "9fe3c0fd664c63f7014f72dc0b12353a",
"status": "1"
}
},
},
success: (res) => {
console.log(res)
},
});
# 入参:
参数 | 类型 | 必填 | 描述 |
---|---|---|---|
date | number | 否 | 预约日期 |
wxOpenId | string | 否 | openId |
telephone | string | 否 | 预约电话 |
serviceId | string | 否 | 服务ID |
status | string | 否 | 服务状态,1-待服务 2-已完成 3-用户取消 4-超时作废 |