rabbitmq指令

一、消息推送

访客

1.访客预约通知

{
  "task":"push_message",//类型:推送消息
  "command":20001, //编号
  "payload":{ 
    "tenant":"租户uuid", //租户标识
    "uuid": "test123456", //要推送的人的uuid
    "staffName": "fsaf",//员工姓名
    "reason": "来访事由",
    "startTime": "2021-07-27 15:03:00",//预约时间
    "guestName": "小明",//访客姓名
    "guestPhone": "17454652322",
    "remark": "备注"
    }
}

2.访客邀约通知

{
  "task":"push_message",//类型:推送消息
  "command":20002, //编号
  "payload":{ 
    "tenant":"租户uuid", //租户标识
    "uuid": "test123456", //要推送的人的uuid
    "staffName": "fsaf",//员工姓名
    "reason": "来访事由",
    "startTime": "2021-07-27 15:03:00",//预约时间
    "guestName": "小明",//访客姓名
    "remark": "备注"
    }
}

3.访客预约结果通知

{
  "task":"push_message",//类型:推送消息
  "command":20003, //编号
  "payload":{ 
    "tenant":"租户uuid", //租户标识
    "uuid": "test123456", //要推送的人的uuid
    "staffName": "fsaf",//员工姓名
    "startTime": "2021-07-27 15:03:00",//预约时间
    "guestName": "小明",//访客姓名
    "remark": "备注"
    }
}

4.访客接待通知

{
  "task":"push_message",//类型:推送消息
  "command":20004, //编号
  "payload":{ 
    "tenant":"租户uuid", //租户标识
    "uuid": "test123456", //要推送的人的uuid
    "staffName": "fsaf",//员工姓名
    "staffPhone": "fafa",//员工手机号
    "reason": "fdsafas" //来访事由
    }
}

5.访客离开问卷通知

{
  "task":"push_message",//类型:推送消息
  "command":20005, //编号
  "payload":{
   "tenant":"租户uuid",//租户标识
   "uuid": "test123456",//要推送的人的uuid
   "name": "fsaf"//访客姓名
  }
}

员工

1.访客预约通知

{
  "task":"push_message",//类型:推送消息
  "command":30001, //编号
  "payload":{
   "tenant":"租户ID",//租户标识
  "uuid": "test123456",//要推送的人的uuid
  "staffName": "fsaf",//员工姓名
  "reason": "来访事由",
  "startTime": "2021-07-27 15:36:00",//预约时间
  "guestName": "访客姓名",
  "guestPhone": "访客手机号",
}
}

2.访客邀约通知

{
  "task":"push_message",//类型:推送消息
  "command":30002,//编号
  "payload":{
   "tenant":"租户ID",//租户标识
  "uuid": "test123456",//要推送的人的uuid
  "staffName": "fsaf",//员工姓名
  "reason": "来访事由",
  "startTime": "2021-07-27 15:39:00",//邀约时间
  "guestName": "访客姓名",
  "guestPhone": "访客手机号",
  "remark": "备注"
}
}

3.记录待审批通知

{
  "task":"push_message",//类型:推送消息
  "command":30003,//编号
  "payload":{
   "tenant":"租户ID",//租户标识
  "uuid": "test123456",//要推送的人的uuid
  "staffName": "fsaf",//员工姓名
  "reason": "来访事由",
  "startTime": "2021-07-27 15:39:00",
  "guestName": "访客姓名",
  "guestPhone": "访客手机号"
}
}

4.审批结果通知

{
  "task":"push_message",//类型:推送消息
  "command":30004,//编号
  "payload":{
   "tenant":"租户ID",//租户标识
  "uuid": "test123456",//要推送的人的uuid
  "staffName": "fsaf",//员工姓名
  "status": "来访事由",
  "startTime": "2021-07-27 15:39:00",
  "guestName": "访客姓名",
  "remark": "备注"
}
}

5.审批结果通知抄送人

{
  "task":"push_message",//类型:推送消息
  "command":30005,//编号
  "payload":{
   "tenant":"租户ID",//租户标识
   "uuid": "test123456",//要推送的人的uuid
   "staffName": "fsaf",//员工姓名
   "startTime": "2021-07-27 15:39:00",
   "guestName": "访客姓名"
}
}

6.访客接待通知员工

{
  "task":"push_message",//类型:推送消息
  "command":30006,//编号
  "payload":{
   "tenant":"租户ID",//租户标识
   "uuid": "test123456",//要推送的人的uuid
   "name": "访客姓名",
   "phone": "访客手机号",
   "time": "2021-07-27 15:47:00",
   "address": "地址"
}
}

7.访客离开通知员工

{
  "task":"push_message",//类型:推送消息
  "command":30007,//编号
  "payload":{
   "tenant":"租户ID",//租户标识
   "uuid": "test123456",//要推送的人的uuid
   "name": "fsaf","访客姓名"
   "time":  "2021-07-27 15:47:00",
   "device": "设备"
}
}

你可能感兴趣的:(rabbitmq指令)