123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "access-control-monitor/pb/v1";
- message GetVcodeRequest{
- string phone_number = 1; // 电话号码
- }
- message GetVcodeReply{
- uint32 vcode = 1; // 验证码
- }
- message CheckVcodeRequest{
- string phone_number = 1; // 电话号码
- uint32 vcode = 2; // 验证码
- }
- message CheckVcodeReply{
- }
- message SendReserveRequest {
- string phone_number = 1;
- string services = 2;
- string times = 3;
- string shop = 4;
- string addr = 5;
- string service_phone = 6;
- string plate_no = 7;
- }
- message SendReserveReply {
- }
- message SendAlarmRequest{
- string phone_number = 1; // 电话号码
- // 邮件
- string email = 2;
- // 设备名(扬尘设备(扬尘0001))
- string device_name = 3;
- // 告警原因
- string alarm_reason = 4;
- // 告警时间
- string alarm_time = 5;
- }
- message SendAlarmReply{
- }
- // 发送通过认证短信
- message SendThroughVerifyRequest{
- // 公司名
- string company = 1;
- // 类型 1 供应商,2 企业
- int32 company_type = 2;
- string phone_number = 3;
- bool status = 4;
- string approve_time = 5;
- }
- message SendThroughVerifyReply{
- }
- message SendEmailRequest {
- string email = 1;
- string content = 2;
- }
- message SendEmailReply {
- }
- 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;
- }
- message ProvincialGetProjectCodeRequest {
- int32 category = 1;
- string name = 2;
- string area_code = 3;
- }
- message ProvincialGetProjectCodeReply {
- string code = 1;
- }
- message ProvincialPostProjectRequest {
- string project_code = 1;
- string project_name = 2;
- string project_category = 3;
- string owner_name = 4;
- string build_corporation_code= 5;
- string area_code = 6;
- string address = 7;
- string invest = 8;
- string prj_size = 9;
- string start_date = 10;
- string complete_date = 11;
- string prj_status = 12;
- int32 construct_type = 13;
- int32 invest_type = 14;
- double building_area = 15;
- string scale = 16;
- }
- message ProvincialPostProjectReply {
- string id = 1;
- }
- message ProvincialPostDustDeviceRequest {
- string code = 1;
- string name = 2;
- string device_name = 3;
- string device_id = 4;
- string manufacturer = 5;
- string batch = 6;
- string unit = 7;
- string device_model = 8;
- }
- message ProvincialPostDustDeviceReply {
- string id = 1;
- }
- message ProvincialDustData {
- string code = 1;
- string name = 2;
- string device_id = 3;
- string monitoring_time = 4;
- string save_time = 5;
- double pm10_value = 6;
- double pm25_value = 7;
- double voice = 8;
- int32 spray_status=9;
- int32 type = 10;
- }
- message ProvincialPostDustDataRequest {
- repeated ProvincialDustData Datas = 1;
- }
- message ProvincialPostDustDataReply {
- string id = 1;
- }
- message ProvincialVerifyDataRequest {
- string id = 1;
- }
- message ProvincialVerifyDataReply {
- int32 state = 1;
- int32 result = 2;
- string all_message = 3;
- }
- message ProvincialPostTeamRequest {
- string code = 1;
- int64 team_sys_no = 2;
- string corp_code = 3;
- string corp_name = 4;
- string team_name = 5;
- string team_leader_name = 6;
- string team_leader_phone = 7;
- }
- message ProvincialPostTeamReply {
- string id = 1;
- }
- message ProvincialPostStaffRequest {
- string code = 1;
- int64 team_sys_no = 2;
- string corp_code = 3;
- string corp_name = 4;
- string team_name = 5;
- string worker_name = 6;
- string is_team_leader = 7;
- int32 id_card_type = 8;
- string id_card_number = 9;
- int32 age = 10;
- string gender = 11;
- string nation = 12;
- string address = 13;
- string head_image = 14;
- int32 politics_type = 15;
- int32 culture_level_type = 16;
- string grant_org = 17;
- string work_type = 18;
- string native_place = 19;
- string mobile = 20;
- string has_contract = 21;
- }
- message ProvincialPostStaffReply {
- string id = 1;
- }
- message ProvincialPostStaffAttendanceRequest {
- string code = 1;
- int64 team_sys_no = 2;
- string team_name = 3;
- string worker_name = 4;
- int32 id_card_type = 5;
- string id_card_number = 6;
- string date = 7;
- int32 direction = 8;
- }
- message ProvincialPostStaffAttendanceReply {
- string id = 1;
- }
|