123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- syntax = "proto3";
- import "v1/project.proto";
- import "v1/vehicle.proto";
- import "v1/dust.proto";
- import "v1/staff.proto";
- import "v1/alarm.proto";
- import "v1/camera.proto";
- import "v1/tower.proto";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb;
- // 用于生成指定语言go的包名称
- option go_package = "smart-site-management-gateway/pb";
- service SmartSiteProject {
- // 登录
- rpc Login(v1.LoginRequest) returns (v1.LoginReply) {}
- rpc EmailPrepare(v1.EmailPrepareRequest) returns (v1.EmailPrepareReply) {}
- rpc EmailUpdate(v1.EmailUpdateRequest) returns (v1.EmailUpdateReply) {}
- rpc PhoneUpdate(v1.PhoneUpdateRequest) returns (v1.PhoneUpdateReply) {}
- rpc UserInfo(v1.UserInfoRequest) returns (v1.UserInfoReply) {}
- // 更新项目内容
- rpc ProjectChange(v1.ProjectChangeRequest) returns (v1.ProjectChangeReply) {}
- rpc ProjectInfoForChange(v1.ProjectInfoForChangeRequest) returns (v1.ProjectInfoForChangeReply) {}
- rpc ProjectChangeInfoList(v1.ProjectChangeInfoListRequest) returns (v1.ProjectChangeInfoListReply) {}
- // 设备列表
- rpc DeviceList(v1.DeviceListRequest) returns (v1.DeviceListReply) {}
- // 获取设备绑定的摄像头
- rpc DeviceVideoChannel(v1.DeviceVideoChannelRequest) returns (v1.DeviceVideoChannelReply) {}
- // 设备确认接口
- rpc DeviceApprove(v1.DeviceApproveRequest) returns (v1.DeviceApproveReply) {}
- // 摄像头列表
- rpc CameraList(v1.CameraListRequest) returns (v1.CameraListReply) {}
- rpc ChannelUpdate(v1.ChannelUpdateRequest) returns (v1.ChannelUpdateReply) {}
- // 设备绑定摄像头
- rpc DeviceBindCamera(v1.DeviceBindCameraRequest) returns (v1.DeviceBindCameraReply) {}
- // 设备解绑摄像头
- rpc DeviceUnbindCamera(v1.DeviceUnbindCameraRequest) returns (v1.DeviceUnbindCameraReply) {}
- // 车辆进出场列表
- rpc VehicleList(v1.VehicleListRequest) returns (v1.VehicleListReply) {}
- // 最近一次人员考勤数据
- rpc LatestStaffData(v1.LatestStaffDataRequest) returns (v1.LatestStaffDataReply) {}
- rpc StaffList(v1.StaffListRequest) returns (v1.StaffListReply) {}
- rpc StaffAttendance(v1.StaffAttendanceRequest) returns (v1.StaffAttendanceReply) {}
- // 员工工种统计
- rpc StaffWorkTypeStatistics(v1.StaffWorkTypeStatisticsRequest) returns (v1.StaffWorkTypeStatisticsReply) {}
- // 员工类型统计
- rpc StaffTypeStatistics(v1.StaffTypeStatisticsRequest) returns (v1.StaffTypeStatisticsReply) {}
- // 员工劳务公司统计
- rpc LaborCompanyStatistics(v1.LaborCompanyStatisticsRequest) returns (v1.LaborCompanyStatisticsReply) {}
- // 最近一次扬尘监控数据
- rpc LatestDustMonitorData(v1.LatestDustMonitorDataRequest) returns (v1.LatestDustMonitorDataReply) {}
- // 扬尘监控历史数据
- rpc DustMonitorHistory(v1.DustMonitorHistoryRequest) returns (v1.DustMonitorHistoryReply) {}
- // 扬尘设备列表
- rpc DustList(v1.DustListRequest) returns (v1.DustListReply) {}
- // 最近一次塔吊数据
- rpc LatestTowerMonitorData(v1.LatestTowerMonitorDataRequest) returns (v1.LatestTowerMonitorDataReply) {}
- // 塔吊历史数据
- rpc TowerMonitorHistory(v1.TowerMonitorHistoryRequest) returns (v1.TowerMonitorHistoryReply) {}
- // iot设备列表
- rpc IotList(v1.IotListRequest) returns (v1.IotListReply) {}
- rpc IotLast(v1.IotLastRequest) returns (v1.IotLastReply) {}
- // iot设备类型列表
- rpc IotTypeList(v1.IotTypeListRequest) returns (v1.IotTypeListReply) {}
- // aqi
- rpc DustAqi(v1.DustAqiRequest) returns (v1.DustAqiReply) {}
- // 获取告警信息列表
- rpc AlarmList(v1.AlarmListRequest) returns (v1.AlarmListReply) {}
- // 视频监控通道列表
- rpc ChannelList(v1.ChannelListRequest) returns (v1.ChannelListReply) {}
- // 视频监控视频列表
- rpc VedioList(v1.VedioListRequest) returns (v1.VedioListReply) {}
- // 获取视频监控播放地址
- rpc RealPlay(v1.RealPlayRequest) returns (v1.RealPlayReply) {}
- // 视频监控ptz控制
- rpc Ptz(v1.PtzRequest) returns (v1.PtzReply) {}
- // 保持监控在线
- rpc VedioPing(v1.VedioPingRequest) returns (v1.VedioPingReply) {}
- // 修改用户密码
- rpc ChangePasswd(v1.ChangePasswdRequest) returns (v1.ChangePasswdReply) {}
- // 工程信息
- rpc ProjectInfo(v1.ProjectInfoRequest) returns (v1.ProjectInfoReply){}
- // 设置工程平面图或效果图
- rpc ProjectSetPic(v1.ProjectSetPicRequest) returns (v1.ProjectSetPicReply){}
- // 修改工程名或地址,不需审批
- rpc ProjectUpdate(v1.ProjectUpdateRequest) returns (v1.ProjectUpdateReply){}
- // 项目设备统计
- rpc ProjectDeviceStatistics(v1.ProjectDeviceStatisticsRequest) returns (v1.ProjectDeviceStatisticsReply){}
- // 项目工程进度
- rpc ProjectProgress(v1.ProjectProgressRequest) returns (v1.ProjectProgressReply){}
- // 添加项目工程进度
- rpc ProjectProgressAdd(v1.ProjectProgressAddRequest) returns (v1.ProjectProgressAddReply){}
- // 项目工程阶段完成
- rpc ProjectProgressSet(v1.ProjectProgressSetRequest) returns (v1.ProjectProgressSetReply){}
- // 删除项目工程进度
- rpc ProjectProgressDel(v1.ProjectProgressDelRequest) returns (v1.ProjectProgressDelReply){}
- // 告警规则设置
- // 告警规则添加
- rpc AlarmRuleAdd(v1.AlarmRuleAddRequest)returns (v1.AlarmRuleAddReply){}
- // 告警规则列表
- rpc AlarmRuleList(v1.AlarmRuleListRequest)returns (v1.AlarmRuleListReply){}
- // 告警规则删除
- rpc AlarmRuleDelete(v1.AlarmRuleDeleteRequest)returns (v1.AlarmRuleDeleteReply){}
- // 告警规则开关
- rpc AlarmRuleOnOff(v1.AlarmRuleOnOffRequest)returns (v1.AlarmRuleOnOffReply){}
- // 告警规则更新
- rpc AlarmRuleUpdate(v1.AlarmRuleUpdateRequest)returns (v1.AlarmRuleUpdateReply){}
- // 告警推送设置
- // 告警联系人添加
- rpc AlarmContactAdd(v1.AlarmContactAddRequest)returns (v1.AlarmContactAddReply){}
- // 告警联系人列表
- rpc AlarmContactList(v1.AlarmContactListRequest)returns (v1.AlarmContactListReply){}
- // 告警联系人删除
- rpc AlarmContactDelete(v1.AlarmContactDeleteRequest)returns (v1.AlarmContactDeleteReply){}
- // 告警联系人更新
- rpc AlarmContactUpdate(v1.AlarmContactUpdateRequest)returns (v1.AlarmContactUpdateReply){}
- }
|