123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-supplier-management-gateway/pb/v1";
- message DeviceDockingRequest {
- int64 uid = 1;
- int32 device_type = 2;
- }
- message DeviceDockingReply {
- int64 id = 1;
- }
- message DeviceAddRequest {
- int64 project_id = 1;
- string name = 2;
- string sn = 3;
- string addr = 4;
- int32 type = 5;
- double lon = 6;
- double lat = 7;
- double x_coord = 8;
- double y_coord = 9;
- int64 provider_id = 10;
- int32 camera_count = 11;
- }
- message DeviceAddReply {
- int64 device_id = 1;
- }
- message DeviceDelRequest {
- int64 device_id = 1;
- string reason = 2;
- }
- message DeviceDelReply {
- int64 project_id = 1;
- }
- message DeviceTypeListRequest {
- int64 provider_id = 1;
- repeated int32 status_filters = 2;
- bool include_vedio = 3;
- }
- message DeviceTypeItem {
- int32 type_code = 1;
- string type_name = 2;
- string created_time = 3;
- int32 status = 4;
- string feedback = 5;
- }
- message DeviceTypeListReply {
- repeated DeviceTypeItem list = 1;
- }
- 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;
- }
- 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 {
- repeated DeviceItem list = 1;
- int32 page = 2;
- int64 total = 3;
- int32 page_size = 4;
- }
- message ProjectItem {
- int64 id = 1;
- string name = 2;
- string short_name = 3;
- string project_no = 4;
- string safety_record_no = 5;
- }
- message ProjectListRequest {
- }
- message ProjectListReply {
- repeated ProjectItem list = 1;
- }
- 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;
- string device_name = 14;
- }
- 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 VedioAddRequest {
- int64 project_id = 1;
- string name = 2;
- int64 provider_id = 3;
- int32 channel_count = 4;
- int32 vedio_type = 5;
- }
- message VedioAddReply {
- int64 vedio_id = 5;
- }
- message ChannelAddRequest {
- string sn = 1;
- int32 channel_count = 2;
- }
- message ChannelAddReply {
- int64 project_id = 1;
- }
- message ChannelUpdateRequest {
- int64 id = 1;
- string name = 2;
- }
- message ChannelUpdateReply {
- int64 project_id = 1;
- }
- 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 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;
- }
- 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;
- }
|