syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package v1; // 用于生成指定语言go的包名称 option go_package = "dust-monitor/pb/v1"; message WeatherConditionRequest{ // 省市名(市为直辖市) string province = 1; // 地区 string region = 2; } message WeatherConditionReply{ string condition = 1; string condition_id = 2; string humidity = 3; string icon = 4; string pressure = 5; string real_feel = 6; string sun_rise = 7; string sun_set = 8; string temp = 9; string tips = 10; string updatetime = 11; string uvi = 12; string wind_dir = 13; string wind_level = 14; string wind_speed = 15; } message WeatherEnviromentRequest{ // 省市名(市为直辖市) string province = 1; // 地区 string region = 2; } message WeatherEnviromentReply{ string city_name = 1; // 一氧化碳指数 string co = 2; // 二氧化氮指数 string no2= 3; // 臭氧指数 string o3 = 4; // PM10指数 string pm10 = 5; // PM2.5指数 string pm25 = 6; // 全国排名 string rank = 7; // 二氧化硫指数 string so2 = 8; // 空气质量指数值 string value = 9; } message WeatherForecast15Request{ // 省市名(市为直辖市) string province = 1; // 地区 string region = 2; } message WeatherForecast15{ string condition_day = 1; string condition_id_day = 2; string condition_id_night = 3; string condition_night = 4; string moonphase = 5; string temp_day = 6; string temp_night = 7; string wind_dir_day = 8; string wind_dir_night = 9; string wind_level_day = 10; string wind_levelNight = 11; string wind_speed_day = 12; string wind_speed_night = 13; } message WeatherForecast15Reply{ repeated WeatherForecast15 WeatherForecast15= 1; }