syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package v1; // 用于生成指定语言go的包名称 option go_package = "smart-enterprise-management/pb/v1"; message DeviceAllTypeListRequest { } message DeviceAllTypeItem { int64 id = 1; int32 type_code = 4; string type_name = 5; } message DeviceAllTypeListReply { repeated DeviceAllTypeItem list = 1; } message DeviceTypeListRequest { string filter = 1; repeated int32 filter_status = 2; int32 page = 3; } message DeviceTypeItem { int64 id = 1; string provider_name = 2; string social_code = 3; // 设备类型编码 int32 type_code = 4; string type_name = 5; // 申请时间 string apply_time = 6; // 开发者建议 string comment = 7; // 开发者审批时间 string develop_approve_time = 8; // 0 待审核 1 对接测试通过 2 对接测试未通过 3 政府审核通过 4 政府审核未通过 int32 status = 9; // 政府审批时间 string approve_time = 10; // 政府审批回复 string feedback = 11; } message DeviceTypeListReply { int64 total = 1; int32 page_size = 2; int32 page = 3; repeated DeviceTypeItem list = 4; } message DeviceListRequest { int64 provider_id = 1; // 状态过滤 审核状态 0 待审核 1 项目通过 2 项目未通过 repeated int32 status_filters = 2; int32 page = 3; int64 project_id = 4; string filter = 5; int32 type_code = 6; bool is_all = 7; bool can_del = 8; int64 cid = 9; } message DeviceItem { int64 id = 1; string social_code = 2; // 设备类型编码 int32 type_code = 3; string type_name = 4; // 申请时间 string apply_time = 5; // 审批时间 string approve_time = 6; // 0 待审核 1 项目通过 2 项目不通过 int32 status = 7; string project_name = 8; // 安检备案号 string safety_record_no = 9; // 0 离线 1 在线 int32 state = 10; string sn = 11; string key = 12; string provider_name = 13; string name = 14; } message DeviceListReply { int64 total = 1; int32 page_size = 2; int32 page = 3; repeated DeviceItem list = 4; } // 开发者审批对接设备 message DockingApproveRequest { // 供应商设备类型id int32 id = 1; // 开发者建议 string comment = 2; // true 测试通过 false 测试不通过 bool status = 3; } message DockingApproveReply { } message DeviceDelJobItem { int64 id = 1; string social_code = 2; // 设备类型编码 int32 type_code = 3; string type_name = 4; // 申请时间 string apply_time = 5; // 审批时间 string approve_time = 6; // 0 待审核 1 通过 2 项目不通过 int32 status = 7; // 项目名称 string project_name = 8; // 安检备案号 string safety_record_no = 9; string provider_name = 10; string sn = 11; string reason = 12; string feedback = 13; } message DeviceDelJobListRequest { int64 provider_id = 1; // 状态过滤 审核状态 0 待审核 1 通过 2 未通过 repeated int32 status_filters = 2; int32 page = 3; int64 project_id = 4; string filter = 5; } message DeviceDelJobListReply { int32 page_size = 1; int64 total = 2; int32 page = 3; repeated DeviceDelJobItem list = 5; } message ChannelListRequest { int32 page = 1; string sn = 2; string channel_no = 3; } message ChannelItem { string name = 1; int64 id = 2; string channel_no = 3; int32 state = 4; } message ChannelListReply { repeated ChannelItem list = 1; int32 page = 2; int64 total = 3; int32 page_size = 4; } message DeviceChangeNotifyRequest{ string sn = 1; int32 device_code = 2; } message DeviceChangeNotifyReply{ } message VedioListRequest { int64 provider_id = 1; // 状态过滤 审核状态 0 待审核 1 项目通过 2 项目未通过 repeated int32 status_filters = 2; int32 page = 3; int64 project_id = 4; string filter = 5; bool is_all = 7; int64 cid = 8; } message VedioItem { int64 id = 1; string social_code = 2; // 设备类型编码 int32 type_code = 3; string type_name = 4; // 申请时间 string apply_time = 5; // 审批时间 string approve_time = 6; // 0 待审核 1 项目通过 2 项目不通过 int32 status = 7; string project_name = 8; // 安检备案号 string safety_record_no = 9; // 0 离线 1 在线 int32 state = 10; string sn = 11; string key = 12; string provider_name = 13; string name = 14; string ip = 15; int64 port = 16; string media_transport = 17; int32 channel_count = 18; } message VedioListReply { repeated VedioItem list = 1; int32 page = 2; int64 total = 3; int32 page_size = 4; }