12345678910111213141516171819202122232425262728293031323334353637383940 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "dust-monitor/pb/v1";
- message DustData {
- double pm10_avg=1;
- double pm25_avg=2;
- string st=3;
- string cn=4;
- string mn=5;
- string date_time=6;
- double tsp_avg=7;
- double t01_avg=8;
- double h01_avg=9;
- double w01_avg=10;
- double w02_avg=11;
- double r01_avg=12;
- double p01_avg=13;
- double b03_avg=14;
- double lng=15;
- double lat=16;
- string pm10_flag=17;
- string pm25_flag=18;
- string tsp_flag=19;
- string t01_flag=20;
- string h01_flag=21;
- string w01_flag=22;
- string w02_flag=23;
- string r01_flag=24;
- string p01_flag=25;
- string b03_flag=26;
- double w03_avg=27;
- string w03_flag=28;
- string ecode = 29;
- int32 spray = 30;
- }
|