HM-SPMS/product/common/sysconfig/potobuf/PushMessage.proto
2025-03-13 11:01:20 +08:00

64 lines
2.7 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//========================================================================================
// @file PushMessage.proto
// @brief 推送服务相关消息结构及其定义
// @author ganyuhang
//========================================================================================
syntax="proto2";
package iot_idl;
// 缩写说明:
//========================================================================================
// 消息类型枚举
//========================================================================================
enum enPushTypeMessage
{
MT_PUSH_SMTP_MAIL = 1; // 邮件SMTP推送
MT_PUSH_SMTP_MAIL_ACK = 2; // 邮件SMTP推送确认
MT_PUSH_BBNIOT_VSMS = 3; // 大榕树电话/短信推送
MT_PUSH_BBNIOT_VSMS_ACK = 4; // 大榕树电话/短信推送确认
//====================================================================================
}
// 邮件SMTP发送
message SSMTP_MAIL
{
enum enConnectionType
{
CT_TCP_CONNECTION = 0;
CT_SSL_CONNECTION = 1;
CT_TLS_CONNECTION = 2; // STARTTLS
}
required string server_address = 1; // 服务器地址
required string port = 2; // 端口 一般是25 ssl为465
required enConnectionType connecttionType = 3 [default = CT_TCP_CONNECTION];// 连接方式
required string sender = 4; // 发送者
required string recipients = 5; // 接收者 ; 间隔多接收者
required string username = 6; // 用户名
required string password = 7; // 密码
required string subject = 8; // 标题
required string content = 9; // 内容
required int64 time = 10 ; //时标RFC1305、POSIX时标标准
}
// 大榕树短信/电话/语音告警
message SBBNIOT_VSMS
{
required string server_address = 1; // 服务地址
required string username = 2; // 用户名
required string password = 3; // 密码
required string method = 4; // 方式 send_sms=>发送短信, rf_call=>拨打电话tts_play=>语音播放
required string number = 5 ; // 号码 ;间隔
required string content = 6 ; // 内容UTF8
required int64 time = 7 ; // 时标RFC1305、POSIX时标标准
}